Skip to content

Commit 11e1e04

Browse files
Merge branch 'helix-editor:master' into master
2 parents c02dc2e + 29121a1 commit 11e1e04

File tree

6 files changed

+90
-21
lines changed

6 files changed

+90
-21
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

helix-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ encoding_rs = "0.8"
4040

4141
chrono = { version = "0.4", default-features = false, features = ["alloc", "std"] }
4242

43-
etcetera = "0.3"
43+
etcetera = "0.4"
4444
textwrap = "0.15.0"
4545

4646
[dev-dependencies]

helix-loader/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ homepage = "https://helix-editor.com"
1313
anyhow = "1"
1414
serde = { version = "1.0", features = ["derive"] }
1515
toml = "0.5"
16-
etcetera = "0.3"
16+
etcetera = "0.4"
1717
tree-sitter = "0.20"
1818
once_cell = "1.9"
1919

helix-lsp/src/transport.rs

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -215,20 +215,21 @@ impl Transport {
215215
}
216216
};
217217

218-
let tx = self
219-
.pending_requests
220-
.lock()
221-
.await
222-
.remove(&id)
223-
.expect("pending_request with id not found!");
224-
225-
match tx.send(result).await {
226-
Ok(_) => (),
227-
Err(_) => error!(
228-
"Tried sending response into a closed channel (id={:?}), original request likely timed out",
229-
id
230-
),
231-
};
218+
if let Some(tx) = self.pending_requests.lock().await.remove(&id) {
219+
match tx.send(result).await {
220+
Ok(_) => (),
221+
Err(_) => error!(
222+
"Tried sending response into a closed channel (id={:?}), original request likely timed out",
223+
id
224+
),
225+
};
226+
} else {
227+
log::error!(
228+
"Discarding Language Server response without a request (id={:?}) {:?}",
229+
id,
230+
result
231+
);
232+
}
232233

233234
Ok(())
234235
}

languages.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,7 @@ injection-regex = "hare"
12841284
file-types = ["ha"]
12851285
roots = []
12861286
comment-token = "//"
1287-
indent = { tab-width = 4, unit = "\t" }
1287+
indent = { tab-width = 8, unit = "\t" }
12881288

12891289
[[grammar]]
12901290
name = "hare"

runtime/themes/snazzy.toml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Author : Sebastian Zivota <[email protected]>
2+
# Author : Timothy DeHerrera <[email protected]>
3+
"comment" = { fg = "comment" }
4+
"constant" = { fg = "purple" }
5+
"constant.character.escape" = { fg = "magenta" }
6+
"function" = { fg = "green" }
7+
"keyword" = { fg = "magenta" }
8+
"operator" = { fg = "magenta" }
9+
"punctuation" = { fg = "foreground" }
10+
"string" = { fg = "yellow" }
11+
"path" = { fg = "blue" }
12+
"string.regexp" = { fg = "red" }
13+
"tag" = { fg = "magenta" }
14+
"type" = { fg = "cyan", modifiers = ["italic"] }
15+
"type.enum.variant" = { fg = "foreground", modifiers = ["italic"] }
16+
"variable" = { fg = "foreground" }
17+
"variable.builtin" = { fg = "cyan", modifiers = ["italic"] }
18+
"variable.parameter" = { fg ="blue", modifiers = ["italic"] }
19+
20+
"diff.plus" = { fg = "green" }
21+
"diff.delta" = { fg = "blue" }
22+
"diff.minus" = { fg = "red" }
23+
24+
"ui.background" = { fg = "foreground", bg = "background" }
25+
"ui.cursor" = { fg = "background", bg = "blue", modifiers = ["dim"] }
26+
"ui.cursor.match" = { fg = "green", modifiers = ["underlined"] }
27+
"ui.cursor.primary" = { fg = "background", bg = "cyan", modifier = ["dim"] }
28+
"ui.help" = { fg = "foreground", bg = "background_dark" }
29+
"ui.linenr" = { fg = "comment" }
30+
"ui.linenr.selected" = { fg = "foreground" }
31+
"ui.menu" = { fg = "foreground", bg = "background_dark" }
32+
"ui.menu.selected" = { fg = "cyan", bg = "background_dark" }
33+
"ui.popup" = { fg = "foreground", bg = "background_dark" }
34+
"ui.selection" = { bg = "secondary_highlight" }
35+
"ui.selection.primary" = { bg = "primary_highlight" }
36+
"ui.statusline" = { fg = "foreground", bg = "background_dark" }
37+
"ui.statusline.inactive" = { fg = "comment", bg = "background_dark" }
38+
"ui.text" = { fg = "foreground" }
39+
"ui.text.focus" = { fg = "cyan" }
40+
"ui.window" = { fg = "foreground" }
41+
"ui.virtual" = { fg = "comment" }
42+
43+
"error" = { fg = "red" }
44+
"warning" = { fg = "cyan" }
45+
46+
"markup.heading" = { fg = "purple", modifiers = ["bold"] }
47+
"markup.list" = "cyan"
48+
"markup.bold" = { fg = "blue", modifiers = ["bold"] }
49+
"markup.italic" = { fg = "yellow", modifiers = ["italic"] }
50+
"markup.link.url" = "cyan"
51+
"markup.link.text" = "magenta"
52+
"markup.quote" = { fg = "yellow", modifiers = ["italic"] }
53+
"markup.raw" = { fg = "foreground" }
54+
55+
[palette]
56+
background = "#282a36"
57+
background_dark = "#21222c"
58+
primary_highlight = "#800049"
59+
secondary_highlight = "#4d4f66"
60+
foreground = "#eff0eb"
61+
comment = "#a39e9b"
62+
red = "#ff5c57"
63+
blue = "#57c7ff"
64+
yellow = "#f3f99d"
65+
green = "#5af78e"
66+
purple = "#bd93f9"
67+
cyan = "#9aedfe"
68+
magenta = "#ff6ac1"

0 commit comments

Comments
 (0)