Skip to content

Commit e758316

Browse files
committed
refactor: remova a helloWorld command
1 parent 63b6957 commit e758316

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,11 @@
1010
"Other"
1111
],
1212
"activationEvents": [
13-
"onCommand:php-class-generator.helloWorld",
1413
"onCommand:php-class-generator.generate-php-class"
1514
],
1615
"main": "./out/extension.js",
1716
"contributes": {
1817
"commands": [
19-
{
20-
"command": "php-class-generator.helloWorld",
21-
"title": "Hello World"
22-
},
2318
{
2419
"command": "php-class-generator.generate-php-class",
2520
"title": "Generate PHP Class"

src/extension.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,7 @@ import * as path from 'path';
66
// This method is called when your extension is activated
77
// Your extension is activated the very first time the command is executed
88
export function activate(context: vscode.ExtensionContext) {
9-
10-
// Use the console to output diagnostic information (console.log) and errors (console.error)
11-
// This line of code will only be executed once when your extension is activated
129
console.log('Congratulations, your extension "php-class-generator" is now active!');
13-
14-
// The command has been defined in the package.json file
15-
// Now provide the implementation of the command with registerCommand
16-
// The commandId parameter must match the command field in package.json
17-
let disposable = vscode.commands.registerCommand('php-class-generator.helloWorld', () => {
18-
// The code you place here will be executed every time your command is executed
19-
// Display a message box to the user
20-
vscode.window.showInformationMessage('Hello World from PHP Class Generator!');
21-
});
22-
context.subscriptions.push(disposable);
23-
2410
context.subscriptions.push(vscode.commands.registerCommand('php-class-generator.generate-php-class', generateFilePhpClass));
2511
}
2612

0 commit comments

Comments
 (0)