Skip to content

Commit 81f3923

Browse files
ayazhafizKeen Yee Liau
authored andcommitted
Improve missing core.d.ts error message
1 parent af35961 commit 81f3923

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/session.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,10 +437,10 @@ export class Session {
437437
}
438438
if (!isAngularProject(project, NG_CORE)) {
439439
project.disableLanguageService();
440-
const totalFiles = project.getFileNames().length;
441440
const msg =
442-
`Disabling language service for ${projectName} because it is not an Angular project. ` +
443-
`There are ${totalFiles} files in the project but '${NG_CORE}' is not detected.`;
441+
`Disabling language service for ${projectName} because it is not an Angular project ` +
442+
`('${NG_CORE}' could not be found). ` +
443+
`If you believe you are seeing this message in error, please run a fresh package install.`;
444444
this.connection.console.info(msg);
445445
project.log(msg);
446446
if (project.getExcludedFiles().some(f => f.endsWith(NG_CORE))) {

0 commit comments

Comments
 (0)