Skip to content

Commit

Permalink
refreshes after edit
Browse files Browse the repository at this point in the history
  • Loading branch information
isfopo committed Jul 13, 2024
1 parent e134cb9 commit 0357ffd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/EnvironmentTreeviewProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -42,6 +41,8 @@ export class EnvironmentTreeviewProvider
element.parent.uri,
new TextEncoder().encode(replace(content, element.key, input))
);

this.refresh();
}

getTreeItem(
Expand Down

0 comments on commit 0357ffd

Please sign in to comment.