update/plugins/org.eclipse.wildwebdeveloper_0.5.8.202005190736/node_modules/@angular/language-server/index.js
/**
	     * Determine if the specified `project` is Angular, and disable the language
	     * service if not.
	     * @param project
	     */
Determine if the specified `project` is Angular, and disable the language
service if not.
@param project
Determine if the specified ` project ` is Angular and disable the language service if not . @param project
checkIsAngularProject(project) {
	        const NG_CORE = '@angular/core/core.d.ts';
	        const { projectName } = project;
	        if (!project.languageServiceEnabled) {
	            const msg = `Language service is already disabled for ${projectName}. ` +
	                `This could be due to non-TS files that exceeded the size limit (${tsserverlibrary.server.maxProgramSizeForNonTsFiles} bytes).` +
	                `Please check log file for details.`;
	            this.connection.console.info(msg); 
	            project.log(msg); 
	            return;
	        }
	        if (!isAngularProject(project, NG_CORE)) {
	            project.disableLanguageService();
	            const totalFiles = project.getFileNames().length;
	            const msg = `Disabling language service for ${projectName} because it is not an Angular project. ` +
	                `There are ${totalFiles} files in the project but '${NG_CORE}' is not detected.`;
	            this.connection.console.info(msg);
	            project.log(msg);
	            if (project.getExcludedFiles().some(f => f.endsWith(NG_CORE))) {
	                const msg = `Please check your tsconfig.json to make sure 'node_modules' directory is not excluded.`;
	                this.connection.console.info(msg);
	                project.log(msg);
	            }
	        }
	    }
checkIsAngularProject ( project ) { const NG_CORE = '@angular/core/core.d.ts' ; const { projectName } = project ; if ( ! project . languageServiceEnabled ) { const msg = ` ${ projectName } ` + ` ${ tsserverlibrary . server . maxProgramSizeForNonTsFiles } ` + ` ` ; this . connection . console . info ( msg ) ; project . log ( msg ) ; return ; } if ( ! isAngularProject ( project , NG_CORE ) ) { project . disableLanguageService ( ) ; const totalFiles = project . getFileNames ( ) . length ; const msg = ` ${ projectName } ` + ` ${ totalFiles } ${ NG_CORE } ` ; this . connection . console . info ( msg ) ; project . log ( msg ) ; if ( project . getExcludedFiles ( ) . some ( f => f . endsWith ( NG_CORE ) ) ) { const msg = ` ` ; this . connection . console . info ( msg ) ; project . log ( msg ) ; } } }
Determine if the specified `project` is Angular, and disable the language
 service if not.
Determine if the specified ` project ` is Angular and disable the language service if not .
// log to remote console to inform users // log to file, so that it's easier to correlate with ts entries