Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const vscode = require('vscode');
- function activate(context) {
- let disposable = vscode.commands.registerCommand('extension.dictionarylookup', function () {
- var editor = vscode.window.activeTextEditor;
- var selectedText = editor.document.getText(editor.selection);
- vscode.window.showInformationMessage('The word you selected is ' + selectedText);
- });
- context.subscriptions.push(disposable);
- }
- exports.activate = activate;
Add Comment
Please, Sign In to add comment