Commit graph

2175 commits

Author SHA1 Message Date
Chayim Refael Friedman
36fa19936b
Merge pull request #21156 from Wilfred/manual_formatting
Some checks are pending
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
Fix formatting issues in manual
2025-11-28 11:51:16 +00:00
Wilfred Hughes
1ce8ab347f Fix URLs and highlighting in manual 2025-11-28 11:39:40 +00:00
Wilfred Hughes
32b334b503 fix: rust-analyzer.imports.granularity.group should get a dropdown UI
VS Code only offers a dropdown if a the toplevel property description
is `enum`. For `anyOf` (a JSON schema feature), we don't get that
helpful UI.

Whilst the previous version marked `preserve` as deprecated, the VS
Code UI didn't do anything special when users chose that value.

Instead, use an enum so we get the helpful dropdown, and just use the
description to highlight the deprecated value.

Relevant docs:

https://code.visualstudio.com/api/references/contribution-points#:~:text=The%20enumDescriptions%20property%20provides%20a,will%20be%20parsed%20as%20Markdown.

https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-01#section-10.2.1.2
2025-11-28 11:01:57 +00:00
Young-Flash
d808026ca9 refactor: remove unused code 2025-11-21 22:12:08 +08:00
Aditya-PS-05
ba5ecc09ac feat: make dyn inlay hints configurable 2025-11-20 00:37:01 +05:30
Lukas Wirth
0af01418c3
Merge pull request #21055 from rust-lang/dependabot/npm_and_yarn/editors/code/js-yaml-3.14.2
Bump js-yaml from 3.14.1 to 3.14.2 in /editors/code
2025-11-18 15:37:49 +00:00
dependabot[bot]
d0e529084c
Bump glob from 11.0.1 to 11.1.0 in /editors/code
Bumps [glob](https://github.com/isaacs/node-glob) from 11.0.1 to 11.1.0.
- [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/node-glob/compare/v11.0.1...v11.1.0)

---
updated-dependencies:
- dependency-name: glob
  dependency-version: 11.1.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-18 12:29:17 +00:00
dependabot[bot]
22037b2df5
Bump js-yaml from 3.14.1 to 3.14.2 in /editors/code
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.14.1 to 3.14.2.
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/3.14.1...3.14.2)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 3.14.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-18 12:27:18 +00:00
Shoyu Vanilla (Flint)
2e2e3ebec9
Merge pull request #20927 from ChayimFriedman2/dhat
Some checks failed
metrics / build_metrics (push) Has been cancelled
rustdoc / rustdoc (push) Has been cancelled
metrics / other_metrics (diesel-1.4.8) (push) Has been cancelled
metrics / other_metrics (hyper-0.14.18) (push) Has been cancelled
metrics / other_metrics (ripgrep-13.0.0) (push) Has been cancelled
metrics / other_metrics (self) (push) Has been cancelled
metrics / other_metrics (webrender-2022) (push) Has been cancelled
metrics / generate_final_metrics (push) Has been cancelled
feat: Support memory profiling with dhat
2025-10-31 07:08:23 +00:00
Chayim Refael Friedman
1ba3165b81 Support memory profiling with dhat
Unfortunately, this requires a custom build of r-a, and it's quite slow.
2025-10-28 13:00:53 +02:00
Chayim Refael Friedman
4fddcc6d57 Provide an option to not show derives near the ADT for "Goto Implementations" or "Implementations" codelens
I don't do it by default, for three reasons: (1) it's more expensive, (2) I actually quite like seeing the derives, and they may expand to no impl/more than one impl, (3) if #19130 will ever be merged this will become even more useful.

Even a config might be too much, but it was fun and easy to code so I did that.
2025-10-28 08:34:16 +02:00
Michael Gruenewald
291aa7a602 Don't add cargo to requiresServerReloadOpts 2025-10-26 13:22:52 +01:00
Michael Gruenewald
c5893b7c5e Format fixes 2025-10-13 15:02:45 +02:00
Michael Gruenewald
ec45211823 Don't override users' settings 2025-10-13 15:02:45 +02:00
Michael Gruenewald
8355233a19 docs 2025-10-13 15:02:45 +02:00
Michael Gruenewald
c10226a8a1 Remember configuration overrides by extensions 2025-10-13 15:02:45 +02:00
Michael Gruenewald
d1bfff1e39 Allow other extensions to override the configuration 2025-10-13 15:02:45 +02:00
Michael Gruenewald
410cf5575d Don't pretend to have a WorkspaceConfiguration if there isn't one 2025-10-13 15:02:45 +02:00
Michael Gruenewald
86ee444fff Add lodash 2025-10-13 15:02:45 +02:00
Shoyu Vanilla (Flint)
87ccc2b7c9
Merge pull request #20801 from ChayimFriedman2/fix-insert-use
minor: Small fixes for import insertion
2025-10-10 08:28:42 +00:00
Kirill Bulatov
d0e07f080b Replace --show-output with --nocapture
The former does not show any output before the test is finished, which prevents long-running/stuck tests from showing any useful information.
2025-10-05 22:28:00 +03:00
Chayim Refael Friedman
10db7ac7a4 Deprecate preserve import granularity option
It didn't do anything (behaved like `item`), as with `enforceGranularity = false` (which is the default), the style of the current file is always preferred, regardless of the setting.

We could make it fail when the setting is `preserve` and the current file's style could not be detected, but that makes little sense.

It is a bit weird that the default is `crate` but `preserve` falls back to `item`, however that was the previous behavior.
2025-10-05 15:19:52 +03:00
dependabot[bot]
3deacd158d
Bump tar-fs from 2.1.3 to 2.1.4 in /editors/code
Bumps [tar-fs](https://github.com/mafintosh/tar-fs) from 2.1.3 to 2.1.4.
- [Commits](https://github.com/mafintosh/tar-fs/compare/v2.1.3...v2.1.4)

---
updated-dependencies:
- dependency-name: tar-fs
  dependency-version: 2.1.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-26 19:45:06 +00:00
Chayim Refael Friedman
129d9f7af6 Clarify rust-analyzer.inlayHints.maxLength is not a hard guarantee 2025-09-22 04:16:50 +03:00
Bart Jacobs
d106d41fbc Add the rust-analyzer.semanticHighlighting.comments.enable configuration value 2025-09-17 15:46:23 +02:00
Chayim Refael Friedman
eaf71411a9 Add an option to remove reborrows from adjustment inlay hints
Reborrows are consecutive deref then ref. Make it the default because reborrows are mostly useless to the programmer.

Also rename `rust-analyzer.inlayHints.expressionAdjustmentHints.enable: "reborrow"` to `rust-analyzer.inlayHints.expressionAdjustmentHints.enable: "borrows"`, as it's not about reborrows but about any ref/deref and it's confusing with the new setting.
2025-08-24 02:26:37 +03:00
lumiscosity
7c8b75344c Optimize icon
Losslessly optimizes the icon with:

```
oxipng -o max -a -s
oxipng -o max --zopfli -a -s
```
2025-08-19 11:41:58 +02:00
Wilfred Hughes
5c262a6f05 [internal] Update to the latest @vscode/vsce for extension build
This isn't a logic change, but it fixes an npm warning during the
build. vsce itself hasn't had any major changes between 3.2.2 and 3.6.

* https://github.com/microsoft/vscode-vsce/releases/tag/v3.3.0
* https://github.com/microsoft/vscode-vsce/releases/tag/v3.4.0
* https://github.com/microsoft/vscode-vsce/releases/tag/v3.5.0
* https://github.com/microsoft/vscode-vsce/releases/tag/v3.6.0
2025-08-13 15:25:34 +01:00
Ifeanyi Orizu
dc6e6d2b86 Add config option to exclude locals from doc search 2025-08-10 17:48:17 -05:00
dependabot[bot]
77c9f5cb87
Bump tmp from 0.2.3 to 0.2.4 in /editors/code
Bumps [tmp](https://github.com/raszi/node-tmp) from 0.2.3 to 0.2.4.
- [Changelog](https://github.com/raszi/node-tmp/blob/master/CHANGELOG.md)
- [Commits](https://github.com/raszi/node-tmp/compare/v0.2.3...v0.2.4)

---
updated-dependencies:
- dependency-name: tmp
  dependency-version: 0.2.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-06 17:11:37 +00:00
Ifeanyi Orizu
76b2333c1b Update documentation for overrideCommand config options 2025-08-01 10:48:54 -05:00
Lukas Wirth
c12ec2e062
Merge pull request #20154 from joshka/jm/improve-setting-titles
Improve settings tree title and descriptions
2025-07-29 10:42:07 +00:00
Lukas Wirth
2a577eb2f5 Unherit server extra env for runnables extra env 2025-07-27 14:09:21 +02:00
Lukas Wirth
92d56156a4 fix: Fix runnables extra env not substituting env vars 2025-07-27 14:07:10 +02:00
dependabot[bot]
36e31f9142
Bump form-data from 4.0.2 to 4.0.4 in /editors/code
Bumps [form-data](https://github.com/form-data/form-data) from 4.0.2 to 4.0.4.
- [Release notes](https://github.com/form-data/form-data/releases)
- [Changelog](https://github.com/form-data/form-data/blob/master/CHANGELOG.md)
- [Commits](https://github.com/form-data/form-data/compare/v4.0.2...v4.0.4)

---
updated-dependencies:
- dependency-name: form-data
  dependency-version: 4.0.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-22 05:30:29 +00:00
Josh McKinney
fb219ae76c
Improve settings tree title and descriptions
- All settings are now phrased in the imperative form stating what the
  setting does rather than talking about what it controls. (E.g.:
  "Show `Debug` action." instead of "Whether to show `Debug` action"
- Categories are now displayed in title case
- Categories are now sorted lexicographically
- General category is removed (and all the settings are moved to the top
  level)
- Language for a few descriptions is made a bit less ambiguous
2025-07-02 22:12:46 -07:00
Lukas Wirth
332434aecd
Merge pull request #20104 from Veykril/push-nqnmmlvksyty
Cleanup `provideCodeActions` vscode hook
2025-06-26 08:44:57 +00:00
Lukas Wirth
db07723fe9 Cleanup provideCodeActions vscode hook 2025-06-26 10:32:13 +02:00
roifewu
c36758def4 refactor: rename branches to branch_exit_points in highlight_related 2025-06-26 13:41:41 +08:00
roifewu
f87220e22a feat: highlighting of related return values while the cursor is on any match, if, or match arm arrow (=>) 2025-06-26 13:41:39 +08:00
Lukas Wirth
756f1bfd65
Merge pull request #20077 from markpots5/master
feat: Extend vscode 'run' command with optional mode argument for run…
2025-06-25 08:13:14 +00:00
Mark Pots
e2e24f84c4 Remove special casing in command factory (revert changes in ctx.ts), update main.createCommands instead 2025-06-24 11:56:22 +02:00
Mark Pots
92da17cfa5 feat: Extend vscode 'run' command with optional mode argument for running test(s) or bin at keyboard cursor 2025-06-23 21:27:26 +02:00
Lucas Holten
7492b63c18 Add better documentation for excluding imports from symbol search 2025-06-20 13:26:59 +02:00
Lukas Wirth
3ee81c7115 fix: Temporarily disable + typing handler as it moves the cursor position 2025-06-19 08:29:50 +02:00
Lukas Wirth
24b0666d93 fix: Reload workspaces when cargo configs change 2025-06-17 11:13:56 +02:00
Lukas Wirth
8661c59a7f
Merge pull request #19939 from ChayimFriedman2/fill-arms-self
feat: In "Fill match arms", allow users to prefer `Self` to the enum name when possible
2025-06-17 08:20:02 +00:00
Lukas Wirth
b1824c3962 feat: Insert required parentheses when typing + in trait type 2025-06-16 19:02:18 +02:00
Lucas Holten
dc85e3ee35 Add config option to exclude imports from symbol search 2025-06-15 02:41:35 +02:00
dependabot[bot]
b5bec2d3d2
chore(deps-dev): bump brace-expansion in /editors/code
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.11 to 1.1.12.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/1.1.11...v1.1.12)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 1.1.12
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-11 21:01:40 +00:00