Revert "debug: remove support for top level debugServer"

This reverts commit fd9146fec3.
This commit is contained in:
isidor 2016-11-09 10:42:43 +01:00
parent fd9146fec3
commit 86ba67bc93
2 changed files with 10 additions and 1 deletions

View file

@ -284,6 +284,7 @@ export interface IDebugConfiguration {
export interface IGlobalConfig {
version: string;
debugServer?: number;
configurations: IConfig[];
}

View file

@ -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) {