Skip to content

Commit

Permalink
feat: use vscode command service
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Mangeonjean committed Jun 16, 2023
1 parent 97c649d commit b521f69
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 @@ -8,6 +8,8 @@ import { IUserDataProfilesService } from 'vs/platform/userDataProfile/common/use
import { IKeyboardLayoutService } from 'vs/platform/keyboardLayout/common/keyboardLayout'
import { BrowserKeyboardLayoutService } from 'vs/workbench/services/keybinding/browser/keyboardLayoutService'
import { IFileService } from 'vs/platform/files/common/files'
import { ICommandService } from 'vs/platform/commands/common/commands'
import { CommandService } from 'vs/workbench/services/commands/common/commandService'
import getFileServiceOverride from './files'
import 'vs/workbench/browser/workbench.contribution'

Expand All @@ -20,7 +22,8 @@ export default function getServiceOverride (): IEditorOverrideServices {
return {
...getFileServiceOverride(),
[IKeybindingService.toString()]: new SyncDescriptor(WorkbenchKeybindingService),
[IKeyboardLayoutService.toString()]: new SyncDescriptor(BrowserKeyboardLayoutService, undefined, true)
[IKeyboardLayoutService.toString()]: new SyncDescriptor(BrowserKeyboardLayoutService, undefined, true),
[ICommandService.toString()]: new SyncDescriptor(CommandService)
}
}

Expand Down

0 comments on commit b521f69

Please sign in to comment.