Skip to content

Commit e3df1e2

Browse files
committed
fix naming
1 parent cc937a3 commit e3df1e2

2 files changed

Lines changed: 22 additions & 20 deletions

File tree

src/vs/workbench/contrib/debug/browser/debugConfigurationManager.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,25 +105,25 @@ export class ConfigurationManager implements IConfigurationManager {
105105
}
106106

107107
createDebugAdapter(session: IDebugSession): IDebugAdapter | undefined {
108-
let dap = this.debugAdapterFactories.get(session.configuration.type);
109-
if (dap) {
110-
return dap.createDebugAdapter(session);
108+
let factory = this.debugAdapterFactories.get(session.configuration.type);
109+
if (factory) {
110+
return factory.createDebugAdapter(session);
111111
}
112112
return undefined;
113113
}
114114

115115
substituteVariables(debugType: string, folder: IWorkspaceFolder | undefined, config: IConfig): Promise<IConfig> {
116-
let dap = this.debugAdapterFactories.get(debugType);
117-
if (dap) {
118-
return dap.substituteVariables(folder, config);
116+
let factory = this.debugAdapterFactories.get(debugType);
117+
if (factory) {
118+
return factory.substituteVariables(folder, config);
119119
}
120120
return Promise.resolve(config);
121121
}
122122

123123
runInTerminal(debugType: string, args: DebugProtocol.RunInTerminalRequestArguments): Promise<number | undefined> {
124-
let tl = this.debugAdapterFactories.get(debugType);
125-
if (tl) {
126-
return tl.runInTerminal(args);
124+
let factory = this.debugAdapterFactories.get(debugType);
125+
if (factory) {
126+
return factory.runInTerminal(args);
127127
}
128128
return Promise.resolve(void 0);
129129
}

src/vs/workbench/contrib/debug/common/debugger.ts

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,21 @@ export class Debugger implements IDebugger {
5858

5959
if (isObject(source)) {
6060
Object.keys(source).forEach(key => {
61-
if (isObject(destination[key]) && isObject(source[key])) {
62-
mixin(destination[key], source[key], overwrite, level + 1);
63-
} else {
64-
if (key in destination) {
65-
if (overwrite) {
66-
if (level === 0 && key === 'type') {
67-
// don't merge the 'type' property
68-
} else {
69-
destination[key] = source[key];
61+
if (key !== '__proto__') {
62+
if (isObject(destination[key]) && isObject(source[key])) {
63+
mixin(destination[key], source[key], overwrite, level + 1);
64+
} else {
65+
if (key in destination) {
66+
if (overwrite) {
67+
if (level === 0 && key === 'type') {
68+
// don't merge the 'type' property
69+
} else {
70+
destination[key] = source[key];
71+
}
7072
}
73+
} else {
74+
destination[key] = source[key];
7175
}
72-
} else {
73-
destination[key] = source[key];
7476
}
7577
}
7678
});

0 commit comments

Comments
 (0)