Skip to content

Commit

Permalink
use const (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli authored Jun 3, 2024
1 parent 7e8d7ca commit 772b792
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion generators/app/templates/ext-command-js/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function activate(context) {
// The command has been defined in the package.json file
// Now provide the implementation of the command with registerCommand
// The commandId parameter must match the command field in package.json
let disposable = vscode.commands.registerCommand('<%= name %>.helloWorld', function () {
const disposable = vscode.commands.registerCommand('<%= name %>.helloWorld', function () {
// The code you place here will be executed every time your command is executed

// Display a message box to the user
Expand Down
2 changes: 1 addition & 1 deletion generators/app/templates/ext-command-ts/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function activate(context: vscode.ExtensionContext) {
// The command has been defined in the package.json file
// Now provide the implementation of the command with registerCommand
// The commandId parameter must match the command field in package.json
let disposable = vscode.commands.registerCommand('<%= name %>.helloWorld', () => {
const disposable = vscode.commands.registerCommand('<%= name %>.helloWorld', () => {
// The code you place here will be executed every time your command is executed
// Display a message box to the user
vscode.window.showInformationMessage('Hello World from <%= displayName %>!');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function activate(context: vscode.ExtensionContext) {
// The command has been defined in the package.json file
// Now provide the implementation of the command with registerCommand
// The commandId parameter must match the command field in package.json
let disposable = vscode.commands.registerCommand('<%= name %>.helloWorld', () => {
const disposable = vscode.commands.registerCommand('<%= name %>.helloWorld', () => {
// The code you place here will be executed every time your command is executed

// Display a message box to the user
Expand Down

0 comments on commit 772b792

Please sign in to comment.