Skip to content

Commit

Permalink
Fix #38920. Optional dependency to fileservice. (#38921)
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix authored and mjbvz committed Nov 27, 2017
1 parent d049d54 commit 73f3e0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vs/editor/contrib/quickFix/quickFixCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { ICommandService } from 'vs/platform/commands/common/commands';
import { IContextMenuService } from 'vs/platform/contextview/browser/contextView';
import { ContextKeyExpr, IContextKeyService } from 'vs/platform/contextkey/common/contextkey';
import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding';
import { optional } from 'vs/platform/instantiation/common/instantiation';
import { IMarkerService } from 'vs/platform/markers/common/markers';
import { IEditorContribution } from 'vs/editor/common/editorCommon';
import { EditorContextKeys } from 'vs/editor/common/editorContextKeys';
Expand Down Expand Up @@ -46,7 +47,7 @@ export class QuickFixController implements IEditorContribution {
@IContextMenuService contextMenuService: IContextMenuService,
@IKeybindingService private readonly _keybindingService: IKeybindingService,
@ITextModelService private readonly _textModelService: ITextModelService,
@IFileService private _fileService: IFileService
@optional(IFileService) private _fileService: IFileService
) {
this._editor = editor;
this._model = new QuickFixModel(this._editor, markerService);
Expand Down

0 comments on commit 73f3e0d

Please sign in to comment.