From 58e5587db1af2afd9a568a2d736dc475e328e1de Mon Sep 17 00:00:00 2001 From: Sandeep Somavarapu Date: Mon, 15 Jan 2018 16:33:23 +0100 Subject: [PATCH] do not check for lang id --- tree-view-sample/src/jsonOutline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tree-view-sample/src/jsonOutline.ts b/tree-view-sample/src/jsonOutline.ts index 2aed10f5..20983b9b 100644 --- a/tree-view-sample/src/jsonOutline.ts +++ b/tree-view-sample/src/jsonOutline.ts @@ -84,7 +84,7 @@ export class JsonOutlineProvider implements vscode.TreeDataProvider { 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); }