File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,8 +4,17 @@ use foldhash::HashMap;
44
55use lsp_types:: notification:: * ;
66use lsp_types:: request:: * ;
7+ use lsp_types:: SetTraceParams ;
78use lsp_types:: SymbolKind ;
89
10+ // ----------------------------------------------------------------------------
11+ // SetTrace variant that VSC sends
12+ pub enum SetTraceVsc { }
13+ impl Notification for SetTraceVsc {
14+ const METHOD : & ' static str = "$/setTraceNotification" ;
15+ type Params = SetTraceParams ;
16+ }
17+
918// ----------------------------------------------------------------------------
1019// WindowStatus
1120pub enum WindowStatus { }
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ mod find_references;
3434mod jrpc_io;
3535mod symbol_search;
3636
37- use crate :: extras:: { QueryObjectTree , Reparse , StartDebugger } ;
37+ use crate :: extras:: { QueryObjectTree , Reparse , SetTraceVsc , StartDebugger } ;
3838use dm:: annotation:: { Annotation , AnnotationTree } ;
3939use dm:: objtree:: TypeRef ;
4040use dm:: FileId ;
@@ -2411,6 +2411,8 @@ impl Engine {
24112411 Initialized ;
24122412 Reparse ;
24132413 Cancel ;
2414+ SetTrace ;
2415+ SetTraceVsc ;
24142416 DidOpenTextDocument ;
24152417 DidCloseTextDocument ;
24162418 DidChangeTextDocument ;
@@ -2455,6 +2457,15 @@ impl Engine {
24552457 Ok ( ( ) )
24562458 }
24572459
2460+ fn SetTrace ( & mut self , _: N < SetTrace > ) -> NR {
2461+ // Not implemented, but don't log that.
2462+ Ok ( ( ) )
2463+ }
2464+
2465+ fn SetTraceVsc ( & mut self , p : N < SetTrace > ) -> NR {
2466+ self . SetTrace ( p)
2467+ }
2468+
24582469 // ------------------------------------------------------------------------
24592470 // document content management
24602471 fn DidOpenTextDocument ( & mut self , params : N < DidOpenTextDocument > ) -> NR {
You can’t perform that action at this time.
0 commit comments