From 0357ffdce031ee3f8ec72f98fea1fdcefbc86f4b Mon Sep 17 00:00:00 2001 From: Isaac Poole Date: Fri, 12 Jul 2024 23:21:55 -0400 Subject: [PATCH] refreshes after edit --- src/EnvironmentTreeviewProvider.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/EnvironmentTreeviewProvider.ts b/src/EnvironmentTreeviewProvider.ts index 3f509c8..d4d1cdc 100644 --- a/src/EnvironmentTreeviewProvider.ts +++ b/src/EnvironmentTreeviewProvider.ts @@ -20,7 +20,6 @@ export class EnvironmentTreeviewProvider flip(element: EnvironmentKeyValueTreeItem) { this.edit(element, element.value.value === "true" ? "false" : "true"); - this.refresh(); } private _onDidChangeTreeData: vscode.EventEmitter< vscode.TreeItem | undefined | void @@ -42,6 +41,8 @@ export class EnvironmentTreeviewProvider element.parent.uri, new TextEncoder().encode(replace(content, element.key, input)) ); + + this.refresh(); } getTreeItem(