about summary refs log tree commit diff
path: root/crates/rust-analyzer/src/reload.rs
AgeCommit message (Collapse)AuthorLines
2022-07-18Improve file watcher configJonas Schievink-1/+1
2022-06-28fix: Report proc macro errors in expressions correctly as wellFlorian Diebold-9/+10
They didn't have a krate before, resulting in the generic "proc macro not found" error. Also improve error messages a bit more.
2022-06-15Show proc-macro loading errors in unresolved-proc-macro diagnosticsLukas Wirth-35/+27
2022-06-15fix: Clear proc-macro changed flag when reloading workspaceLukas Wirth-1/+1
2022-06-12fix: Pass the build data to rustc_private cratesLukas Wirth-1/+7
2022-05-23Keep the other `is` in `reload.rs` docsDQ-1/+1
2022-05-23Fix typo in new `reload.rs` docsDQ-1/+1
Just skimmed today's changelog and came across the repetition
2022-05-21internal: document overall approach to reloadAleksey Kladov-1/+14
2022-05-20Clear `cargo check` diagnostics when flycheck is turned offJonas Schievink-0/+1
2022-05-19simplifyJonas Schievink-7/+8
2022-05-06Try not to invalidate our state when the proc macro preference didn't changeLaurențiu Nicola-4/+7
2022-05-02Auto merge of #12093 - nico-abram:uwu, r=Veykrilbors-0/+5
Reload project on .cargo/config[.toml] changes Fixes #11024 Not adding tests as discussed in the issue
2022-04-29small typo in log messageJustin Tracey-1/+1
2022-04-27Reload project on .cargo/config[.toml] changesunknown-0/+5
Fixes #11024
2022-04-18More visibility for switch workspaces and its statesEdwin Cheng-2/+7
2022-04-16internal: more visibility into why things happenAleksey Kladov-4/+6
2022-04-14internal: Show more project building errors to the userLukas Wirth-33/+30
2022-01-06Regenrate docs and package.jsonLukas Wirth-3/+3
2022-01-06feat: Add config to replace specific proc-macros with dummy expandersLukas Wirth-8/+43
2022-01-01feat: correctly fallback to notify if the clinet-side file watching is not ↵Aleksey Kladov-31/+26
supported
2021-10-30Set server status to warning when proc-macro sources changeLukas Wirth-0/+5
2021-10-16more clippy fixesMilo-2/+2
2021-09-13Merge #10199bors[bot]-52/+36
10199: fix: Fix Cargo.toml change detection r=lnicola a=lnicola Maybe fixes #9546 Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2021-09-13Shuffle code around to avoid an allocationLaurențiu Nicola-52/+36
2021-09-07Rename `is_member` to `is_local`Jonas Schievink-3/+3
2021-08-31internal: reduce couplingAleksey Kladov-4/+5
tt is a data structure, data structures cant' go wrong, they shouldn't have the knowledge that the world outside of them has all kinds of errors.
2021-08-31internal: cleanup proc macro server error handligAleksey Kladov-4/+30
When dealing with proc macros, there are two very different kinds of errors: * first, usual errors of "proc macro panicked on this particular input" * second, the proc macro server might day if the user, eg, kills it First kind of errors are expected and are a normal output, while the second kind are genuine IO-errors. For this reason, we use a curious nested result here: `Result<Result<T, E1>, E2>` pattern, which is 100% inspired by http://sled.rs/errors.html
2021-08-31minor: improve readabilityAleksey Kladov-6/+6
naming, layout & comments help!
2021-08-30internal: make scheduling control flow more obviousAleksey Kladov-42/+7
There should be only one place where we need to check if we want to start background activities.
2021-08-30switch `log` crate to `tracing`Dezhi Wu-9/+9
2021-08-25Fix reporting of build script errorsJonas Schievink-7/+17
2021-08-25Don't fetch build script output twiceJonas Schievink-8/+0
2021-08-22internal: remove unreasonable crate dependencyAleksey Kladov-4/+40
Proc macro expansion shouldn't know about salsa at all.
2021-08-22internal: reduce crate interdependenceAleksey Kladov-5/+11
I don't think there's anything wrong with project_model depending on proc_macro_api directly -- fundamentally, both are about gluing our pure data model to the messy outside world. However, it's easy enough to avoid the dependency, so why not. As an additional consideration, `proc_macro_api` now pulls in `base_db`. project_model should definitely not depend on that!
2021-07-26internal: prepare to track changes to mem_docsAleksey Kladov-1/+1
2021-07-18fix: potential bugs when build scripts do not match the current projectAleksey Kladov-39/+67
2021-07-18internal: simplify handling of the build scriptsAleksey Kladov-30/+61
2021-07-17internal: a bit more of cwd safety for flycheckAleksey Kladov-5/+6
2021-06-29Watch for Cargo.toml and .lock changesLaurențiu Nicola-1/+7
2021-06-03Make it opt-inJonas Schievink-0/+6
2021-05-25Check for subdirs in vfs loader exclusions.ammkrn-1/+5
The current logic used to transfer global_excludes into vfs exclusions only transfers global_excludes that are the parent of an item in dirs.include. This commit additionally adds an item from global_exclude to the vfs exclusions if the global_exclude is a child of an included item.
2021-05-23Drag detached files towards loadingKirill Bulatov-2/+8
2021-05-23Draft detached files retrievalKirill Bulatov-0/+1
2021-04-22Add profiling spans under cargo_to_crate_graphLaurențiu Nicola-0/+1
2021-04-12fix: don't spam repeated error messages when `cargo check` failsAleksey Kladov-7/+8
Conceptually, using a *message* here is wrong, because this is a "status", rather than "point in time" thing. But statuses are an LSP extension, while messages are stable. As a compromise, send message only for more critical `metadata` failures, and only once per state change.
2021-04-06feat: show errors from `cargo metadata` and initial `cargo check` in the ↵Aleksey Kladov-11/+30
status bar closes #3155
2021-04-06More robust status notificationsAleksey Kladov-52/+67
2021-04-06Use autoreload config to gate execution rather that stalenessAleksey Kladov-5/+1
2021-04-06Improve readabilityAleksey Kladov-29/+28
It's better to order functions in the order they are called, if there's ordering between them.
2021-04-06internal: do not drop errors from cargo metadata/checkAleksey Kladov-40/+36
Work towards #3155