mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Fix refresh
This commit is contained in:
@ -26,10 +26,10 @@ export class JsonOutlineProvider implements vscode.TreeDataProvider<string> {
|
||||
}
|
||||
|
||||
refresh(offset?: string): void {
|
||||
if (isNumber(offset)) {
|
||||
this.parseTree();
|
||||
if (offset) {
|
||||
this._onDidChangeTreeData.fire(offset);
|
||||
} else {
|
||||
this.parseTree();
|
||||
this._onDidChangeTreeData.fire();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user