Use the correct accessor (find the correct context keys)
This commit is contained in:
parent
e784ae6085
commit
b0c702dd2f
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue