update/plugins/org.eclipse.wildwebdeveloper_0.5.8.202005190736/node_modules/@angular/language-server/index.js
/**
	     * Execute diagnostics request for each of the specified `openFiles`.
	     * @param openFiles
	     */
Execute diagnostics request for each of the specified `openFiles`.
@param openFiles
Execute diagnostics request for each of the specified ` openFiles ` . @param openFiles
sendPendingDiagnostics(openFiles) {
	        for (const fileName of openFiles) {
	            const scriptInfo = this.projectService.getScriptInfo(fileName);
	            if (!scriptInfo) {
	                continue;
	            }
	            const project = this.projectService.getDefaultProjectForScriptInfo(scriptInfo);
	            if (!project || !project.languageServiceEnabled) {
	                continue;
	            }
	            const ngLS = project.getLanguageService();
	            const diagnostics = ngLS.getSemanticDiagnostics(fileName);
	            this.connection.sendDiagnostics({
	                uri: utils.filePathToUri(fileName),
	                diagnostics: diagnostics.map(d => diagnostic.tsDiagnosticToLspDiagnostic(d, scriptInfo)),
	            });
	        }
	    }
sendPendingDiagnostics ( openFiles ) { for ( const fileName of openFiles ) { const scriptInfo = this . projectService . getScriptInfo ( fileName ) ; if ( ! scriptInfo ) { continue ; } const project = this . projectService . getDefaultProjectForScriptInfo ( scriptInfo ) ; if ( ! project || ! project . languageServiceEnabled ) { continue ; } const ngLS = project . getLanguageService ( ) ; const diagnostics = ngLS . getSemanticDiagnostics ( fileName ) ; this . connection . sendDiagnostics ( { uri : utils . filePathToUri ( fileName ) , diagnostics : diagnostics . map ( d => diagnostic . tsDiagnosticToLspDiagnostic ( d , scriptInfo ) ) , } ) ; } }
Execute diagnostics request for each of the specified `openFiles`.
Execute diagnostics request for each of the specified ` openFiles ` .
// Need to send diagnostics even if it's empty otherwise editor state will // not be updated.