Skip to content

Commit

Permalink
feat: use vscode IKeyboardLayoutService
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Mangeonjean committed Jan 31, 2023
1 parent d324ee8 commit 122815c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/service-override/keybindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import { CommandsQuickAccessProvider } from 'vs/workbench/contrib/quickaccess/br
import { DisposableStore } from 'vs/base/common/lifecycle'
import { CancellationToken } from 'vs/base/common/cancellation'
import { IUserDataProfilesService } from 'vs/platform/userDataProfile/common/userDataProfile'
import { IKeyboardLayoutService } from 'vs/platform/keyboardLayout/common/keyboardLayout'
import { BrowserKeyboardLayoutService } from 'vs/workbench/services/keybinding/browser/keyboardLayoutService'
import getFileServiceOverride from './files'
import { consoleExtensionMessageHandler, getExtensionPoint } from './tools'
import { DEFAULT_EXTENSION } from '../vscode-services/extHost'
Expand Down Expand Up @@ -125,7 +127,8 @@ function updateUserKeybindings (keybindingsJson: string): void {
export default function getServiceOverride (): IEditorOverrideServices {
return {
...getFileServiceOverride(),
[IKeybindingService.toString()]: new SyncDescriptor(DelegateStandaloneKeybindingService)
[IKeybindingService.toString()]: new SyncDescriptor(DelegateStandaloneKeybindingService),
[IKeyboardLayoutService.toString()]: new SyncDescriptor(BrowserKeyboardLayoutService)
}
}

Expand Down

0 comments on commit 122815c

Please sign in to comment.