mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Client side draft
This commit is contained in:
parent
9e12b9e6fd
commit
8c4aab0c80
3 changed files with 14 additions and 2 deletions
|
@ -641,9 +641,15 @@ fn on_notification(
|
||||||
};
|
};
|
||||||
let not = match notification_cast::<req::DidChangeConfiguration>(not) {
|
let not = match notification_cast::<req::DidChangeConfiguration>(not) {
|
||||||
Ok(_params) => {
|
Ok(_params) => {
|
||||||
|
dbg!(_params);
|
||||||
|
// let request = request_new::<req::WorkspaceConfiguration>(
|
||||||
|
// loop_state.next_request_id(),
|
||||||
|
// ConfigurationParams::default(),
|
||||||
|
// );
|
||||||
|
// let zz = connection.sender.send(request.into()).unwrap();
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
Err(not) => not,
|
Err(not) => dbg!(not),
|
||||||
};
|
};
|
||||||
let not = match notification_cast::<req::DidChangeWatchedFiles>(not) {
|
let not = match notification_cast::<req::DidChangeWatchedFiles>(not) {
|
||||||
Ok(params) => {
|
Ok(params) => {
|
||||||
|
|
|
@ -6,7 +6,7 @@ use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
pub use lsp_types::{
|
pub use lsp_types::{
|
||||||
notification::*, request::*, ApplyWorkspaceEditParams, CodeActionParams, CodeLens,
|
notification::*, request::*, ApplyWorkspaceEditParams, CodeActionParams, CodeLens,
|
||||||
CodeLensParams, CompletionParams, CompletionResponse, DiagnosticTag,
|
CodeLensParams, CompletionParams, CompletionResponse, ConfigurationParams, DiagnosticTag,
|
||||||
DidChangeConfigurationParams, DidChangeWatchedFilesParams,
|
DidChangeConfigurationParams, DidChangeWatchedFilesParams,
|
||||||
DidChangeWatchedFilesRegistrationOptions, DocumentOnTypeFormattingParams, DocumentSymbolParams,
|
DidChangeWatchedFilesRegistrationOptions, DocumentOnTypeFormattingParams, DocumentSymbolParams,
|
||||||
DocumentSymbolResponse, FileSystemWatcher, Hover, InitializeResult, MessageType,
|
DocumentSymbolResponse, FileSystemWatcher, Hover, InitializeResult, MessageType,
|
||||||
|
|
|
@ -91,6 +91,12 @@ export async function activate(context: vscode.ExtensionContext) {
|
||||||
activateHighlighting(ctx);
|
activateHighlighting(ctx);
|
||||||
}
|
}
|
||||||
activateInlayHints(ctx);
|
activateInlayHints(ctx);
|
||||||
|
|
||||||
|
vscode.workspace.onDidChangeConfiguration(
|
||||||
|
_ => ctx?.client?.sendNotification('workspace/didChangeConfiguration', { settings: "" }),
|
||||||
|
null,
|
||||||
|
ctx?.subscriptions,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function deactivate() {
|
export async function deactivate() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue