I hereby claim:
- I am kim-codes on github.
- I am kimcodes (https://keybase.io/kimcodes) on keybase.
- I have a public key whose fingerprint is 3729 F296 3529 EF3E C3A6 519B 608E 58FE 9F4A B287
To claim this, I am signing this object:
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); |
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); |
{ | |
"name": "kims-awesome-dictionary", | |
"displayName": "Kim's Awesome Dictionary Lookup", | |
"description": "This extension looks up a word in the dictionary.", | |
"version": "0.0.1", | |
"galleryBanner.color": "#FFDAB9", | |
"engines": { | |
"vscode": "^1.5.0" | |
}, | |
"categories": [ |
I hereby claim:
To claim this, I am signing this object:
// Updates with new word and definition | |
setElements() { | |
this.element.children[1].textContent = 'Word: ' + wordToSearch; | |
this.element.children[2].textContent = ' is defined as : ' + wordDefinition; | |
} |
data = null; | |
xhr = null; | |
xhr = new XMLHttpRequest(); | |
xhr.withCredentials = true; | |
xhr.addEventListener("readystatechange", function () { | |
if (this.readyState === this.DONE) { | |
jsonText = JSON.parse(xhr.responseText); | |
wordDefinition = jsonText.results[0].lexicalEntries[0].entries[0].senses[0].subsenses[0].definitions[0]; | |
console.log(jsonText.results[0].lexicalEntries[0].entries[0].senses[0].subsenses[0].definitions[0]); | |
} |
setElement(){ | |
this.element.children[0].textContent = 'Word: ' + wordToSearch; | |
} |
editor = atom.workspace.getActiveTextEditor(); | |
wordToSearch = editor.getSelectedText(); | |
if(!wordToSearch){ | |
wordToSearch = editor.getWordUnderCursor(); | |
} |
'use babel'; | |
export default class NewPackageView { | |
constructor(serializedState) { | |
// Create root element | |
this.element = document.createElement('div'); | |
this.element.classList.add('new-package'); | |
// Create message element |
{ | |
"name": "my-first-plugin", | |
"main": "./lib/my-first-plugin", | |
"version": "0.0.0", | |
"description": "This is my first Atom plugin that will do magic.", | |
"engines": { | |
"atom": ">=1.0.0 <2.0.0" | |
}, | |
"dependencies": {}, | |
"repository": { |