jnyfah
4522bf42ca
closure parameter inlay hints
2025-02-06 15:55:56 +01:00
Chayim Refael Friedman
ac6b054ca5
Make rust-analyzer.files.excludeDirs
work, actually
...
I have no idea what the original writer of the code thought but the logic just seems backwards. We should not exclude a file/directory if it is equal to an include! This also meant that we had to add a `root == path` check so this stuff will actually work, which in turn meant excludes (of root files) no longer worked...
Also rename if to `rust-analyzer.files.exclude`, because it can exclude files as well.
2025-02-04 17:54:13 +02:00
Lukas Wirth
9f1ad04e72
Merge pull request #19056 from Giga-Bowser/fix-syntax-tree-crlf
...
fix: Properly handle CRLF line endings in the syntax tree view
2025-01-28 16:04:21 +00:00
David Richey
fc1ead1312
Show status bar in RA output
2025-01-27 14:20:05 -06:00
Giga Bowser
027363fef1
fix: Properly handle CRLF line endings in the syntax tree view
2025-01-27 15:09:58 -05:00
Chayim Refael Friedman
47f4f3f0b2
Provide a config to control auto-insertion of await
and iter()
2025-01-21 18:51:09 +02:00
Giga Bowser
c272bcdb69
fix: Only refresh syntax tree view when the active document changes
2025-01-20 14:05:19 -05:00
VinTarZ
d71015d90d
Fix debug_assertions
broken in 1c5a125beb
2025-01-16 14:19:16 +03:00
Lukas Wirth
557c467aa9
Flip on typing config to be opt-in, better defaults
2025-01-15 10:25:37 +01:00
David Richey
807328d1d2
Hide syntax tree view by default
2025-01-14 13:21:42 -06:00
Lukas Wirth
d4fa92e80a
Implement implicit sized bound inlay hints
2025-01-10 12:38:21 +01:00
Lukas Wirth
d133136bc4
Merge pull request #18813 from Giga-Bowser/syntax-tree-view
...
feat: Add a new and improved syntax tree view
2025-01-10 06:56:34 +00:00
Giga Bowser
c0f22c7e9d
Add an action to copy an element from the syntax tree view
2025-01-09 14:03:18 -06:00
Giga Bowser
cb5ce9eaa6
Remove the old syntax tree viewer
2025-01-09 13:20:06 -06:00
Giga Bowser
5ffe45d8cd
Add a new and improved syntax tree viewer
2025-01-09 13:20:06 -06:00
Lukas Wirth
2e234e3d1b
Merge pull request #18880 from PrototypeNM1/extra-includes
...
Add config setting which allows adding additional include paths to the VFS.
2025-01-09 10:24:51 +00:00
Nicholas Rishel
1f9686993a
Add config setting which allows adding additional include paths to the VFS.
2025-01-08 10:57:46 -08:00
qjerome
e9a13ab6d7
fix: autogenerate files
2025-01-08 14:47:21 +01:00
Lukas Wirth
2ac803ec71
target-triple -> target-tuple
2025-01-07 14:25:43 +01:00
Lukas Wirth
f1c0d176f3
Remove rust-analyzer.cargo.sysrootQueryMetadata
config again
2025-01-07 14:00:22 +01:00
Giga Bowser
c0eaff7dd1
Rename dependency tree view and dependency provider
2025-01-06 15:30:11 -06:00
Lukas Wirth
7e639ee3dd
Merge pull request #18179 from ChayimFriedman2/omit-trait-completion
...
feat: Allow excluding specific traits from completion
2025-01-01 14:34:56 +00:00
Lukas Wirth
5303dc5d99
Revamp auto-import exclude config
2025-01-01 15:06:44 +01:00
Lukas Wirth
45954ebaa4
Reduce the default autoimport exclusion list
2025-01-01 14:32:45 +01:00
Chayim Refael Friedman
7e6ade117c
Allow excluding specific traits from completion
...
To be accurate, only their methods are excluded, the trait themselves are still available.
I also excluded a bunch of std traits by default. Some less opinionated, like `AsRef`, which should never be used directly except in generic scenarios (and won't be excluded there), some more opinionated, like the ops traits, which I know some users sometimes want to use directly. Either way it's configurable.
It should be pretty easy to extend support to excluding only specific methods, but I didn't do that currently.
Traits configured to be excluded are resolved in each completion request from scratch. If this proves too expensive, it is easy enough to cache them in the DB.
2025-01-01 13:49:35 +01:00
roife
2983ce8b9e
minor: format editor/code
2024-12-26 20:44:42 +08:00
roife
c54bfcb181
fix incorrect name for UpdateTest config
2024-12-26 19:51:14 +08:00
roife
c30e9c0618
fix: await setting config to not ask before UpdateTest
and format
2024-12-26 19:51:14 +08:00
roife
22280b65ff
feat: add config UpdateTest
to hover actions
2024-12-26 19:51:14 +08:00
roife
edb61b10ab
feat: support UpdateTest in codelens
2024-12-26 19:50:32 +08:00
Lukas Wirth
e30ce42671
Merge pull request #18707 from ChayimFriedman2/subst
...
feat: Show substitution where hovering over generic things
2024-12-24 14:16:16 +00:00
Lukas Wirth
4c0569b244
Merge pull request #18722 from markmurphydev/status_bar_settings
...
Rename `rust-analyzer.statusBar.documentSelector` to `showStatusBar`, add "always" and "never" options.
2024-12-24 14:12:32 +00:00
Lukas Wirth
066284addd
Merge pull request #18738 from Veykril/push-vqxqutskzvvu
...
fix: Properly check if workspace flychecking is allowed
2024-12-22 12:11:00 +00:00
Lukas Wirth
1962cae609
fix: Properly check if workspace flychecking is allowed
2024-12-22 12:10:48 +01:00
Lukas Wirth
eb32c9f447
minor: Tell the server to stop prior to restarting it
2024-12-22 11:30:18 +01:00
Mark Murphy
ed0df3094b
change config rust-analyzer.statusBar.documentSelector to showStatusBar
2024-12-20 16:41:41 -05:00
Chayim Refael Friedman
b5486ffc42
Show substitution where hovering over generic things
...
There are few things to note in the implementation:
First, this is a best-effort implementation. Mainly, type aliases may not be shown (due to their eager nature it's harder) and partial pathes (aka. hovering over `Struct` in `Struct::method`) are not supported at all.
Second, we only need to show substitutions in expression and pattern position, because in type position all generic arguments always have to be written explicitly.
2024-12-20 11:30:19 +02:00
Giga Bowser
0900b6d428
fix: Revert changes to client capabilities in
bac0ed5
2024-12-13 11:59:50 -05:00
Lukas Wirth
f021ec3b96
Disable pipe on typing handler
2024-12-09 15:52:04 +01:00
Lukas Wirth
54dbf1b446
Add typing handler for param list pipe
2024-12-06 15:49:36 +01:00
Lukas Wirth
bac0ed579f
Make bracket typing handler work on more things
2024-12-06 12:47:32 +01:00
Lukas Wirth
d71e41dba6
Disable <
typing handler again
2024-12-05 09:46:23 +01:00
Tarek
9aff46632e
chore: deprecate typing.autoClosingAngleBrackets
configuration
...
Signed-off-by: Tarek <tareknaser360@gmail.com>
2024-12-03 22:38:51 +02:00
Tarek
d6b701e251
internal: Make exclude characters for typing assists configurable, default to None
...
Signed-off-by: Tarek <tareknaser360@gmail.com>
2024-12-03 22:38:51 +02:00
David Richey
cf80dddb59
Only show status bar item in relevant files
2024-12-03 14:40:26 +00:00
Lukas Wirth
d75f996722
Fix debug configuration querying not inheriting environment
2024-12-02 13:02:31 +01:00
David Richey
3c98b98ca7
Re-add rust-analyzer.cargo.sysrootQueryMetadata
2024-11-18 16:29:33 -06:00
Master-Hash
bbd565f5a0
editors/code: Match supported debug engines in config with actual supported ones
2024-11-08 08:33:32 +01:00
Wilfred Hughes
6c7b5025ca
editors/code: Change minimum VS Code from 1.78 to 1.83
...
It's been a year since we last bumped this (see #15904 ), and VS Code
1.83 is the first version that supports LSP 3.17.5 (via
vscode-languageclient 9.0.1).
https://code.visualstudio.com/updates/v1_83#_language-server-protocol
2024-11-06 15:00:59 -08:00
Lukas Wirth
78f3112626
Allow interpreting consts and statics with interpret function command
2024-11-03 15:35:45 +01:00