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]]
|
[[package]]
|
||||||
name = "lsp-types"
|
name = "lsp-types"
|
||||||
version = "0.93.2"
|
version = "0.94.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "9be6e9c7e2d18f651974370d7aff703f9513e0df6e464fd795660edc77e6ca51"
|
checksum = "0b63735a13a1f9cd4f4835223d828ed9c2e35c8c5e61837774399f558b6a1237"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"serde",
|
"serde",
|
||||||
|
@ -24,7 +24,7 @@ crossbeam-channel = "0.5.5"
|
|||||||
dissimilar = "1.0.4"
|
dissimilar = "1.0.4"
|
||||||
itertools = "0.10.5"
|
itertools = "0.10.5"
|
||||||
scip = "0.1.1"
|
scip = "0.1.1"
|
||||||
lsp-types = { version = "=0.93.2", features = ["proposed"] }
|
lsp-types = { version = "=0.94", features = ["proposed"] }
|
||||||
parking_lot = "0.12.1"
|
parking_lot = "0.12.1"
|
||||||
xflags = "0.3.0"
|
xflags = "0.3.0"
|
||||||
oorandom = "11.1.3"
|
oorandom = "11.1.3"
|
||||||
|
@ -138,6 +138,7 @@ pub fn server_capabilities(config: &Config) -> ServerCapabilities {
|
|||||||
resolve_provider: Some(true),
|
resolve_provider: Some(true),
|
||||||
},
|
},
|
||||||
))),
|
))),
|
||||||
|
inline_value_provider: None,
|
||||||
experimental: Some(json!({
|
experimental: Some(json!({
|
||||||
"externalDocs": true,
|
"externalDocs": true,
|
||||||
"hoverRange": 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(),
|
.collect(),
|
||||||
};
|
};
|
||||||
let registration = lsp_types::Registration {
|
let registration = lsp_types::Registration {
|
||||||
|
@ -766,6 +766,7 @@ pub(crate) fn folding_range(
|
|||||||
end_line,
|
end_line,
|
||||||
end_character: None,
|
end_character: None,
|
||||||
kind,
|
kind,
|
||||||
|
collapsed_text: None,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
lsp_types::FoldingRange {
|
lsp_types::FoldingRange {
|
||||||
@ -774,6 +775,7 @@ pub(crate) fn folding_range(
|
|||||||
end_line: range.end.line,
|
end_line: range.end.line,
|
||||||
end_character: Some(range.end.character),
|
end_character: Some(range.end.character),
|
||||||
kind,
|
kind,
|
||||||
|
collapsed_text: None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@ use lsp_types::{
|
|||||||
notification::DidOpenTextDocument,
|
notification::DidOpenTextDocument,
|
||||||
request::{
|
request::{
|
||||||
CodeActionRequest, Completion, Formatting, GotoTypeDefinition, HoverRequest,
|
CodeActionRequest, Completion, Formatting, GotoTypeDefinition, HoverRequest,
|
||||||
WillRenameFiles, WorkspaceSymbol,
|
WillRenameFiles, WorkspaceSymbolRequest,
|
||||||
},
|
},
|
||||||
CodeActionContext, CodeActionParams, CompletionParams, DidOpenTextDocumentParams,
|
CodeActionContext, CodeActionParams, CompletionParams, DidOpenTextDocumentParams,
|
||||||
DocumentFormattingParams, FileRename, FormattingOptions, GotoDefinitionParams, HoverParams,
|
DocumentFormattingParams, FileRename, FormattingOptions, GotoDefinitionParams, HoverParams,
|
||||||
@ -1095,5 +1095,5 @@ pub fn bar() {}
|
|||||||
.server()
|
.server()
|
||||||
.wait_until_workspace_is_loaded();
|
.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(
|
did_change_watched_files: Some(
|
||||||
lsp_types::DidChangeWatchedFilesClientCapabilities {
|
lsp_types::DidChangeWatchedFilesClientCapabilities {
|
||||||
dynamic_registration: Some(true),
|
dynamic_registration: Some(true),
|
||||||
|
relative_pattern_support: None,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
|
@ -13,4 +13,4 @@ serde = { version = "1.0.144", features = ["derive"] }
|
|||||||
crossbeam-channel = "0.5.6"
|
crossbeam-channel = "0.5.6"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
lsp-types = "=0.93.2"
|
lsp-types = "=0.94"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user