about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/editors/code
AgeCommit message (Collapse)AuthorLines
2024-07-10Remove faq landing page, improve main oneLukas Wirth-51/+12
2024-07-08feat: add inlay hints for generic parametersLiao Junxuan-0/+30
fixes #11091 By default, only hints for const generic parameters are shown.
2024-07-07Auto merge of #17523 - wada314:master, r=Veykrilbors-0/+10
Add an option to use "::" for the external crate prefix. Fixes #11823 . Hi I'm very new to rust-analyzer and not sure how the review process are. Can somebody take a look at this PR? thanks!
2024-07-06Auto merge of #17549 - Veykril:runnables-fix, r=Veykrilbors-113/+223
fix: Fix runnables being incorrectly constructed I've misunderstood parts of the code here which caused runnables to arbitrarily break :) (I have yet to understand the conditions that made them break though, there is some odd caching involved I feel like ...) Fixes https://github.com/rust-lang/rust-analyzer/issues/17402
2024-07-06fix: Fix runnables being incorrectly constructedLukas Wirth-113/+223
2024-07-06Auto merge of #17548 - Veykril:debug-fix, r=Veykrilbors-11/+15
fix: Fix passing `message-format` after -- in debugging Fixes https://github.com/rust-lang/rust-analyzer/pull/17495#issuecomment-2211717224
2024-07-06Fix passing message-format after -- in debuggingLukas Wirth-11/+15
2024-07-06Auto merge of #17547 - Veykril:runnables-env, r=Veykrilbors-19/+34
internal: Clean up runnable lsp extension This feels like a natural addition to me, and also allows us to drop the expect-test hardcoding from the extension. Additionally, `cargoExtraArgs` is pointless, all the client will do is merge it with `cargoArgs` so the server can do that instead of delegating that to the client.
2024-07-06Flatten cargoExtraArgs away from the runnable lsp extensionLukas Wirth-15/+7
2024-07-06Add environment to runnable lsp extensionLukas Wirth-13/+36
2024-07-06Auto merge of #17508 - jjoeldaniel:landing-page, r=Veykrilbors-0/+128
feat: Add landing/faq walkthrough pages This is a basic implementation of a landing and FAQ page; I've included the bare-bones information as well as a [recommended section on inlay hints](https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frust-analyzer/topic/Landing.20Page/near/446135321). I've also added `rust-analyzer: Open Walkthrough` and `rust-analyzer: Open FAQ` commands for ease of access. I am hoping to create a small list of FAQ to include that might be useful as well as any other information I may have missed in the landing page. Feel free to share any suggestions! ![landing/faq page demo](https://github.com/rust-lang/rust-analyzer/assets/100006388/4644e4f0-4555-4b29-83c1-b048084ad63d) cc #13351
2024-07-02squash.Shohei Wada-0/+10
2024-07-01Auto merge of #17495 - listochkin:pass-cargo-extra-args-for-debugger, r=Veykrilbors-2/+3
pass cargo extra args when debugging fixes #17128
2024-07-01Auto merge of #17522 - Veykril:comptimes, r=Veykrilbors-6/+6
internal: Cut compiletimes slightly
2024-06-30Remove serde flag from indexmap dependencyLukas Wirth-6/+6
2024-06-29Make borrow checking configurable for term searchTavo Annus-0/+10
2024-06-28Add landing/faq walkthroughs and commands for quick accessJoel Daniel Rico-0/+128
2024-06-25pass cargo extra args when debugAndrei Listochkin-2/+3
fixes #17128
2024-06-24Auto merge of #17411 - Wilfred:clearer_unlinked_file, r=Veykrilbors-1/+2
fix: Improve hover text in unlinked file diagnostics Use full sentences, and mention how to disable the diagnostic if users are intentionally working on unowned files. ![Screenshot 2024-06-12 at 5 55 48 PM](https://github.com/rust-lang/rust-analyzer/assets/70800/c91ee1ed-1c72-495a-9ee3-9e360a5c6977) (Full disclosure: I've tested a rust-analyzer build in VS Code, but the pop-up logic is currently disabled due to #17062, so I haven't tested that.)
2024-06-22Fix suggestions of unstable constantsTavo Annus-4/+4
2024-06-20fix: Improve hover text in unlinked file diagnosticsWilfred Hughes-1/+2
Use full sentences, and mention how to disable the diagnostic if users are intentionally working on unowned files.
2024-06-19remove panicbit.cargo extension warningpanicbit-10/+0
2024-06-19Auto merge of #17438 - jjoeldaniel:toggle_lsp_logs, r=Veykrilbors-0/+23
feat: add `toggleLSPLogs` command Implement client-side command to toggle LSP logs in VSCode. The command replaces the need to add/remove the `"rust-analyzer.trace.server": "verbose"` setting each time one wants to display logs. I've also updated the docs/ instances that reference the now outdated manual method. The command labeled `rust-analyzer: Toggle LSP Logs` enables the setting project-wide and opens the relevant trace output channel. Closes #8233
2024-06-19Tidy up vscode extension a bitLukas Wirth-171/+143
2024-06-17Fix and cleanup VSCode task buildingLukas Wirth-72/+85
2024-06-17feat: add `toggleLSPLogs` commandJoel Daniel Rico-0/+23
add `toggleLSPLogs` command update docs to reflect new command
2024-06-13fix: avoid doubling cargo args in runnablesDavid Barsky-8/+9
2024-06-11Auto merge of #16840 - Wilfred:shell_runnable, r=Veykrilbors-73/+138
Allow rust-project.json to include arbitrary shell commands for runnables This is a follow-up on #16135, resolving the feedback raised :) Allow rust-project.json to include shell runnables, of the form: ``` { "build_info": { "label": "//project/foo:my-crate", "target_kind": "bin", "shell_runnables": [ { "kind": "run", "program": "buck2", "args": ["run", "//project/foo:my-crate"] }, { "kind": "test_one", "program": "test_runner", "args": ["--name=$$TEST_NAME$$"] } ] } } ``` If these runnable configs are present for the current crate in rust-project.json, offer them as runnables in VS Code. This PR required some boring changes to APIs that previously only handled cargo situations. I've split out these changes as commits labelled 'refactor', so it's easy to see the interesting changes.
2024-06-11feature: add build system info; runnables to `rust-project.json`Wilfred Hughes-73/+138
2024-06-11Chore(deps-dev): Bump braces from 3.0.2 to 3.0.3 in /editors/codedependabot[bot]-7/+7
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3. - [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md) - [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3) --- updated-dependencies: - dependency-name: braces dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
2024-06-11Simplify some config serialization stuffLukas Wirth-9/+40
2024-06-07Add version info to status bar itemLukas Wirth-24/+46
2024-06-06fix: incorrect formatting of hover actionsroife-1/+1
2024-06-04fmtChosenName-4/+4
2024-06-04fmtChosenName-2/+6
2024-06-04Update package.jsonChosenName-1392/+2198
2024-05-25Removed returnJonas Rinke-3/+4
2024-05-25FormattingJonas Rinke-2/+2
2024-05-25SemicolonJonas Rinke-1/+1
2024-05-25Use correct format for setting environment variables when debugging with ↵Jonas Rinke-1/+3
cpptools
2024-05-24Use cwd from runnable.args for debuggerroife-3/+4
2024-05-24Revert "Debug use cargo workspace root as cwd. fixes #13022"roife-32/+12
This reverts commit 4ca86edac97d47eecb78b16abf255950c10b67ca.
2024-05-23Allow sysroots to only consist of the source root dirLukas Wirth-7/+0
2024-05-08Make term search fuel configurableTavo Annus-0/+12
2024-04-30docs: Fix typo in VS Code setting descriptionWilfred Hughes-1/+1
2024-04-26Show workspace info in the status barLukas Wirth-7/+10
2024-04-25Auto merge of #17021 - roife:add-hover-limits-for-adts, r=Veykrilbors-3/+12
Support hovering limits for adts Fix #17009 1. Currently, r-a supports limiting the number of struct fields displayed when hovering. This PR extends it to support enum variants and union fields. Since the display of these three (ADTs) is similar, this PR extends 'hover_show_structFields' to 'hover_show_adtFieldsOrVariants'. 2. This PR also resolved the problem that the layout of ADT was not restricted by display limitations when hovering on the Self type. 3. Additionally, this PR changes the default value of display limitations to `10` (instead of the original `null`), which helps users discover this feature.
2024-04-21Allow rust files to be used linkedProjectsLukas Wirth-0/+13008
2024-04-20Add hovering limitations support for variantsroife-2/+2
2024-04-19fix: add a separate setting for enum variantsroife-2/+11