提交 300756f3 编写于 作者: I isidor

debug: move debug service into electron-browser

fixes #317
上级 fb8c66d9
......@@ -24,14 +24,12 @@ import files = require('vs/workbench/parts/files/browser/files');
import baseeditor = require('vs/workbench/browser/parts/editor/baseEditor');
import filesCommon = require('vs/workbench/parts/files/common/files');
import manager = require('vs/workbench/parts/debug/browser/debugEditorModelManager');
import service = require('vs/workbench/parts/debug/browser/debugService');
import * as debug from 'vs/workbench/parts/debug/common/debug';
import dbgactions = require('vs/workbench/parts/debug/browser/debugActions');
import editorinputs = require('vs/workbench/parts/debug/browser/debugEditorInputs');
import repleditor = require('vs/workbench/parts/debug/browser/replEditor');
import debugwidget = require('vs/workbench/parts/debug/browser/debugActionsWidget');
import debughover = require('vs/workbench/parts/debug/browser/debugHoverWidget');
import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
import { IKeybindings } from 'vs/platform/keybinding/common/keybindingService';
import { IViewletService } from 'vs/workbench/services/viewlet/common/viewletService';
import { IWorkbenchEditorService } from 'vs/workbench/services/editor/common/editorService';
......@@ -204,9 +202,6 @@ CommonEditorRegistry.registerEditorAction(new EditorActionDescriptor(dbgactions.
CommonEditorRegistry.registerEditorAction(new EditorActionDescriptor(dbgactions.SelectionToWatchExpressionsAction, dbgactions.SelectionToWatchExpressionsAction.ID, nls.localize('addToWatch', "Debug: Add to Watch")));
CommonEditorRegistry.registerEditorAction(new EditorActionDescriptor(dbgactions.RunToCursorAction, dbgactions.RunToCursorAction.ID, nls.localize('runToCursor', "Debug: Run to Cursor")));
// Register Service
registerSingleton(IDebugService, service.DebugService);
// Register Viewlet
(<viewlet.IViewletRegistry>platform.Registry.as(viewlet.Extensions.Viewlets)).registerViewlet(new viewlet.ViewletDescriptor(
'vs/workbench/parts/debug/browser/debugViewlet',
......
......@@ -5,8 +5,14 @@
import { IWorkbenchContributionsRegistry, Extensions } from 'vs/workbench/common/contributions';
import platform = require('vs/platform/platform');
import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
import { IDebugService } from 'vs/workbench/parts/debug/common/debug';
import service = require('vs/workbench/parts/debug/electron-browser/debugService');
import { ExtensionOutputHandler } from 'vs/workbench/parts/debug/electron-browser/extensionOutput';
// Register Service
registerSingleton(IDebugService, service.DebugService);
// Register Extension Output Handler
(<IWorkbenchContributionsRegistry>platform.Registry.as(Extensions.Workbench)).registerWorkbenchContribution(
ExtensionOutputHandler
......
......@@ -20,7 +20,6 @@ import platformplatform = require('vs/platform/platform');
import editor = require('vs/editor/common/editorCommon');
import editorbrowser = require('vs/editor/browser/editorBrowser');
import jsonContributionRegistry = require('vs/languages/json/common/jsonContributionRegistry');
import { IWindowService } from 'vs/workbench/services/window/electron-browser/windowService';
import wbeditorcommon = require('vs/workbench/common/editor');
import { SystemVariables } from 'vs/workbench/parts/lib/node/systemVariables';
import debug = require('vs/workbench/parts/debug/common/debug');
......@@ -50,6 +49,7 @@ import { IPluginService, IPluginDescription } from 'vs/platform/plugins/common/p
import { IOutputService } from 'vs/workbench/parts/output/common/output';
import { IKeybindingService, IKeybindingContextKey } from 'vs/platform/keybinding/common/keybindingService';
import { IQuickOpenService } from 'vs/workbench/services/quickopen/browser/quickOpenService';
import { IWindowService } from 'vs/workbench/services/window/electron-browser/windowService';
var DEBUG_BREAKPOINTS_KEY = 'debug.breakpoint';
var DEBUG_BREAKPOINTS_ACTIVATED_KEY = 'debug.breakpointactivated';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册