Commit graph

145 commits

Author SHA1 Message Date
Lukas Wirth
05770f2599 target-triple -> target-tuple 2025-01-07 14:25:43 +01:00
Lukas Wirth
764ce49445 Remove rust-analyzer.cargo.sysrootQueryMetadata config again 2025-01-07 14:00:22 +01:00
Lukas Wirth
74d0d4e050
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
c84d09a7c3 Revamp auto-import exclude config 2025-01-01 15:06:44 +01:00
Lukas Wirth
13af22df98 Reduce the default autoimport exclusion list 2025-01-01 14:32:45 +01:00
Chayim Refael Friedman
bd6ea14002 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
e481a51feb minor: format editor/code 2024-12-26 20:44:42 +08:00
roife
c8f29aad5e fix incorrect name for UpdateTest config 2024-12-26 19:51:14 +08:00
roife
c17dea99ff fix: await setting config to not ask before UpdateTest and format 2024-12-26 19:51:14 +08:00
roife
2bfa83beb3 feat: add config UpdateTest to hover actions 2024-12-26 19:51:14 +08:00
roife
60b4ed5bd3 feat: support UpdateTest in codelens 2024-12-26 19:50:32 +08:00
Lukas Wirth
8bfb2fe018
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
b3308bce33
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
c38d297b9f
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
b08d1f93ce fix: Properly check if workspace flychecking is allowed 2024-12-22 12:10:48 +01:00
Lukas Wirth
5c302cc867 minor: Tell the server to stop prior to restarting it 2024-12-22 11:30:18 +01:00
Mark Murphy
b35a8467b6 change config rust-analyzer.statusBar.documentSelector to showStatusBar 2024-12-20 16:41:41 -05:00
Chayim Refael Friedman
b80bb583e4 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
f69b6fc506 fix: Revert changes to client capabilities in bac0ed5 2024-12-13 11:59:50 -05:00
Lukas Wirth
2ad6d7103c Disable pipe on typing handler 2024-12-09 15:52:04 +01:00
Lukas Wirth
3fe75c7d90 Add typing handler for param list pipe 2024-12-06 15:49:36 +01:00
Lukas Wirth
069fb0f475 Make bracket typing handler work on more things 2024-12-06 12:47:32 +01:00
Lukas Wirth
a9afc99c13 Disable < typing handler again 2024-12-05 09:46:23 +01:00
Tarek
68cd57940a chore: deprecate typing.autoClosingAngleBrackets configuration
Signed-off-by: Tarek <tareknaser360@gmail.com>
2024-12-03 22:38:51 +02:00
Tarek
b94c5355b2 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
97feb03344 Only show status bar item in relevant files 2024-12-03 14:40:26 +00:00
Lukas Wirth
5a52142eea Fix debug configuration querying not inheriting environment 2024-12-02 13:02:31 +01:00
David Richey
b4a31683c1 Re-add rust-analyzer.cargo.sysrootQueryMetadata 2024-11-18 16:29:33 -06:00
Master-Hash
ef8a0c0016
editors/code: Match supported debug engines in config with actual supported ones 2024-11-08 08:33:32 +01:00
Wilfred Hughes
cd6ddcaf42 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
56e89bc5a4 Allow interpreting consts and statics with interpret function command 2024-11-03 15:35:45 +01:00
HackerVole
183796ed0e editors/code: Add md for walkthrough setup example
Add a separate markdown file containing the settings.json snippet from
the "Useful Setup Tips". This fixes the rendering and also makes the
text selectable.

Also use double-backticks for `code` rendering.
2024-10-24 23:20:40 -04:00
Lukas Wirth
3e02349076 Fix status bar messagen not being marked markdown 2024-10-22 10:51:04 +02:00
bors
87f4dad8dc Auto merge of #18359 - Daanoz:support-initializeStopped, r=Veykril
feat: support initializeStopped setting

See #18356

Add option to start rust-analyzer in "stopped" state when the extension activates.
2024-10-21 14:11:33 +00:00
Lukas Wirth
e9da1dce05 Update ide tests 2024-10-21 11:28:19 +02:00
Daan Sieben
4dd2af5113
feat: support initializeStopped setting 2024-10-21 10:58:54 +02:00
David Barsky
f01ebd6d13 vscode: update some dependencies 2024-10-18 08:43:14 -04:00
David Barsky
325d48fe7a internal: fix lldb-dap unconditionally calling rustc 2024-10-17 13:27:15 -04:00
bors
d764d87c9f Auto merge of #18291 - roife:fix-issue-18212, r=Veykril
feat: respect references.exclude_tests in call-hierarchy

close #18212

### Changes

1. feat: respect `references.exclude_tests` in call-hierarchy
2. Modified the description of `references.exclude_tests`
2024-10-14 12:50:40 +00:00
bors
a4df972532 Auto merge of #18265 - kouhe3:master, r=Veykril
Add support for LLDB-DAP
2024-10-14 12:21:42 +00:00
roife
7bc615050f feat: respect references.exclude_tests in call-hierarchy 2024-10-13 05:19:28 +08:00
David Richey
0460ff71b2 Run subprocesses async in vscode extension 2024-10-10 20:44:13 -05:00
kouhe3
a2304baaf2 prettier format 2024-10-08 17:50:29 +08:00
kouhe3
3918e29fac semicolon 2024-10-08 17:47:54 +08:00
kouhe3
63b0e270fb fix array sourceMap 2024-10-08 17:43:02 +08:00
kouhe3
90e3c8885c lldbdap env dict to string 2024-10-08 15:11:31 +08:00
kouhe3
87baa0e380 add knownEngines lldb-dap 2024-10-08 00:22:58 +08:00
bors
b91eeae559 Auto merge of #18219 - Veykril:veykril/push-ytnzuvtoswqz, r=Veykril
fix: Fix bootstrap error message being incorrect

precedence ...
2024-10-01 10:36:27 +00:00
Lukas Wirth
7f8bd7e7ac fix: Fix bootstrap error message being incorrect 2024-10-01 12:33:53 +02:00
bors
1ca85ac706 Auto merge of #18085 - ChayimFriedman2:gate-test, r=Veykril
feat: Provide an config option to not set `cfg(test)`

Fixes #17957.
2024-09-30 06:32:20 +00:00