Created
February 10, 2017 14:15
-
-
Save kindohm/83070f1a6f8e0055937a2a40c158fef5 to your computer and use it in GitHub Desktop.
pure javascript TextDocumentContentProvider for vscode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var vscode = require('vscode'); | |
class PostWindowContentProvider { | |
constructor() { | |
this._onDidChange = new vscode.EventEmitter(); | |
} | |
provideTextDocumentContent(uri) { | |
return 'Hi I am some content.'; | |
} | |
get onDidChange() { | |
return this._onDidChange.event; | |
} | |
update(uri) { | |
this._onDidChange.fire(uri); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment