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 fb9e2f4 commit 95b8f11Copy full SHA for 95b8f11
server/src/session.ts
@@ -145,7 +145,8 @@ export class Session {
145
const result = this.projectService.openClientFile(filePath, text, scriptKind);
146
147
const {configFileName, configFileErrors} = result;
148
- if (configFileErrors) {
+ if (configFileErrors && configFileErrors.length) {
149
+ // configFileErrors is an empty array even if there's no error, so check length.
150
this.connection.console.error(configFileErrors.map(e => e.messageText).join('\n'));
151
}
152
if (!configFileName) {
0 commit comments