diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-05-25 08:14:43 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-25 08:14:43 +0100 |
commit | 1527feb744c7911b6ca482554f0399d3ef0ebfdc (patch) | |
tree | 7393ee6defa8951afafe90f0c180e7c0f4f1db70 /editors/code/src/main.ts | |
parent | fbb8b884a2dbc3ced720c84f4604466e223f6d69 (diff) | |
parent | 5dab5e737909532e4a65390541393af6ee72f65b (diff) |
Merge #4601
4601: Introduce `toggle inlay hints` vscode command r=matklad a=Veetaha
Users now can assign a shortcut for this command
via the general vscode
keybindings ui or `keybindings.json` file
<details>
<summary>Demo</summary>
![demo](https://user-images.githubusercontent.com/36276403/82768941-b4fd1c80-9e3a-11ea-9d5b-a40fa1e4dbc6.gif)
</details>
<details>
<summary>Howto assign a shortcut</summary>
![demo2](https://user-images.githubusercontent.com/36276403/82769350-c8a98280-9e3c-11ea-8a95-1266a539826d.gif)
</details>
Closes: #4599
Co-authored-by: veetaha <[email protected]>
Diffstat (limited to 'editors/code/src/main.ts')
-rw-r--r-- | editors/code/src/main.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts index 3405634f3..0e5a20641 100644 --- a/editors/code/src/main.ts +++ b/editors/code/src/main.ts | |||
@@ -86,6 +86,7 @@ export async function activate(context: vscode.ExtensionContext) { | |||
86 | 86 | ||
87 | ctx.registerCommand('ssr', commands.ssr); | 87 | ctx.registerCommand('ssr', commands.ssr); |
88 | ctx.registerCommand('serverVersion', commands.serverVersion); | 88 | ctx.registerCommand('serverVersion', commands.serverVersion); |
89 | ctx.registerCommand('toggleInlayHints', commands.toggleInlayHints); | ||
89 | 90 | ||
90 | // Internal commands which are invoked by the server. | 91 | // Internal commands which are invoked by the server. |
91 | ctx.registerCommand('runSingle', commands.runSingle); | 92 | ctx.registerCommand('runSingle', commands.runSingle); |