vscode-languageclient/node#PublishDiagnosticsParams TypeScript Examples
The following examples show how to use
vscode-languageclient/node#PublishDiagnosticsParams.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: leanclient.ts From vscode-lean4 with Apache License 2.0 | 5 votes |
async getDiagnosticParams(uri: Uri, diagnostics: readonly Diagnostic[]) : Promise<PublishDiagnosticsParams> {
const params: PublishDiagnosticsParams = {
uri: c2pConverter.asUri(uri),
diagnostics: await c2pConverter.asDiagnostics(diagnostics as Diagnostic[])
};
return params;
}
Example #2
Source File: leanclient.ts From vscode-lean4 with Apache License 2.0 | 5 votes |
private diagnosticsEmitter = new EventEmitter<PublishDiagnosticsParams>()