提交 5a8c502f 编写于 作者: I isidor

debug: workaround to open viewlet no longer needed

上级 b144edac
......@@ -27,7 +27,6 @@ import { IKeybindingService } from 'vs/platform/keybinding/common/keybindingServ
import debug = require('vs/workbench/parts/debug/common/debug');
import { SystemVariables } from 'vs/workbench/parts/lib/node/systemVariables';
import { Adapter } from 'vs/workbench/parts/debug/node/debugAdapter';
import { IViewletService } from 'vs/workbench/services/viewlet/common/viewletService';
import { IWorkspaceContextService } from 'vs/workbench/services/workspace/common/contextService';
import { IWorkbenchEditorService } from 'vs/workbench/services/editor/common/editorService';
import { IQuickOpenService } from 'vs/workbench/services/quickopen/common/quickOpenService';
......@@ -168,8 +167,7 @@ export class ConfigurationManager implements debug.IConfigurationManager {
@IWorkbenchEditorService private editorService: IWorkbenchEditorService,
@IConfigurationService private configurationService: IConfigurationService,
@IQuickOpenService private quickOpenService: IQuickOpenService,
@IKeybindingService private keybindingService: IKeybindingService,
@IViewletService private viewletService: IViewletService
@IKeybindingService private keybindingService: IKeybindingService
) {
this._onDidConfigurationChange = new Emitter<string>();
this.systemVariables = this.contextService.getWorkspace() ? new SystemVariables(this.editorService, this.contextService) : null;
......@@ -341,10 +339,7 @@ export class ConfigurationManager implements debug.IConfigurationManager {
return false;
}
return this.fileService.updateContent(resource, content).then(() => {
// On first launch.json creation open debug viewlet #7291
return this.viewletService.openViewlet(debug.VIEWLET_ID);
});
return this.fileService.updateContent(resource, content).then(() => true);
}
)).then(configFileCreated => {
if (!configFileCreated) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册