generator-code 1.10.0 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generators/app/templates/ext-command-js/extension.js +1 -1
- package/generators/app/templates/ext-command-ts/src/extension.ts +1 -1
- package/generators/app/templates/ext-command-ts/vscode-esbuild/vscode/tasks.json +0 -3
- package/generators/app/templates/ext-command-web/src/web/extension.ts +1 -1
- package/generators/app/templates/ext-command-web/vscode-esbuild/tasks.json +0 -3
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ function activate(context) {
|
|
|
17
17
|
// The command has been defined in the package.json file
|
|
18
18
|
// Now provide the implementation of the command with registerCommand
|
|
19
19
|
// The commandId parameter must match the command field in package.json
|
|
20
|
-
|
|
20
|
+
const disposable = vscode.commands.registerCommand('<%= name %>.helloWorld', function () {
|
|
21
21
|
// The code you place here will be executed every time your command is executed
|
|
22
22
|
|
|
23
23
|
// Display a message box to the user
|
|
@@ -13,7 +13,7 @@ export function activate(context: vscode.ExtensionContext) {
|
|
|
13
13
|
// The command has been defined in the package.json file
|
|
14
14
|
// Now provide the implementation of the command with registerCommand
|
|
15
15
|
// The commandId parameter must match the command field in package.json
|
|
16
|
-
|
|
16
|
+
const disposable = vscode.commands.registerCommand('<%= name %>.helloWorld', () => {
|
|
17
17
|
// The code you place here will be executed every time your command is executed
|
|
18
18
|
// Display a message box to the user
|
|
19
19
|
vscode.window.showInformationMessage('Hello World from <%= displayName %>!');
|
|
@@ -13,7 +13,7 @@ export function activate(context: vscode.ExtensionContext) {
|
|
|
13
13
|
// The command has been defined in the package.json file
|
|
14
14
|
// Now provide the implementation of the command with registerCommand
|
|
15
15
|
// The commandId parameter must match the command field in package.json
|
|
16
|
-
|
|
16
|
+
const disposable = vscode.commands.registerCommand('<%= name %>.helloWorld', () => {
|
|
17
17
|
// The code you place here will be executed every time your command is executed
|
|
18
18
|
|
|
19
19
|
// Display a message box to the user
|