do not check for lang id

This commit is contained in:
Sandeep Somavarapu
2018-01-15 16:33:23 +01:00
parent 18a63baf65
commit 58e5587db1

View File

@ -84,7 +84,7 @@ export class JsonOutlineProvider implements vscode.TreeDataProvider<number> {
this.text = '';
this.tree = null;
this.editor = vscode.window.activeTextEditor;
if (this.editor && this.editor.document && this.editor.document.languageId === 'json') {
if (this.editor && this.editor.document) {
this.text = this.editor.document.getText();
this.tree = json.parseTree(this.text);
}