55//
66//
77
8- use std:: collections:: HashMap ;
98use std:: future;
109use std:: pin:: Pin ;
1110
@@ -57,16 +56,19 @@ type TaskList<T> = futures::stream::FuturesUnordered<Pin<Box<dyn AnyhowJoinHandl
5756#[ derive( Debug ) ]
5857pub ( crate ) enum Event {
5958 Lsp ( LspMessage ) ,
59+ #[ allow( dead_code) ]
6060 Kernel ( KernelNotification ) ,
6161}
6262
6363#[ derive( Debug ) ]
6464pub ( crate ) enum KernelNotification {
65+ #[ allow( dead_code) ]
6566 DidChangeConsoleInputs ( ConsoleInputs ) ,
6667}
6768
6869#[ derive( Debug ) ]
6970pub ( crate ) enum AuxiliaryEvent {
71+ #[ allow( dead_code) ]
7072 PublishDiagnostics ( Url , Vec < Diagnostic > , Option < i32 > ) ,
7173 SpawnedTask ( JoinHandle < anyhow:: Result < Option < AuxiliaryEvent > > > ) ,
7274}
@@ -161,9 +163,6 @@ pub(crate) struct LspState {
161163 /// translate UTF-16 positions sent by the client to UTF-8 ones.
162164 pub ( crate ) position_encoding : PositionEncoding ,
163165
164- /// The set of tree-sitter document parsers managed by the `GlobalState`.
165- pub ( crate ) parsers : HashMap < Url , tree_sitter:: Parser > ,
166-
167166 /// List of client capabilities that we care about
168167 pub ( crate ) capabilities : AirClientCapabilities ,
169168
@@ -181,7 +180,6 @@ impl LspState {
181180 workspace_settings_resolver : Default :: default ( ) ,
182181 // All servers and clients have to support UTF-16 so that's the default
183182 position_encoding : PositionEncoding :: Wide ( WideEncoding :: Utf16 ) ,
184- parsers : Default :: default ( ) ,
185183 capabilities : Default :: default ( ) ,
186184 log_state : Default :: default ( ) ,
187185 settings : Default :: default ( ) ,
0 commit comments