Skip to content

Commit

Permalink
Auto merge of #15827 - notpeter:vscode_rust_formatter, r=lnicola
Browse files Browse the repository at this point in the history
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">
  • Loading branch information
bors committed Nov 3, 2023
2 parents 11a263d + fccdde6 commit 0fec61a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editors/code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"rust"
],
"categories": [
"Formatters",
"Programming Languages"
],
"capabilities": {
Expand Down

0 comments on commit 0fec61a

Please sign in to comment.