We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69234b0 commit 2865240Copy full SHA for 2865240
src/lsptoolshost/roslynLanguageServer.ts
@@ -793,7 +793,13 @@ export class RoslynLanguageServer {
793
vscode.commands.registerCommand(
794
DynamicFileInfoHandler.dynamicFileUpdatedCommand,
795
async (notification: RazorDynamicFileChangedParams) =>
796
- this.sendNotification<RazorDynamicFileChangedParams>('razor/dynamicFileInfoChanged', notification)
+ {
797
+ if (this.isRunning()) {
798
+ this.sendNotification<RazorDynamicFileChangedParams>('razor/dynamicFileInfoChanged', notification)
799
+ } else {
800
+ _channel.debug('Tried to send razor/dynamicFileInfoChanged while server is not running');
801
+ }
802
803
);
804
}
805
0 commit comments