mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-11 04:17:01 -05:00
debt - change delete operand (for #96022)
This commit is contained in:
@@ -746,11 +746,11 @@ export class CodeWindow extends Disposable implements ICodeWindow {
|
||||
|
||||
// Config (combination of process.argv and window configuration)
|
||||
const environment = parseArgs(process.argv, OPTIONS);
|
||||
const config = Object.assign(environment, windowConfiguration);
|
||||
const config = Object.assign(environment, windowConfiguration) as unknown as { [key: string]: unknown };
|
||||
for (const key in config) {
|
||||
const configValue = (config as any)[key];
|
||||
const configValue = config[key];
|
||||
if (configValue === undefined || configValue === null || configValue === '' || configValue === false) {
|
||||
delete (config as any)[key]; // only send over properties that have a true value
|
||||
delete config[key]; // only send over properties that have a true value
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -703,7 +703,7 @@ class StatusbarEntryItem extends Disposable {
|
||||
if (entry.tooltip) {
|
||||
this.container.title = entry.tooltip;
|
||||
} else {
|
||||
delete this.container.title;
|
||||
this.container.title = '';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user