提交 c4c07c55 编写于 作者: I isidor

Revert "debug: remove support for top level debugServer"

This reverts commit fd9146fe.
上级 31497905
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册