Guest User

Untitled

a guest
Feb 13th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. const vscode = require('vscode');
  2.  
  3. function activate(context) {
  4.  
  5. let disposable = vscode.commands.registerCommand('extension.dictionarylookup', function () {
  6. var editor = vscode.window.activeTextEditor;
  7. var selectedText = editor.document.getText(editor.selection);
  8. vscode.window.showInformationMessage('The word you selected is ' + selectedText);
  9. });
  10. context.subscriptions.push(disposable);
  11. }
  12.  
  13. exports.activate = activate;
Add Comment
Please, Sign In to add comment