bors
e75bd2e00f
Auto merge of #17843 - mo8it:flycheck, r=Veykril
...
internal: Performance optimizations
- Use `Command::arg` directly
- Avoid the overhead of the `select!` macro when possible
- Use `select_biased!`
2024-08-12 09:27:47 +00:00
mo8it
1549f10e95
Use the send method
2024-08-12 10:55:04 +02:00
mo8it
b06cd17c13
Add track_caller
2024-08-12 10:44:00 +02:00
mo8it
7cce80c173
Revert "Remove unneeded send
method"
...
This reverts commit 567bde603c
.
2024-08-12 10:42:35 +02:00
mo8it
2ece0fbfef
Fix deadlock
2024-08-11 14:58:50 +02:00
mo8it
d30711ae73
Avoid the overhead of select! when possible
2024-08-10 02:12:09 +02:00
mo8it
567bde603c
Remove unneeded send
method
2024-08-09 23:59:42 +02:00
mo8it
0b541ebbaa
Use crossbeam-channel from the workspace
2024-08-09 23:48:03 +02:00
mo8it
3b560a550a
Use Sender instead of boxed closure in vfs
2024-08-09 23:40:32 +02:00
Lukas Wirth
bb60c21885
Slightly quieter fatal panics
2024-08-07 16:35:58 +02:00
Vincent Esche
7dec7e92ea
Replace [package.repository] = "…"
of published crates with [package.repository.workspace] = true
2024-08-06 00:26:42 +02:00
Vincent Esche
6f329e6d5b
Add repository URL for published crates' missing [package.repository]
fields
2024-08-06 00:25:02 +02:00
Vincent Esche
b5b0f4bc5a
Replace "TBD"
with more helpful desciptions in published crates' [package.description]
fields
2024-08-06 00:25:02 +02:00
Lukas Wirth
e437db2483
Slightly optimize watch list in vfs
2024-08-05 15:56:23 +02:00
Lukas Wirth
c6ae9cde99
Wait with change processing until the vfs is done
2024-08-02 17:09:25 +02:00
Lukas Wirth
8286847bee
internal: Load VFS config changes in parallel
2024-08-02 13:04:15 +02:00
Lukas Wirth
758ad25229
internal: Remove AbsPathBuf::TryFrom impl that checks too many things at once
2024-08-02 11:08:19 +02:00
Lukas Wirth
21a3d01875
Remove inline rust_2018_idioms, unused_lifetimes
lint warn, Cargo.toml already enforces this
2024-06-30 15:23:54 +02:00
Yu Zeng
8d4ecc169f
discard when the path is invalid utf8 symbol.
2024-04-30 15:39:05 +08:00
Wilfred Hughes
bd133eecda
fix: VFS should not walk circular symlinks
...
As of #6246 , rust-analyzer follows symlinks. This can introduce an
infinite loop if symlinks point to parent directories.
Considering that #6246 was added in 2020 without many bug reports,
this is clearly a rare occurrence. However, I am observing
rust-analyzer hang on projects that have symlinks of the form:
```
test/a_symlink -> ../../
```
Ignore symlinks that only point to the parent directories, as this is
more robust but still allows typical symlink usage patterns.
2024-04-17 14:40:01 -07:00
Lukas Wirth
ea447062c4
fix: Don't assert paths being utf8 when filtering them in the watcher
2024-03-22 08:04:50 +01:00
Lukas Wirth
23613a9de7
fix: Some file watching related vfs fixes
2024-03-21 21:22:19 +01:00
Lukas Wirth
399dbc074b
internal: Enforce utf8 paths
2024-03-19 15:39:00 +01:00
Lukas Wirth
0bdbf497b6
fix: Fix progress reporting getting stuck
2024-01-17 13:23:00 +01:00
Lukas Wirth
398150827f
Rename Message::Progress::file field to dir
2024-01-16 10:43:33 +01:00
Rebecca Turner
1ceb2ea414
Show which roots are being scanned in progress messages
...
See: #12613
2024-01-09 09:16:26 -08:00
Lukas Wirth
e1c67485bf
fix: Differentiate between vfs config load and file changed events
2024-01-09 10:30:16 +01:00
Tetsuharu Ohzeki
efc87092b3
Use Cargo's [workspace.lints.*] to config clippy
2023-12-29 23:51:32 +09:00
Igor Matuszewski
a7224c998d
Don't explicitly warn against semicolon_in_expressions_from_macros
...
This has been warn-by-default for two years now and has already been
added to the future-incompat lints in 1.68.
2023-12-05 11:35:09 +01:00
Laurențiu Nicola
441e8c71f1
Remove outdated comment
2023-11-15 13:27:48 +02:00
Laurențiu Nicola
f53368dd3f
Bump tracing
2023-11-15 13:00:32 +02:00
Roberto Bampi
4f22e1a187
Update notify to 6.1.1
...
Unlike version 6.0.1, this does not pull windows-sys 0.4.5 as observed in #15077 .
$ cargo tree --target=x86_64-pc-windows-gnu --charset=ascii | grep windows-sys
| | `-- windows-sys v0.42.0
| | | | | | `-- windows-sys v0.42.0 (*)
| `-- windows-sys v0.48.0
| | `-- windows-sys v0.48.0 (*)
| `-- windows-sys v0.48.0 (*)
| `-- windows-sys v0.48.0 (*)
| `-- windows-sys v0.42.0 (*)
2023-09-04 18:00:12 +02:00
Lukas Wirth
0953e85b59
Downgrade some deps to get rif of windows-sys duplication
2023-06-22 11:44:10 +02:00
Lukas Wirth
8823db6c78
Bump more deps
2023-06-22 11:44:10 +02:00
Luna Razzaghipour
74bc2a47e0
Wrap platform-specific QoS in r-a-specific “thread intent”
2023-05-28 20:37:38 +10:00
Luna Razzaghipour
d0b001eed2
Use appropriate QoS classes throughout the codebase
2023-05-28 20:37:37 +10:00
Luna Razzaghipour
2924fd2213
Implement custom QoS-aware thread pool
...
This code replaces the thread pool implementation we were using
previously (from the `threadpool` crate). By making the thread pool
aware of QoS, each job spawned on the thread pool can have a different
QoS class.
This commit also replaces every QoS class used previously with Default
as a temporary measure so that each usage can be chosen deliberately.
2023-05-28 20:37:35 +10:00
Luna Razzaghipour
ca6461c143
Add proof-of-concept QoS implementation
2023-05-20 22:29:32 +10:00
bors
fa874627f0
Auto merge of #13969 - Veykril:workspace.dependencies, r=Veykril
...
Use workspace.dependencies to declare local dependencies
2023-01-17 10:29:27 +00:00
Lukas Wirth
bed4db3c62
Use workspace.dependencies to declare local dependencies
2023-01-17 10:52:26 +01:00
Lukas Wirth
e4858fe480
Specify authors, edition and license via workspace.package
2023-01-16 16:44:00 +01:00
Lukas Wirth
679df2adf1
Specify rust-version via workspace.package
2023-01-16 16:33:01 +01:00
Lukas Wirth
ffd7bf8bf9
Bump Cargo rust-version fields to latest stable
2022-11-07 12:59:51 +01:00
Laurențiu Nicola
119e1bafcc
Bump notify
2022-10-15 13:03:39 +03:00
Laurențiu Nicola
e5d3ac58b3
Bump notify
2022-08-19 21:37:05 +03:00
Lukas Wirth
6a1737242b
Don't switch workspace on vfs file changes from libraries
...
When r-a starts up, it starts switching the workspace before all vfs
events have been processed which causes us to switch workspace multiple
times until all vfs changes have been processed. This scales with the
size of the project and its dependencies. If workspace files from
dependencies as well as the sysroot get loaded, we shouldn't switch
the workspace as those have no impact on the project workspace.
2022-08-05 12:06:42 +02:00
Amos Wenger
23d25a3094
Enable extra warnings required by rust-lang/rust
2022-07-20 15:00:17 +02:00
Laurențiu Nicola
212f84ab46
Bump crossbeam-channel
2022-07-03 09:56:58 +03:00
Lukas Wirth
76ae5434fa
internal: Bump Dependencies
2022-06-10 17:30:02 +02:00
Brennan Vincent
364dd5ff89
Fix build on OpenBSD (and probably other BSDs too)
...
notify-5.0.0-pre.14 does not build on these systems; this was fixed in
41a74f0e98
, which landed in pre.15.
2022-05-22 17:04:57 -04:00