Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/src/main.ts')
-rw-r--r--editors/code/src/main.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts
index d5de00561b..be9bc9d363 100644
--- a/editors/code/src/main.ts
+++ b/editors/code/src/main.ts
@@ -120,13 +120,11 @@ function createCommands(): Record<string, CommandFactory> {
enabled: commands.onEnter,
disabled: (_) => () => vscode.commands.executeCommand("default:type", { text: "\n" }),
},
- reload: {
+ restartServer: {
enabled: (ctx) => async () => {
- void vscode.window.showInformationMessage("Reloading rust-analyzer...");
await ctx.restart();
},
disabled: (ctx) => async () => {
- void vscode.window.showInformationMessage("Reloading rust-analyzer...");
await ctx.start();
},
},
@@ -153,6 +151,7 @@ function createCommands(): Record<string, CommandFactory> {
memoryUsage: { enabled: commands.memoryUsage },
shuffleCrateGraph: { enabled: commands.shuffleCrateGraph },
reloadWorkspace: { enabled: commands.reloadWorkspace },
+ rebuildProcMacros: { enabled: commands.rebuildProcMacros },
addProject: { enabled: commands.addProject },
matchingBrace: { enabled: commands.matchingBrace },
joinLines: { enabled: commands.joinLines },
@@ -160,6 +159,7 @@ function createCommands(): Record<string, CommandFactory> {
syntaxTree: { enabled: commands.syntaxTree },
viewHir: { enabled: commands.viewHir },
viewMir: { enabled: commands.viewMir },
+ interpretFunction: { enabled: commands.interpretFunction },
viewFileText: { enabled: commands.viewFileText },
viewItemTree: { enabled: commands.viewItemTree },
viewCrateGraph: { enabled: commands.viewCrateGraph },
@@ -190,5 +190,6 @@ function createCommands(): Record<string, CommandFactory> {
showReferences: { enabled: commands.showReferences },
triggerParameterHints: { enabled: commands.triggerParameterHints },
openLogs: { enabled: commands.openLogs },
+ revealDependency: { enabled: commands.revealDependency },
};
}