Skip to content

Commit 5ce9b04

Browse files
bors[bot]lnicola
andauthored
Merge #10551
10551: Pull in new lsp-types for VS compat r=lnicola a=lnicola CC #8729 Depends on gluon-lang/lsp-types#218 Co-authored-by: Laurențiu Nicola <[email protected]>
2 parents 91cbda4 + 29d281e commit 5ce9b04

18 files changed

+150
-99
lines changed

Cargo.lock

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

crates/rust-analyzer/Cargo.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ crossbeam-channel = "0.5.0"
2222
dissimilar = "1.0.2"
2323
itertools = "0.10.0"
2424
jod-thread = "0.1.0"
25-
lsp-types = { version = "0.90.1", features = ["proposed"] }
25+
lsp-types = { version = "0.91", features = ["proposed"] }
2626
parking_lot = "0.11.0"
2727
xflags = "0.2.1"
2828
oorandom = "11.1.2"
@@ -34,7 +34,12 @@ rayon = "1.5"
3434
mimalloc = { version = "0.1.19", default-features = false, optional = true }
3535
lsp-server = "0.5.1"
3636
tracing = "0.1"
37-
tracing-subscriber = { version = "0.2", default-features = false, features = ["env-filter", "registry", "fmt", "tracing-log"] }
37+
tracing-subscriber = { version = "0.2", default-features = false, features = [
38+
"env-filter",
39+
"registry",
40+
"fmt",
41+
"tracing-log",
42+
] }
3843
tracing-log = "0.1.2"
3944
tracing-tree = { version = "0.1.10" }
4045
always-assert = "0.1"

crates/rust-analyzer/src/caps.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub fn server_capabilities(config: &Config) -> ServerCapabilities {
2020
ServerCapabilities {
2121
text_document_sync: Some(TextDocumentSyncCapability::Options(TextDocumentSyncOptions {
2222
open_close: Some(true),
23-
change: Some(TextDocumentSyncKind::Incremental),
23+
change: Some(TextDocumentSyncKind::INCREMENTAL),
2424
will_save: None,
2525
will_save_wait_until: None,
2626
save: Some(SaveOptions::default().into()),

crates/rust-analyzer/src/diagnostics/test_data/clippy_pass_by_ref.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
},
2424
},
2525
severity: Some(
26-
Warning,
26+
DiagnosticSeverity(
27+
2,
28+
),
2729
),
2830
code: Some(
2931
String(
@@ -140,7 +142,9 @@
140142
},
141143
},
142144
severity: Some(
143-
Hint,
145+
DiagnosticSeverity(
146+
4,
147+
),
144148
),
145149
code: Some(
146150
String(
@@ -231,7 +235,9 @@
231235
},
232236
},
233237
severity: Some(
234-
Hint,
238+
DiagnosticSeverity(
239+
4,
240+
),
235241
),
236242
code: Some(
237243
String(

crates/rust-analyzer/src/diagnostics/test_data/handles_macro_location.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
},
2424
},
2525
severity: Some(
26-
Error,
26+
DiagnosticSeverity(
27+
1,
28+
),
2729
),
2830
code: Some(
2931
String(

crates/rust-analyzer/src/diagnostics/test_data/macro_compiler_error.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
},
2424
},
2525
severity: Some(
26-
Hint,
26+
DiagnosticSeverity(
27+
4,
28+
),
2729
),
2830
code: None,
2931
code_description: None,
@@ -90,7 +92,9 @@
9092
},
9193
},
9294
severity: Some(
93-
Hint,
95+
DiagnosticSeverity(
96+
4,
97+
),
9498
),
9599
code: None,
96100
code_description: None,
@@ -157,7 +161,9 @@
157161
},
158162
},
159163
severity: Some(
160-
Error,
164+
DiagnosticSeverity(
165+
1,
166+
),
161167
),
162168
code: None,
163169
code_description: None,

crates/rust-analyzer/src/diagnostics/test_data/rustc_incompatible_type_for_trait.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
},
2424
},
2525
severity: Some(
26-
Error,
26+
DiagnosticSeverity(
27+
1,
28+
),
2729
),
2830
code: Some(
2931
String(

crates/rust-analyzer/src/diagnostics/test_data/rustc_mismatched_type.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
},
2424
},
2525
severity: Some(
26-
Error,
26+
DiagnosticSeverity(
27+
1,
28+
),
2729
),
2830
code: Some(
2931
String(

crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
},
2424
},
2525
severity: Some(
26-
Warning,
26+
DiagnosticSeverity(
27+
2,
28+
),
2729
),
2830
code: Some(
2931
String(
@@ -67,7 +69,9 @@
6769
),
6870
tags: Some(
6971
[
70-
Unnecessary,
72+
DiagnosticTag(
73+
1,
74+
),
7175
],
7276
),
7377
data: None,
@@ -98,7 +102,9 @@
98102
},
99103
},
100104
severity: Some(
101-
Hint,
105+
DiagnosticSeverity(
106+
4,
107+
),
102108
),
103109
code: Some(
104110
String(

crates/rust-analyzer/src/diagnostics/test_data/rustc_unused_variable_as_hint.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
},
2424
},
2525
severity: Some(
26-
Hint,
26+
DiagnosticSeverity(
27+
4,
28+
),
2729
),
2830
code: Some(
2931
String(
@@ -67,7 +69,9 @@
6769
),
6870
tags: Some(
6971
[
70-
Unnecessary,
72+
DiagnosticTag(
73+
1,
74+
),
7175
],
7276
),
7377
data: None,
@@ -98,7 +102,9 @@
98102
},
99103
},
100104
severity: Some(
101-
Hint,
105+
DiagnosticSeverity(
106+
4,
107+
),
102108
),
103109
code: Some(
104110
String(

0 commit comments

Comments
 (0)