File tree Expand file tree Collapse file tree 2 files changed +31
-60
lines changed
Expand file tree Collapse file tree 2 files changed +31
-60
lines changed Original file line number Diff line number Diff line change 1- // The module 'vscode' contains the VS Code extensibility API
2- // Import the module and reference it with the alias vscode in your code below
3- const vscode = require ( 'vscode' ) ;
4-
5- // this method is called when your extension is activated
6- // your extension is activated the very first time the command is executed
7-
1+ const vscode = require ( 'vscode' )
82/**
93 * @param {vscode.ExtensionContext } context
104 */
115function activate ( context ) {
12-
13- // Use the console to output diagnostic information (console.log) and errors (console.error)
14- // This line of code will only be executed once when your extension is activated
15- console . log ( 'Congratulations, your extension "audio" is now active!' ) ;
16-
17- // The command has been defined in the package.json file
18- // Now provide the implementation of the command with registerCommand
19- // The commandId parameter must match the command field in package.json
20- let disposable = vscode . commands . registerCommand ( 'extension.helloWorld' , function ( ) {
21- // The code you place here will be executed every time your command is executed
22-
23- // Display a message box to the user
24- vscode . window . showInformationMessage ( 'Hello World!' ) ;
25- } ) ;
26-
27- context . subscriptions . push ( disposable ) ;
6+ vscode . window . showInformationMessage ( 'Hello World!' )
287}
29- exports . activate = activate ;
8+ exports . activate = activate
309
31- // this method is called when your extension is deactivated
3210function deactivate ( ) { }
3311
3412module . exports = {
35- activate,
36- deactivate
13+ activate,
14+ deactivate
3715}
Original file line number Diff line number Diff line change 11{
2- "name" : " audio" ,
3- "displayName" : " audio" ,
4- "description" : " description" ,
5- "version" : " 0.0.1" ,
6- "engines" : {
7- "vscode" : " ^1.30.0"
8- },
9- "categories" : [
10- " Other"
11- ],
12- "activationEvents" : [
13- " onCommand:extension.helloWorld"
14- ],
15- "main" : " ./extension.js" ,
16- "contributes" : {
17- "commands" : [
18- {
19- "command" : " extension.helloWorld" ,
20- "title" : " Hello World"
21- }
22- ]
23- },
24- "scripts" : {
25- "postinstall" : " node ./node_modules/vscode/bin/install" ,
26- "test" : " node ./node_modules/vscode/bin/test"
27- },
28- "devDependencies" : {
29- "typescript" : " ^3.1.4" ,
30- "vscode" : " ^1.1.25" ,
31- "eslint" : " ^4.11.0" ,
32- "@types/node" : " ^8.10.25" ,
33- "@types/mocha" : " ^2.2.42"
34- }
2+ "name" : " audio" ,
3+ "displayName" : " audio" ,
4+ "description" : " description" ,
5+ "version" : " 0.0.1" ,
6+ "engines" : {
7+ "vscode" : " ^1.30.0"
8+ },
9+ "categories" : [
10+ " Other"
11+ ],
12+ "activationEvents" : [
13+ " *"
14+ ],
15+ "main" : " ./extension.js" ,
16+ "contributes" : {},
17+ "scripts" : {
18+ "postinstall" : " node ./node_modules/vscode/bin/install" ,
19+ "test" : " node ./node_modules/vscode/bin/test"
20+ },
21+ "devDependencies" : {
22+ "typescript" : " ^3.1.4" ,
23+ "vscode" : " ^1.1.25" ,
24+ "eslint" : " ^4.11.0" ,
25+ "@types/node" : " ^8.10.25" ,
26+ "@types/mocha" : " ^2.2.42"
27+ }
3528}
You can’t perform that action at this time.
0 commit comments