in src/manifestList.ts [160:184]
constructor(public context: vscode.ExtensionContext) {
this.storageManager = new StorageManager(context.globalState);
context.subscriptions.push(
vscode.commands.registerCommand('wskdeploy.openManifest', (uri) =>
this.openManifest(uri)
),
vscode.commands.registerCommand('wskdeploy.refresh', () => this.refresh()),
vscode.commands.registerCommand('wskdeploy.runCommand', async (command) =>
this.runCommand(context, command, false)
),
vscode.commands.registerCommand('wskdeploy.runCommandWithDeployment', async (command) =>
this.runCommand(context, command, true)
)
);
if (vscode.workspace.workspaceFolders) {
const YAMLwatcher = vscode.workspace.createFileSystemWatcher(
new vscode.RelativePattern(vscode.workspace.workspaceFolders[0], '**/*.{yml,yaml}')
);
YAMLwatcher.onDidCreate((_) => this.refresh());
YAMLwatcher.onDidDelete((_) => this.refresh());
YAMLwatcher.onDidChange((_) => this.refresh());
}
}