Skip to content

Instantly share code, notes, and snippets.

View kim-codes's full-sized avatar
🦸‍♀️
super kim

Kim kim-codes

🦸‍♀️
super kim
View GitHub Profile
const vscode = require('vscode');
function activate(context) {
let disposable = vscode.commands.registerCommand('extension.dictionarylookup', function () {
vscode.window.showInformationMessage('THIS IS DISPLAYING A MSG TO THE USER :)');
});
context.subscriptions.push(disposable);
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);