Skip to content

Commit 0fec61a

Browse files
committed
Auto merge of rust-lang#15827 - notpeter:vscode_rust_formatter, r=lnicola
VSCode metadata. category:formatters If you invoke cmd+p `Format Document` without rust-analyzer installed in the workspace, VSCode suggests you "install a formatter" which triggers a search for `category:formatters rust`. Sadly rust-analyzer extension is not suggested. Tweak VSCode Extension Metadata so rust-analyzer shows up in 'category:formatters rust' search. You can see the valid values for categories in the [extension manifest: field reference](https://code.visualstudio.com/api/references/extension-manifest#fields) docs. <img width="270" alt="search2" src="https://github.com/rust-lang/rust-analyzer/assets/145113/5bd86497-2450-4be4-a073-e134d0616226"> <img width="432" alt="search_1" src="https://github.com/rust-lang/rust-analyzer/assets/145113/1ad1b375-58a1-4b37-b485-78e2a26b8342">
2 parents 11a263d + fccdde6 commit 0fec61a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

editors/code/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"rust"
1818
],
1919
"categories": [
20+
"Formatters",
2021
"Programming Languages"
2122
],
2223
"capabilities": {

0 commit comments

Comments
 (0)