Skip to content

Commit 772b792

Browse files
authored
use const (microsoft#477)
1 parent 7e8d7ca commit 772b792

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

generators/app/templates/ext-command-js/extension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function activate(context) {
1717
// The command has been defined in the package.json file
1818
// Now provide the implementation of the command with registerCommand
1919
// The commandId parameter must match the command field in package.json
20-
let disposable = vscode.commands.registerCommand('<%= name %>.helloWorld', function () {
20+
const disposable = vscode.commands.registerCommand('<%= name %>.helloWorld', function () {
2121
// The code you place here will be executed every time your command is executed
2222

2323
// Display a message box to the user

generators/app/templates/ext-command-ts/src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function activate(context: vscode.ExtensionContext) {
1313
// The command has been defined in the package.json file
1414
// Now provide the implementation of the command with registerCommand
1515
// The commandId parameter must match the command field in package.json
16-
let disposable = vscode.commands.registerCommand('<%= name %>.helloWorld', () => {
16+
const disposable = vscode.commands.registerCommand('<%= name %>.helloWorld', () => {
1717
// The code you place here will be executed every time your command is executed
1818
// Display a message box to the user
1919
vscode.window.showInformationMessage('Hello World from <%= displayName %>!');

generators/app/templates/ext-command-web/src/web/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function activate(context: vscode.ExtensionContext) {
1313
// The command has been defined in the package.json file
1414
// Now provide the implementation of the command with registerCommand
1515
// The commandId parameter must match the command field in package.json
16-
let disposable = vscode.commands.registerCommand('<%= name %>.helloWorld', () => {
16+
const disposable = vscode.commands.registerCommand('<%= name %>.helloWorld', () => {
1717
// The code you place here will be executed every time your command is executed
1818

1919
// Display a message box to the user

0 commit comments

Comments
 (0)