mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
do not check for lang id
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user