From b0c702dd2f3d7c5910b8477849a8ca8e8850764b Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Mon, 8 Aug 2016 15:25:27 +0200 Subject: [PATCH] Use the correct accessor (find the correct context keys) --- src/vs/editor/common/config/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/editor/common/config/config.ts b/src/vs/editor/common/config/config.ts index ad5115591ca..72d6fba74a3 100644 --- a/src/vs/editor/common/config/config.ts +++ b/src/vs/editor/common/config/config.ts @@ -111,7 +111,7 @@ export abstract class EditorCommand extends Command { return; } return editor.invokeWithinContext((editorAccessor) => { - const kbService = accessor.get(IKeybindingService); + const kbService = editorAccessor.get(IKeybindingService); if (!kbService.contextMatchesRules(this.precondition)) { // precondition does not hold return;