Skip to content

Commit dde264c

Browse files
author
Loïc Mangeonjean
committed
fix: fallback to global quickaccess when no focused editor
now that global keybindings can be disabled
1 parent ce18afc commit dde264c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/service-override/quickaccess.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { ICodeEditor } from 'vs/editor/browser/editorBrowser'
2020
let isKeybindingConfigurationVisible = () => {
2121
return false
2222
}
23-
let shouldUseGlobalPicker = (_activeCodeEditor: ICodeEditor | null, _activeCodeEditorStandalone: boolean) => {
23+
let shouldUseGlobalPicker = (_activeCodeEditor: ICodeEditor, _activeCodeEditorStandalone: boolean) => {
2424
return false
2525
}
2626

@@ -52,7 +52,7 @@ class DelegateQuickInputService implements IQuickInputService {
5252
private get activeService (): IQuickInputService {
5353
const activeCodeEditor = StandaloneServices.get(ICodeEditorService).getFocusedCodeEditor()
5454

55-
if (shouldUseGlobalPicker(activeCodeEditor, activeCodeEditor instanceof StandaloneCodeEditor)) {
55+
if (activeCodeEditor == null || shouldUseGlobalPicker(activeCodeEditor, activeCodeEditor instanceof StandaloneCodeEditor)) {
5656
return this.workbenchQuickInputService
5757
}
5858

0 commit comments

Comments
 (0)