2022-06-21 00:36:13 +00:00
|
|
|
[package]
|
|
|
|
name = "terminal"
|
|
|
|
version = "0.1.0"
|
|
|
|
edition = "2021"
|
2023-01-18 20:28:02 +00:00
|
|
|
publish = false
|
2024-01-27 12:51:16 +00:00
|
|
|
license = "GPL-3.0-or-later"
|
2024-01-23 16:40:30 +00:00
|
|
|
|
2024-03-05 17:01:17 +00:00
|
|
|
[lints]
|
|
|
|
workspace = true
|
|
|
|
|
2022-06-21 00:36:13 +00:00
|
|
|
[lib]
|
|
|
|
path = "src/terminal.rs"
|
|
|
|
doctest = false
|
|
|
|
|
|
|
|
[dependencies]
|
2024-08-03 12:48:16 +00:00
|
|
|
alacritty_terminal.workspace = true
|
2024-01-31 02:41:29 +00:00
|
|
|
anyhow.workspace = true
|
2024-02-07 17:06:03 +00:00
|
|
|
collections.workspace = true
|
2024-06-17 23:27:42 +00:00
|
|
|
dirs.workspace = true
|
2023-04-25 00:41:55 +00:00
|
|
|
futures.workspace = true
|
2024-02-06 19:41:36 +00:00
|
|
|
gpui.workspace = true
|
2024-05-10 03:08:49 +00:00
|
|
|
libc.workspace = true
|
2024-07-11 17:48:46 +00:00
|
|
|
release_channel.workspace = true
|
2023-05-11 00:43:10 +00:00
|
|
|
schemars.workspace = true
|
2023-04-25 00:41:55 +00:00
|
|
|
serde.workspace = true
|
|
|
|
serde_derive.workspace = true
|
2024-02-06 19:41:36 +00:00
|
|
|
settings.workspace = true
|
2024-03-12 19:27:40 +00:00
|
|
|
sysinfo.workspace = true
|
2024-01-31 02:41:29 +00:00
|
|
|
smol.workspace = true
|
2024-07-11 17:48:46 +00:00
|
|
|
task.workspace = true
|
2024-02-06 19:41:36 +00:00
|
|
|
theme.workspace = true
|
2024-01-31 02:41:29 +00:00
|
|
|
thiserror.workspace = true
|
2024-02-06 19:41:36 +00:00
|
|
|
util.workspace = true
|
2022-12-08 18:48:28 +00:00
|
|
|
|
2024-03-03 19:58:31 +00:00
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
|
|
windows.workspace = true
|
2024-03-03 19:42:36 +00:00
|
|
|
|
2022-12-08 18:48:28 +00:00
|
|
|
[dev-dependencies]
|
2023-04-25 00:41:55 +00:00
|
|
|
rand.workspace = true
|
[terminal] Consider "main.cs(20,5)" to be a single clickable word (#19004)
[terminal] Consider "main.cs(20,5)" to be a single clickable word
First, adding unit tests for the regexes because I'm not certain how
these regexes are _intended_ to work, and unit tests work nicely as
demonstrations of intended behaviour.
The comment string, and the regex itself, seem to imply that
"main.cs(20,5)" is supposed be a single "word" (for the purposes of
being clicked on)... but the regex doesn't actually work like that. This
PR makes it work :)
(I don't know _why_ "word with an optional `(\d+,\d+)` on the end"
doesn't match the full string, while "word with a required `(\d+,\d+)`
on the end" _does_ match the full string - aren't regexes supposed to
match as much as possible, so it should take the optional extra whenever
the extra exists? Either way, "word with a required (\d+,\d+), or word
by itself" has the correct behaviour, as demonstrated by the unit test)
Release Notes:
- N/A
2024-10-10 10:56:48 +00:00
|
|
|
regex.workspace = true
|