mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 06:38:23 +00:00
Revert "debug: remove support for top level debugServer"
This reverts commit fd9146fec3
.
This commit is contained in:
parent
fd9146fec3
commit
86ba67bc93
2 changed files with 10 additions and 1 deletions
|
@ -284,6 +284,7 @@ export interface IDebugConfiguration {
|
|||
|
||||
export interface IGlobalConfig {
|
||||
version: string;
|
||||
debugServer?: number;
|
||||
configurations: IConfig[];
|
||||
}
|
||||
|
||||
|
|
|
@ -158,7 +158,12 @@ const schema: IJSONSchema = {
|
|||
'type': 'object',
|
||||
oneOf: []
|
||||
}
|
||||
}
|
||||
},
|
||||
// TODO@Isidor remove support for this in December
|
||||
debugServer: {
|
||||
type: 'number',
|
||||
description: nls.localize('app.launch.json.debugServer', "DEPRECATED: please move debugServer inside a configuration.")
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -259,6 +264,9 @@ export class ConfigurationManager implements debug.IConfigurationManager {
|
|||
|
||||
result = filtered.length === 1 ? filtered[0] : config.configurations[0];
|
||||
result = objects.deepClone(result);
|
||||
if (config && result && config.debugServer) {
|
||||
result.debugServer = config.debugServer;
|
||||
}
|
||||
}
|
||||
|
||||
if (result) {
|
||||
|
|
Loading…
Reference in a new issue