@@ -15,11 +15,12 @@ import 'vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess'
1515import 'vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess'
1616import 'vs/workbench/browser/actions/quickAccessActions'
1717import 'vs/workbench/contrib/quickaccess/browser/quickAccess.contribution'
18+ import { ICodeEditor } from 'vs/editor/browser/editorBrowser'
1819
1920let isKeybindingConfigurationVisible = ( ) => {
2021 return false
2122}
22- let shouldUseGlobalPicker = ( ) => {
23+ let shouldUseGlobalPicker = ( _activeCodeEditor : ICodeEditor | null , _activeCodeEditorStandalone : boolean ) => {
2324 return false
2425}
2526
@@ -50,7 +51,8 @@ class DelegateQuickInputService implements IQuickInputService {
5051
5152 private get activeService ( ) : IQuickInputService {
5253 const activeCodeEditor = StandaloneServices . get ( ICodeEditorService ) . getFocusedCodeEditor ( )
53- if ( ! ( activeCodeEditor instanceof StandaloneCodeEditor ) && shouldUseGlobalPicker ( ) ) {
54+
55+ if ( shouldUseGlobalPicker ( activeCodeEditor , activeCodeEditor instanceof StandaloneCodeEditor ) ) {
5456 return this . workbenchQuickInputService
5557 }
5658
@@ -112,7 +114,7 @@ class DelegateQuickInputService implements IQuickInputService {
112114
113115interface QuickAccessProps {
114116 isKeybindingConfigurationVisible ?: ( ) => boolean
115- shouldUseGlobalPicker ?: ( ) => boolean
117+ shouldUseGlobalPicker ?: ( activeCodeEditor : ICodeEditor | null , activeCodeEditorStandalone : boolean ) => boolean
116118}
117119
118120export default function getServiceOverride ( {
0 commit comments