daily pastebin goal
57%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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;
RAW Paste Data
Top