Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/package.json')
-rw-r--r--editors/code/package.json15
1 files changed, 15 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 6deb5bfd77..6900719454 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -290,6 +290,12 @@
"category": "rust-analyzer (syntax tree)"
},
{
+ "command": "rust-analyzer.syntaxTreeCopy",
+ "title": "Copy",
+ "icon": "$(copy)",
+ "category": "rust-analyzer (syntax tree)"
+ },
+ {
"command": "rust-analyzer.syntaxTreeHideWhitespace",
"title": "Hide Whitespace",
"icon": "$(filter)",
@@ -3371,6 +3377,10 @@
"when": "false"
},
{
+ "command": "rust-analyzer.syntaxTreeCopy",
+ "when": "false"
+ },
+ {
"command": "rust-analyzer.syntaxTreeHideWhitespace",
"when": "false"
},
@@ -3405,6 +3415,11 @@
],
"view/item/context": [
{
+ "command": "rust-analyzer.syntaxTreeCopy",
+ "group": "inline",
+ "when": "view == rustSyntaxTree"
+ },
+ {
"command": "rust-analyzer.syntaxTreeReveal",
"group": "inline",
"when": "view == rustSyntaxTree"