PokéScript Language support for Visual Studio Code.

extension.ts 1.3KB

1234567891011121314151617181920212223242526272829
  1. 'use strict';
  2. // The module 'vscode' contains the VS Code extensibility API
  3. // Import the module and reference it with the alias vscode in your code below
  4. import * as vscode from 'vscode';
  5. // this method is called when your extension is activated
  6. // your extension is activated the very first time the command is executed
  7. export function activate(context: vscode.ExtensionContext) {
  8. // Use the console to output diagnostic information (console.log) and errors (console.error)
  9. // This line of code will only be executed once when your extension is activated
  10. console.log('Congratulations, your extension "pokescript" is now active!');
  11. // The command has been defined in the package.json file
  12. // Now provide the implementation of the command with registerCommand
  13. // The commandId parameter must match the command field in package.json
  14. let disposable = vscode.commands.registerCommand('extension.sayHello', () => {
  15. // The code you place here will be executed every time your command is executed
  16. // Display a message box to the user
  17. vscode.window.showInformationMessage('Hello World!');
  18. });
  19. context.subscriptions.push(disposable);
  20. }
  21. // this method is called when your extension is deactivated
  22. export function deactivate() {
  23. }