VSpaceCode / vscode-which-key

which-key like menu for Visual Studio Code
https://vspacecode.github.io/docs/whichkey
MIT License
166 stars 18 forks source link

command not found #91

Closed Belphegor27 closed 3 months ago

Belphegor27 commented 3 months ago

Bug description

I want to use "workbench.action.terminal.sendSequence" to pass "dotnet run" for C# But it doesn't work, while I use keybindings.json and it works

I hope I can fully get into which key to not using keybinding

To Reproduce

Expected behavior

Screenshots

Additional context

Keybindings

Click to toggle contents of `keybindings.json`

```jsonc { "key": "alt+a", "command": "workbench.action.terminal.sendSequence", "args": { "text": "dotnet run" } } ```

Settings

Click to toggle contents of `settings.json`

```jsonc { "key": "j", "name": "C#", "type": "command", "command": ["workbench.action.terminal.sendSequence"], "args": ["dotnet", "run"] }, ```

System information

stevenguh commented 3 months ago

The sendSequence expect an object with the text field like you had in the shortcuts.

Try the following setting.

{
            "key": "j",
            "name": "C#",
            "type": "command",
            "command": "workbench.action.terminal.sendSequence",
            "args": {"text": "dotnet run"}
},

I am closing this now. Free feel to reopen if it doesn't solve your issue.