From 6750f6b7c5b24e82c27ec611aa46e789bcd1b184 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Thu, 3 Nov 2022 21:36:14 +0100 Subject: [PATCH 1/2] Clarify what commands are debug commands in VSCode --- editors/code/package.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/editors/code/package.json b/editors/code/package.json index 0ff66527451d3..6f9d6f07998b4 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -100,22 +100,27 @@ { "command": "rust-analyzer.syntaxTree", "title": "Show Syntax Tree", - "category": "rust-analyzer" + "category": "rust-analyzer (debug command)" }, { "command": "rust-analyzer.viewHir", "title": "View Hir", - "category": "rust-analyzer" + "category": "rust-analyzer (debug command)" }, { "command": "rust-analyzer.viewFileText", "title": "View File Text (as seen by the server)", - "category": "rust-analyzer" + "category": "rust-analyzer (debug command)" }, { "command": "rust-analyzer.viewItemTree", "title": "Debug ItemTree", - "category": "rust-analyzer" + "category": "rust-analyzer (debug command)" + }, + { + "command": "rust-analyzer.shuffleCrateGraph", + "title": "Shuffle Crate Graph", + "category": "rust-analyzer (debug command)" }, { "command": "rust-analyzer.viewCrateGraph", @@ -177,11 +182,6 @@ "title": "Memory Usage (Clears Database)", "category": "rust-analyzer" }, - { - "command": "rust-analyzer.shuffleCrateGraph", - "title": "Shuffle Crate Graph", - "category": "rust-analyzer" - }, { "command": "rust-analyzer.reloadWorkspace", "title": "Reload workspace", From 26b56210185bcba16feff469e04ab0d22e30acb2 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Sat, 5 Nov 2022 00:30:21 +0100 Subject: [PATCH 2/2] Mark the Memory Usage command as debug command --- editors/code/package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/editors/code/package.json b/editors/code/package.json index 6f9d6f07998b4..82142bec2eaf5 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -122,6 +122,11 @@ "title": "Shuffle Crate Graph", "category": "rust-analyzer (debug command)" }, + { + "command": "rust-analyzer.memoryUsage", + "title": "Memory Usage (Clears Database)", + "category": "rust-analyzer (debug command)" + }, { "command": "rust-analyzer.viewCrateGraph", "title": "View Crate Graph", @@ -177,11 +182,6 @@ "title": "Status", "category": "rust-analyzer" }, - { - "command": "rust-analyzer.memoryUsage", - "title": "Memory Usage (Clears Database)", - "category": "rust-analyzer" - }, { "command": "rust-analyzer.reloadWorkspace", "title": "Reload workspace",