Skip to content

Commit 73f3e0d

Browse files
rebornixmjbvz
authored andcommitted
Fix microsoft#38920. Optional dependency to fileservice. (microsoft#38921)
1 parent d049d54 commit 73f3e0d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/vs/editor/contrib/quickFix/quickFixCommands.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { ICommandService } from 'vs/platform/commands/common/commands';
1111
import { IContextMenuService } from 'vs/platform/contextview/browser/contextView';
1212
import { ContextKeyExpr, IContextKeyService } from 'vs/platform/contextkey/common/contextkey';
1313
import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding';
14+
import { optional } from 'vs/platform/instantiation/common/instantiation';
1415
import { IMarkerService } from 'vs/platform/markers/common/markers';
1516
import { IEditorContribution } from 'vs/editor/common/editorCommon';
1617
import { EditorContextKeys } from 'vs/editor/common/editorContextKeys';
@@ -46,7 +47,7 @@ export class QuickFixController implements IEditorContribution {
4647
@IContextMenuService contextMenuService: IContextMenuService,
4748
@IKeybindingService private readonly _keybindingService: IKeybindingService,
4849
@ITextModelService private readonly _textModelService: ITextModelService,
49-
@IFileService private _fileService: IFileService
50+
@optional(IFileService) private _fileService: IFileService
5051
) {
5152
this._editor = editor;
5253
this._model = new QuickFixModel(this._editor, markerService);

0 commit comments

Comments
 (0)