Remove extra parseTree (#406)

This commit is contained in:
james1293
2021-07-29 09:13:14 -04:00
committed by GitHub
parent 36a73e3472
commit 62e7e59776

View File

@ -15,7 +15,6 @@ export class JsonOutlineProvider implements vscode.TreeDataProvider<number> {
constructor(private context: vscode.ExtensionContext) {
vscode.window.onDidChangeActiveTextEditor(() => this.onActiveEditorChanged());
vscode.workspace.onDidChangeTextDocument(e => this.onDocumentChanged(e));
this.parseTree();
this.autoRefresh = vscode.workspace.getConfiguration('jsonOutline').get('autorefresh');
vscode.workspace.onDidChangeConfiguration(() => {
this.autoRefresh = vscode.workspace.getConfiguration('jsonOutline').get('autorefresh');
@ -181,4 +180,4 @@ export class JsonOutlineProvider implements vscode.TreeDataProvider<number> {
return `${property}: ${value}`;
}
}
}
}