All tsserver unittests use session and typing installer (#56337)

This commit is contained in:
Sheetal Nandi authored and GitHub committed 2023-11-09 11:48:48 -08:00
1 parent 8e1fb5789a
commit efecc85dca
1350 files changed
+149066 -39856

No files matched your search

+3 -2
View File
@@ -1131,9 +1131,10 @@ export class Session<TMessage = string> implements EventSender {
}
private projectsUpdatedInBackgroundEvent(openFiles: string[]): void {
this.projectService.logger.info(`got projects updated in background, updating diagnostics for ${openFiles}`);
this.projectService.logger.info(`got projects updated in background ${openFiles}`);
if (openFiles.length) {
if (!this.suppressDiagnosticEvents && !this.noGetErrOnBackgroundUpdate) {
this.projectService.logger.info(`Queueing diagnostics update for ${openFiles}`);
// For now only queue error checking for open files. We can change this to include non open files as well
this.errorCheck.startNew(next => this.updateErrorCheck(next, openFiles, 100, /*requireOpen*/ true));
}
@@ -1193,7 +1194,7 @@ export class Session<TMessage = string> implements EventSender {
public send(msg: protocol.Message) {
if (msg.type === "event" && !this.canUseEvents) {
if (this.logger.hasLevel(LogLevel.verbose)) {
this.logger.info(`Session does not support events: ignored event: ${JSON.stringify(msg)}`);
this.logger.info(`Session does not support events: ignored event: ${stringifyIndented(msg)}`);
}
return;
}