Skip to content

Commit

Permalink
fix: restore tsserver version logging on initialization (#669)
Browse files Browse the repository at this point in the history
  • Loading branch information
tapayne88 authored and rchl committed Jan 23, 2023
1 parent d8b4cb6 commit 232219c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lsp-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class LspServer {

const typescriptVersion = this.findTypescriptVersion(tsserver?.path);
if (typescriptVersion) {
this.logger.log(LogLevel.Info, `Using Typescript version (${typescriptVersion.source}) ${typescriptVersion.versionString} from path "${typescriptVersion.tsServerPath}"`);
this.options.lspClient.logMessage({ type: LogLevel.Info, message: `Using Typescript version (${typescriptVersion.source}) ${typescriptVersion.versionString} from path "${typescriptVersion.tsServerPath}"` });
} else {
throw Error('Could not find a valid TypeScript installation. Please ensure that the "typescript" dependency is installed in the workspace or that a valid `tsserver.path` is specified. Exiting.');
}
Expand Down

0 comments on commit 232219c

Please sign in to comment.