Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS Code extension .bicepconfig file template uses wrong key bindings #16521

Open
jikuja opened this issue Mar 2, 2025 · 0 comments
Open

VS Code extension .bicepconfig file template uses wrong key bindings #16521

jikuja opened this issue Mar 2, 2025 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@jikuja
Copy link

jikuja commented Mar 2, 2025

Bicep version
Main branch

Describe the bug
src/vscode-bicep/vscode-snippets/jsonc-snippets.jsonc suggests key binding that open spotlight on OS X.

"\t// Press CTRL+SPACE/CMD+SPACE at any location to see Intellisense suggestions",

Default settings on VS code: https://github.com/microsoft/vscode/blob/e8c27bc34442a660e50e97331ef7ace6bc9fa9be/src/vs/editor/contrib/suggest/browser/suggestController.ts#L995-L997

registerEditorCommand(new SuggestCommand({
	id: 'focusSuggestion',
	precondition: ContextKeyExpr.and(SuggestContext.Visible, SuggestContext.HasFocusedSuggestion.negate()),
	handler: x => x.focusSuggestion(),
	kbOpts: {
		weight: weight,
		kbExpr: EditorContextKeys.textInputFocus,
		primary: KeyMod.CtrlCmd | KeyCode.Space,
		secondary: [KeyMod.CtrlCmd | KeyCode.KeyI],
		mac: { primary: KeyMod.WinCtrl | KeyCode.Space, secondary: [KeyMod.CtrlCmd | KeyCode.KeyI] }
	},
}));

To Reproduce
Press CMD+SCPACE on OS X while trying to open intellisense suggestion

Suggested change
Press CTRL+SPACE/CTRL+i/CMD+i at any location to see Intellisense suggestions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

3 participants