about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/editors/code
AgeCommit message (Collapse)AuthorLines
2024-12-03Only show status bar item in relevant filesDavid Richey-1/+56
2024-12-02Fix debug configuration querying not inheriting environmentLukas Wirth-154/+42
2024-11-18Re-add rust-analyzer.cargo.sysrootQueryMetadataDavid Richey-0/+18
2024-11-08editors/code: Match supported debug engines in config with actual supported onesMaster-Hash-3/+7
2024-11-06editors/code: Change minimum VS Code from 1.78 to 1.83Wilfred Hughes-25/+27
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-03Allow interpreting consts and statics with interpret function commandLukas Wirth-1/+1
2024-10-24editors/code: Add md for walkthrough setup exampleHackerVole-4/+14
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-22Fix status bar messagen not being marked markdownLukas Wirth-1/+1
2024-10-21Auto merge of #18359 - Daanoz:support-initializeStopped, r=Veykrilbors-1/+17
feat: support initializeStopped setting See #18356 Add option to start rust-analyzer in "stopped" state when the extension activates.
2024-10-21Update ide testsLukas Wirth-22/+22
2024-10-21feat: support initializeStopped settingDaan Sieben-1/+17
2024-10-18vscode: update some dependenciesDavid Barsky-133/+1396
2024-10-17internal: fix lldb-dap unconditionally calling rustcDavid Barsky-16/+27
2024-10-14Auto merge of #18291 - roife:fix-issue-18212, r=Veykrilbors-1/+1
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-14Auto merge of #18265 - kouhe3:master, r=Veykrilbors-0/+30
Add support for LLDB-DAP
2024-10-13feat: respect references.exclude_tests in call-hierarchyroife-1/+1
2024-10-10Run subprocesses async in vscode extensionDavid Richey-32/+83
2024-10-08prettier formatkouhe3-14/+13
2024-10-08semicolonkouhe3-1/+1
2024-10-08fix array sourceMapkouhe3-9/+19
2024-10-08lldbdap env dict to stringkouhe3-2/+3
2024-10-08add knownEngines lldb-dapkouhe3-0/+20
2024-10-01Auto merge of #18219 - Veykril:veykril/push-ytnzuvtoswqz, r=Veykrilbors-3/+4
fix: Fix bootstrap error message being incorrect precedence ...
2024-10-01fix: Fix bootstrap error message being incorrectLukas Wirth-3/+4
2024-09-30Auto merge of #18085 - ChayimFriedman2:gate-test, r=Veykrilbors-0/+11
feat: Provide an config option to not set `cfg(test)` Fixes #17957.
2024-09-30Provide an config option to not set `cfg(test)`Chayim Refael Friedman-0/+11
2024-09-28Update handlers.rs to handlers/requests.rsNoah Bright-2/+4
2024-09-27Auto merge of #17923 - basvandriel:feature/build-before-restart-debug, r=Veykrilbors-1/+63
Building before a debugging session was restarted # Background Resolves #17901. It adds support for rebuilding after debugging a test was restarted. This means the test doesn't have to be aborted and manually re-ran again. # How this is tested First, all the Visual Studio Code extensions are loaded into an Extension Host window. Then, a sample test like below was ran and restarted to see if it was correctly rebuild. ```rust #[test] fn test_x() { assert_eq!("1.1.1", "1.1.0"); } ```
2024-09-25Changes for debug restartingBas van Driel-1/+63
2024-09-08Automatically add semicolon when completing unit-returning functionsChayim Refael Friedman-0/+10
But provide a config to suppress that. I didn't check whether we are in statement expression position, because this is hard in completion (due to the natural incompleteness of source code when completion is invoked), and anyway using function returning unit as an argument to something seems... dubious.
2024-09-01Provide an option to hide deprecated items from completionChayim Refael Friedman-0/+10
2024-08-19Improve documentation for `InvocationStrategy`Lukas Wirth-5/+5
2024-08-19chore(config): remove `invocationLocation` in favor of `invocationStrategy`Victor Song-38/+2
These flags were added to help rust-analyzer integrate with repos requiring non-Cargo invocations. The consensus is that having two independent settings are no longer needed. This change removes `invocationLocation` in favor of `invocationStrategy` and changes the internal representation of `InvocationStrategy::Once` to hold the workspace root.
2024-08-16Remove rust-analyzer.workspace.discoverProjectRunnerDavid Richey-12/+0
2024-08-07Allow rust-project.json to be hiddenAli Bektas-1/+7
2024-08-05Auto merge of #17772 - Veykril:debug.ts, r=Veykrilbors-99/+187
internal: Reorganize debug.ts
2024-08-05Reorganize debug.tsLukas Wirth-99/+187
2024-08-05feat: Load sysroot library via cargo metadataLukas Wirth-10/+0
2024-08-02Auto merge of #17705 - huntc:resolve-ra, r=Veykrilbors-16/+191
feat: Use oldest rustup rust-analyzer when toolchain override is present Selects a rust-toolchain declared RA based on its date. The earliest (oldest) RA wins and becomes the one that the workspace uses as a whole. In terms of precedence: nightly > stable-with-version > stable With stable-with-version, we invoke the RA with a `--version` arg and attempt to extract a date. Given the same date as a nightly, the nightly RA will win. Fixes #17663
2024-07-31docs: Fix JSON example for rust-analyzer.workspace.discoverConfigWilfred Hughes-1/+1
The user does not specify `{arg}` in their JSON, and be pedantic about commas in JSON sample.
2024-07-31Corrected precedence positionhuntc-4/+4
2024-07-30Formattinghuntc-6/+6
2024-07-30Outdated comment removedhuntc-7/+6
2024-07-30Further simplificationshuntc-16/+10
2024-07-30Checks date for any RAhuntc-20/+22
2024-07-29Auto merge of #17707 - Veykril:proc-macro-err-cleanup, r=Veykrilbors-13/+0
feat: Use spans for builtin and declarative macro expansion errors This should generally improve some error reporting for macro expansion errors. Especially for `compile_error!` within proc-macros
2024-07-28Determine toolchain RA on agehuntc-16/+196
Selects a rust-toolchain declared RA based on its date. The earliest (oldest) RA wins and becomes the one that the workspace uses as a whole. In terms of precedence: nightly > stable-with-version > stable With stable-with-version, we invoke the RA with a `--version` arg and attempt to extract a date. Given the same date as a nightly, the nightly RA will win.
2024-07-27feat: add trace level to client logsJosh McKinney-0/+4
2024-07-27feat: use vscode log format for client logsJosh McKinney-42/+36
This change updates the log format to use the vscode log format instead of the custom log format, by replacing the `OutputChannel` with a `LogOutputChannel` and using the `debug`, `info`, `warn`, and `error` methods on it. This has the following benefits: - Each log level now has its own color and the timestamp is in a more standard format - Inspect output (e.g. the log of the config object) is now colored - Error stack traces are now shown in the output - The log level is now controlled on the output tab by clicking the gear icon and selecting "Debug" or by passing the `--log` parameter to vscode. The `trace.extension` setting has been marked as deprecated.
2024-07-26fix: tweak hover/tooltip linksYoung-Flash-6/+11