update/plugins/org.eclipse.wildwebdeveloper_0.5.8.202005190736/node_modules/@angular/language-server/index.js
/**
	     * An event handler that gets invoked whenever the program changes and
	     * TS ProjectService sends `ProjectUpdatedInBackgroundEvent`. This particular
	     * event is used to trigger diagnostic checks.
	     * @param event
	     */
An event handler that gets invoked whenever the program changes and
TS ProjectService sends `ProjectUpdatedInBackgroundEvent`. This particular
event is used to trigger diagnostic checks.
@param event
An event handler that gets invoked whenever the program changes and TS ProjectService sends ` ProjectUpdatedInBackgroundEvent ` . This particular event is used to trigger diagnostic checks . @param event
handleProjectServiceEvent(event) {
	        switch (event.eventName) {
	            case tsserverlibrary.server.ProjectLoadingStartEvent:
	                this.connection.sendNotification(protocol.projectLoadingNotification.start, event.data.project.projectName);
	                break;
	            case tsserverlibrary.server.ProjectLoadingFinishEvent: {
	                const { project } = event.data;
	                this.checkIsAngularProject(project);
	                this.connection.sendNotification(protocol.projectLoadingNotification.finish, project.projectName);
	                break;
	            }
	            case tsserverlibrary.server.ProjectsUpdatedInBackgroundEvent:
	                this.triggerDiagnostics(event.data.openFiles);
	                break;
	        }
	    }
handleProjectServiceEvent ( event ) { switch ( event . eventName ) { case tsserverlibrary . server . ProjectLoadingStartEvent : this . connection . sendNotification ( protocol . projectLoadingNotification . start , event . data . project . projectName ) ; break ; case tsserverlibrary . server . ProjectLoadingFinishEvent : { const { project } = event . data ; this . checkIsAngularProject ( project ) ; this . connection . sendNotification ( protocol . projectLoadingNotification . finish , project . projectName ) ; break ; } case tsserverlibrary . server . ProjectsUpdatedInBackgroundEvent : this . triggerDiagnostics ( event . data . openFiles ) ; break ; } }
An event handler that gets invoked whenever the program changes and
 TS ProjectService sends `ProjectUpdatedInBackgroundEvent`.
An event handler that gets invoked whenever the program changes and TS ProjectService sends ` ProjectUpdatedInBackgroundEvent ` .
// Disable language service if project is not Angular // ProjectsUpdatedInBackgroundEvent is sent whenever diagnostics are // requested via project.refreshDiagnostics()