aboutsummaryrefslogtreecommitdiff
path: root/editors/code
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/rust.tmGrammar.json6
-rw-r--r--editors/code/src/inlay_hints.ts2
2 files changed, 8 insertions, 0 deletions
diff --git a/editors/code/rust.tmGrammar.json b/editors/code/rust.tmGrammar.json
index 1b8cc713a..b3eec327b 100644
--- a/editors/code/rust.tmGrammar.json
+++ b/editors/code/rust.tmGrammar.json
@@ -140,6 +140,12 @@
140 }, 140 },
141 "patterns": [ 141 "patterns": [
142 { 142 {
143 "include": "#block-comments"
144 },
145 {
146 "include": "#comments"
147 },
148 {
143 "include": "#keywords" 149 "include": "#keywords"
144 }, 150 },
145 { 151 {
diff --git a/editors/code/src/inlay_hints.ts b/editors/code/src/inlay_hints.ts
index ed0db2924..38eb1c15b 100644
--- a/editors/code/src/inlay_hints.ts
+++ b/editors/code/src/inlay_hints.ts
@@ -60,6 +60,8 @@ function createHintStyle(hintKind: "type" | "parameter" | "chaining") {
60 color: fg, 60 color: fg,
61 backgroundColor: bg, 61 backgroundColor: bg,
62 fontStyle: "normal", 62 fontStyle: "normal",
63 fontWeight: "normal",
64 textDecoration: ";font-size:smaller",
63 }, 65 },
64 }), 66 }),
65 toDecoration(hint: ra.InlayHint, conv: lc.Protocol2CodeConverter): vscode.DecorationOptions { 67 toDecoration(hint: ra.InlayHint, conv: lc.Protocol2CodeConverter): vscode.DecorationOptions {