Skip to content

Instantly share code, notes, and snippets.

@ninmonkey
Last active April 3, 2024 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ninmonkey/92bc50e7310ffa6f6da1818a1ad2898d to your computer and use it in GitHub Desktop.
Save ninmonkey/92bc50e7310ffa6f6da1818a1ad2898d to your computer and use it in GitHub Desktop.
Shelly: VsCode Keybindings Log

About

These are the logs from the command Developer: Toggle Keyboard Shortcuts Troubleshooting.

WhatIsKey: ctrl+spacebar

see PSReadLine.WhatIsKey KeyBindings.cs

# Shelly: Disabled, Term: default
Ctrl+@: MenuComplete - 

# Shelly: Enabled,  Term: default
F12,e: CustomAction - User defined action

My settings.json

Here's some shelly settings that might be related:

{ 
"terminal.integrated.allowChords": false, 
"terminal.integrated.sendKeybindingsToShell": false,
"terminal.integrated.shellIntegration.enabled": false, // need toggle and create a new term to test,
// "powershell.enableProfileLoading": false, // should be optional. this is the extension term
"terminal.integrated.commandsToSkipShell": [
        "workbench.action.files.newUntitledFile",
        "workbench.action.toggleSidebarVisibility",
        "workbench.action.showAllSymbols"
    ],
},
// this is not needed, but if you want to run as -noprofile for the non-extension
"terminal.integrated.defaultProfile.windows": "Pwsh🐒", // "Pwsh🐒",
"Pwsh🐒": {
            "color": "terminal.ansiYellow",
            "overrideName": true,
            "path": [ "pwsh.exe", "C:/Program Files/PowerShell/7/pwsh.exe" ],
            "args": [ "-NoLogo" ],
            "icon": "terminal-powershell"
        },

one thing I tried was docs: manual invoking shelly

$env:VSCODE_SUGGEST = 1
. (gi (code --locate-shell-integration-path pwsh))
# or maybe
$Global:__VSCodeHaltCompletions = 1 # or true?

BuiltinTerminal, ShellIntegration: disabled

/ Soft dispatching keyboard event
\ Keyboard event cannot be dispatched

/ Received  keydown event - 
    modifiers: [ctrl],
    code: ControlLeft,
    keyCode: 17, key: Control


| Converted keydown event - 
    modifiers: [ctrl],
    code: ControlLeft,
    keyCode: 5 ('Ctrl')

\ Keyboard event cannot be dispatched in keydown phase.
/ Soft dispatching keyboard event
| Resolving ctrl+Space
\ From 5 keybinding entries, no when clauses matched the context.
/ Soft dispatching keyboard event
| Resolving ctrl+Space
\ From 5 keybinding entries, no when clauses matched the context.
/ Soft dispatching keyboard event
\ Keyboard event cannot be dispatched
+ Ignoring single modifier ctrl due to it being pressed together with other keys.

BuiltinTerminal, ShellIntegration: enabled

/ Soft dispatching keyboard event
\ Keyboard event cannot be dispatched

/ Received  keydown event - 
    modifiers: [ctrl],
    code: ControlLeft,
    keyCode: 17,
    key: Control


| Converted keydown event - 
    modifiers: [ctrl],
    code: ControlLeft,
    keyCode: 5 ('Ctrl')

\ Keyboard event cannot be dispatched in keydown phase.
/ Soft dispatching keyboard event
| Resolving ctrl+Space
\ From 5 keybinding entries, no when clauses matched the context.
/ Soft dispatching keyboard event
| Resolving ctrl+Space
\ From 5 keybinding entries, no when clauses matched the context.
/ Soft dispatching keyboard event
\ Keyboard event cannot be dispatched
+ Ignoring single modifier ctrl due to it being pressed together with other keys.
/ Soft dispatching keyboard event
\ Keyboard event cannot be dispatched

/ Received  keydown event - 
    modifiers: [ctrl],
    code: ControlLeft,
    keyCode: 17,
    key: Control


| Converted keydown event - 
    modifiers: [ctrl],
    code: ControlLeft,
    keyCode: 5 ('Ctrl')

\ Keyboard event cannot be dispatched in keydown phase.
/ Soft dispatching keyboard event
| Resolving ctrl+Space
\ From 5 keybinding entries,
	matched
	workbench.action.terminal.sendSequence,
    when: 
        config.terminal.integrated.shellIntegration.suggestEnabled && terminalFocus 
        && terminalShellIntegrationEnabled && !accessibilityModeEnabled 
        && terminalShellType == 'pwsh',
    source: built-in.

/ Received  keydown event - modifiers: [ctrl], code: Space, keyCode: 32, key:  
| Converted keydown event - modifiers: [ctrl], code: Space, keyCode: 10 ('Space')
| Resolving ctrl+Space
\ From 5 keybinding entries,
	matched
	workbench.action.terminal.sendiSequence,
    when: 
        config.terminal.integrated.shellIntegration.suggestEnabled && terminalFocus 
        && terminalShellIntegratonEnabled && !accessibilityModeEnabled 
        && terminalShellType == 'pwsh',
    source: built-in.

+ Invoking command workbench.action.terminal.sendSequence.
/ Soft dispatching keyboard event
| Resolving ctrl+Space
\ From 5 keybinding entries,
	matched
	workbench.action.terminal.sendSequence,
    when: 
        config.terminal.integrated.shellIntegration.suggestEnabled && terminalFocus 
        && terminalShellIntegrationEnabled && !accessibilityModeEnabled 
        && terminalShellType == 'pwsh',
    source: built-in.

/ Soft dispatching keyboard event
\ Keyboard event cannot be dispatched
+ Ignoring single modifier ctrl due to it being pressed together with other keys.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment