提交 4afe5126 编写于 作者: I isidor

debug: allow multiple sessions with a tmp config attribute

上级 0187d8ea
......@@ -295,6 +295,7 @@ export interface IEnvConfig {
debugServer?: number;
noDebug?: boolean;
silentlyAbort?: boolean;
configurationNames?: string[];
}
export interface IExtHostConfig extends IEnvConfig {
......
......@@ -546,6 +546,9 @@ export class DebugService implements debug.IDebugService {
if (configuration.silentlyAbort) {
return;
}
if (configuration.configurationNames) {
return TPromise.join(configuration.configurationNames.map(name => this.createProcess(name)));
}
if (!this.configurationManager.getAdapter(configuration.type)) {
return configuration.type ? TPromise.wrapError(new Error(nls.localize('debugTypeNotSupported', "Configured debug type '{0}' is not supported.", configuration.type)))
......
......@@ -487,7 +487,7 @@ export class CallStackRenderer implements tree.IRenderer {
}
public renderElement(tree: tree.ITree, element: any, templateId: string, templateData: any): void {
if (templateId === CallStackRenderer.PROCESS_TEMPLATE_ID {
if (templateId === CallStackRenderer.PROCESS_TEMPLATE_ID) {
this.renderProcess(element, templateData);
} else if (templateId === CallStackRenderer.THREAD_TEMPLATE_ID) {
this.renderThread(element, templateData);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册