提交 221b149e 编写于 作者: I isidor

use NullService when needed

上级 2a15ad9d
......@@ -21,6 +21,7 @@ import ModesGlyphHover = require('./modesGlyphHover');
import Keyboard = require('vs/base/browser/keyboardEvent');
import {IEditorService} from 'vs/platform/editor/common/editor';
import {IKeybindingService, KbExpr} from 'vs/platform/keybinding/common/keybindingService';
import {INullService} from 'vs/platform/instantiation/common/instantiation';
import {KeyCode, KeyMod} from 'vs/base/common/keyCodes';
class ModesHoverController implements EditorCommon.IEditorContribution {
......@@ -144,7 +145,7 @@ class ModesHoverController implements EditorCommon.IEditorContribution {
class ShowHoverAction extends EditorAction {
static ID = 'editor.action.showHover';
constructor(descriptor: EditorCommon.IEditorActionDescriptorData, editor: EditorCommon.ICommonCodeEditor, @IEditorService editorService: IEditorService) {
constructor(descriptor: EditorCommon.IEditorActionDescriptorData, editor: EditorCommon.ICommonCodeEditor, @INullService ns) {
super(descriptor, editor, Behaviour.TextFocus);
}
......
......@@ -12,13 +12,14 @@ import editorCommon = require('vs/editor/common/editorCommon');
import editorbrowser = require('vs/editor/browser/editorBrowser');
import { EditorAction, Behaviour } from 'vs/editor/common/editorAction';
import { IEventService } from 'vs/platform/event/common/event';
import { IKeybindingService } from 'vs/platform/keybinding/common/keybindingService';
import { INullService } from 'vs/platform/instantiation/common/instantiation';
import { EventType, CompositeEvent } from 'vs/workbench/common/events';
import debug = require('vs/workbench/parts/debug/common/debug');
import model = require('vs/workbench/parts/debug/common/debugModel');
import { IPartService } from 'vs/workbench/services/part/common/partService';
import { IPanelService } from 'vs/workbench/services/panel/common/panelService';
import { IViewletService } from 'vs/workbench/services/viewlet/common/viewletService';
import { IKeybindingService } from 'vs/platform/keybinding/common/keybindingService';
import {clipboard} from 'electron';
import IDebugService = debug.IDebugService;
......@@ -604,7 +605,7 @@ export class SelectionToReplAction extends EditorAction {
export class ShowDebugHoverAction extends EditorAction {
static ID = 'editor.debug.action.showDebugHover';
constructor(descriptor: editorCommon.IEditorActionDescriptorData, editor: editorCommon.ICommonCodeEditor, @IDebugService debugService: IDebugService) {
constructor(descriptor: editorCommon.IEditorActionDescriptorData, editor: editorCommon.ICommonCodeEditor, @INullService ns) {
super(descriptor, editor, Behaviour.TextFocus);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册