mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
Bump lsp-types
This commit is contained in:
parent
95fa278f30
commit
38144fd914
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -933,9 +933,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "lsp-types"
|
||||
version = "0.93.2"
|
||||
version = "0.94.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9be6e9c7e2d18f651974370d7aff703f9513e0df6e464fd795660edc77e6ca51"
|
||||
checksum = "0b63735a13a1f9cd4f4835223d828ed9c2e35c8c5e61837774399f558b6a1237"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
"serde",
|
||||
|
@ -24,7 +24,7 @@ crossbeam-channel = "0.5.5"
|
||||
dissimilar = "1.0.4"
|
||||
itertools = "0.10.5"
|
||||
scip = "0.1.1"
|
||||
lsp-types = { version = "=0.93.2", features = ["proposed"] }
|
||||
lsp-types = { version = "=0.94", features = ["proposed"] }
|
||||
parking_lot = "0.12.1"
|
||||
xflags = "0.3.0"
|
||||
oorandom = "11.1.3"
|
||||
|
@ -138,6 +138,7 @@ pub fn server_capabilities(config: &Config) -> ServerCapabilities {
|
||||
resolve_provider: Some(true),
|
||||
},
|
||||
))),
|
||||
inline_value_provider: None,
|
||||
experimental: Some(json!({
|
||||
"externalDocs": true,
|
||||
"hoverRange": true,
|
||||
|
@ -268,7 +268,10 @@ impl GlobalState {
|
||||
]
|
||||
})
|
||||
})
|
||||
.map(|glob_pattern| lsp_types::FileSystemWatcher { glob_pattern, kind: None })
|
||||
.map(|glob_pattern| lsp_types::FileSystemWatcher {
|
||||
glob_pattern: lsp_types::GlobPattern::String(glob_pattern),
|
||||
kind: None,
|
||||
})
|
||||
.collect(),
|
||||
};
|
||||
let registration = lsp_types::Registration {
|
||||
|
@ -766,6 +766,7 @@ pub(crate) fn folding_range(
|
||||
end_line,
|
||||
end_character: None,
|
||||
kind,
|
||||
collapsed_text: None,
|
||||
}
|
||||
} else {
|
||||
lsp_types::FoldingRange {
|
||||
@ -774,6 +775,7 @@ pub(crate) fn folding_range(
|
||||
end_line: range.end.line,
|
||||
end_character: Some(range.end.character),
|
||||
kind,
|
||||
collapsed_text: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ use lsp_types::{
|
||||
notification::DidOpenTextDocument,
|
||||
request::{
|
||||
CodeActionRequest, Completion, Formatting, GotoTypeDefinition, HoverRequest,
|
||||
WillRenameFiles, WorkspaceSymbol,
|
||||
WillRenameFiles, WorkspaceSymbolRequest,
|
||||
},
|
||||
CodeActionContext, CodeActionParams, CompletionParams, DidOpenTextDocumentParams,
|
||||
DocumentFormattingParams, FileRename, FormattingOptions, GotoDefinitionParams, HoverParams,
|
||||
@ -1095,5 +1095,5 @@ pub fn bar() {}
|
||||
.server()
|
||||
.wait_until_workspace_is_loaded();
|
||||
|
||||
server.request::<WorkspaceSymbol>(Default::default(), json!([]));
|
||||
server.request::<WorkspaceSymbolRequest>(Default::default(), json!([]));
|
||||
}
|
||||
|
@ -107,6 +107,7 @@ impl<'a> Project<'a> {
|
||||
did_change_watched_files: Some(
|
||||
lsp_types::DidChangeWatchedFilesClientCapabilities {
|
||||
dynamic_registration: Some(true),
|
||||
relative_pattern_support: None,
|
||||
},
|
||||
),
|
||||
..Default::default()
|
||||
|
@ -13,4 +13,4 @@ serde = { version = "1.0.144", features = ["derive"] }
|
||||
crossbeam-channel = "0.5.6"
|
||||
|
||||
[dev-dependencies]
|
||||
lsp-types = "=0.93.2"
|
||||
lsp-types = "=0.94"
|
||||
|
Loading…
Reference in New Issue
Block a user