about summary refs log tree commit diff
path: root/editors/code/src
diff options
context:
space:
mode:
authorLaurențiu Nicola <lnicola@dend.ro>2023-02-20 10:14:12 +0200
committerLaurențiu Nicola <lnicola@dend.ro>2023-02-20 10:14:12 +0200
commit7e711da2f07778d62f6411de5da520f1e260d761 (patch)
tree323737a55a6a0ed6962bf1eadc3459edff92e5a5 /editors/code/src
parentbc45c7659a4668206922c290dfc1b78b7e57d375 (diff)
downloadrust-7e711da2f07778d62f6411de5da520f1e260d761.tar.gz
rust-7e711da2f07778d62f6411de5da520f1e260d761.zip
:arrow_up: rust-analyzer
Diffstat (limited to 'editors/code/src')
-rw-r--r--editors/code/src/commands.ts6
-rw-r--r--editors/code/src/main.ts1
2 files changed, 7 insertions, 0 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts
index b5b64e33e07..49a8ca4edba 100644
--- a/editors/code/src/commands.ts
+++ b/editors/code/src/commands.ts
@@ -87,6 +87,12 @@ export function shuffleCrateGraph(ctx: CtxInit): Cmd {
     };
 }
 
+export function triggerParameterHints(_: CtxInit): Cmd {
+    return async () => {
+        await vscode.commands.executeCommand("editor.action.triggerParameterHints");
+    };
+}
+
 export function matchingBrace(ctx: CtxInit): Cmd {
     return async () => {
         const editor = ctx.activeRustEditor;
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts
index dd439317c70..5987368e6e0 100644
--- a/editors/code/src/main.ts
+++ b/editors/code/src/main.ts
@@ -186,5 +186,6 @@ function createCommands(): Record<string, CommandFactory> {
         resolveCodeAction: { enabled: commands.resolveCodeAction },
         runSingle: { enabled: commands.runSingle },
         showReferences: { enabled: commands.showReferences },
+        triggerParameterHints: { enabled: commands.triggerParameterHints },
     };
 }