update/plugins/org.eclipse.wildwebdeveloper_0.5.8.202005190736/node_modules/@angular/language-server/index.js
/**
	 * Convert ts.Diagnostic to lsp.Diagnostic
	 * @param tsDiag TS diagnostic
	 * @param scriptInfo Used to compute proper offset.
	 */
Convert ts.Diagnostic to lsp.Diagnostic
@param tsDiag TS diagnostic
@param scriptInfo Used to compute proper offset.
Convert ts . Diagnostic to lsp . Diagnostic @param tsDiag TS diagnostic @param scriptInfo Used to compute proper offset .
function tsDiagnosticToLspDiagnostic(tsDiag, scriptInfo) {
	    const textSpan = {
	        start: tsDiag.start || 0,
	        length: tsDiag.length || 0,
	    };
	    return vscodeLanguageserver.Diagnostic.create(utils.tsTextSpanToLspRange(scriptInfo, textSpan), tsserverlibrary.flattenDiagnosticMessageText(tsDiag.messageText, '\n'), tsDiagnosticCategoryToLspDiagnosticSeverity(tsDiag.category), tsDiag.code, tsDiag.source);
	}
function tsDiagnosticToLspDiagnostic ( tsDiag , scriptInfo ) { const textSpan = { start : tsDiag . start || 0 , length : tsDiag . length || 0 , } ; return vscodeLanguageserver . Diagnostic . create ( utils . tsTextSpanToLspRange ( scriptInfo , textSpan ) , tsserverlibrary . flattenDiagnosticMessageText ( tsDiag . messageText , '\n' ) , tsDiagnosticCategoryToLspDiagnosticSeverity ( tsDiag . category ) , tsDiag . code , tsDiag . source ) ; }
Convert ts.Diagnostic to lsp.Diagnostic
 @param tsDiag TS diagnostic
 @param scriptInfo Used to compute proper offset.
Convert ts . Diagnostic to lsp . Diagnostic @param tsDiag TS diagnostic @param scriptInfo Used to compute proper offset .