File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,7 @@ export class RoslynLanguageServer {
183
183
state : ServerState . Started ,
184
184
workspaceLabel : this . workspaceDisplayName ( ) ,
185
185
} ) ;
186
+ this . _telemetryReporter . sendTelemetryEvent ( TelemetryEventNames . ClientServerReady ) ;
186
187
} else if ( state . newState === State . Stopped ) {
187
188
this . _languageServerEvents . onServerStateChangeEmitter . fire ( {
188
189
state : ServerState . Stopped ,
@@ -338,7 +339,7 @@ export class RoslynLanguageServer {
338
339
* Returns whether or not the underlying LSP server is running or not.
339
340
*/
340
341
public isRunning ( ) : boolean {
341
- return this . _languageClient . state === State . Running ;
342
+ return this . _languageClient . isRunning ( ) ;
342
343
}
343
344
344
345
/**
Original file line number Diff line number Diff line change @@ -11,9 +11,17 @@ export enum TelemetryEventNames {
11
11
CSharpActivated = 'CSharpActivated' ,
12
12
13
13
// Events related to the roslyn language server.
14
+
15
+ // Roslyn client has started initialization process.
14
16
ClientInitialize = 'roslyn/clientInitialize' ,
17
+ // Roslyn client has started the server initialization process.
15
18
ClientServerStart = 'roslyn/clientServerInitialize' ,
19
+ // Roslyn client has acquired the runtime needed to start the server.
16
20
AcquiredRuntime = 'roslyn/acquiredRuntime' ,
21
+ // Roslyn client has successfully started the server process.
17
22
LaunchedServer = 'roslyn/launchedServer' ,
23
+ // Roslyn client has connected to the server process named pipe.
18
24
ClientConnected = 'roslyn/clientConnected' ,
25
+ // Roslyn client and server have fully initialized via LSP.
26
+ ClientServerReady = 'roslyn/clientServerReady' ,
19
27
}
You can’t perform that action at this time.
0 commit comments