This commit is contained in:
rebornix
2021-11-01 18:10:08 -07:00
parent 7d46b77c31
commit 38cef76ce7
3 changed files with 7 additions and 3 deletions

View File

@@ -425,7 +425,11 @@ export function createExtHostComments(mainContext: IMainContext, commands: ExtHo
formattedModifications.label = this.label;
}
if (modified('contextValue')) {
formattedModifications.contextValue = this.contextValue;
/*
* null -> cleared contextValue
* undefined -> no change
*/
formattedModifications.contextValue = this.contextValue ?? null;
}
if (modified('comments')) {
formattedModifications.comments =