mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
proposed event for when diagnostics change, #30075
This commit is contained in:
@@ -232,6 +232,10 @@ export function createApiFactory(
|
||||
createDiagnosticCollection(name?: string): vscode.DiagnosticCollection {
|
||||
return extHostDiagnostics.createDiagnosticCollection(name);
|
||||
},
|
||||
get onDidChangeDiagnostics() {
|
||||
checkProposedApiEnabled(extension);
|
||||
return extHostDiagnostics.onDidChangeDiagnostics;
|
||||
},
|
||||
diagnostics: {
|
||||
has: proposedApiFunction(extension, uri => extHostDiagnostics.hasDiagnostics(uri)),
|
||||
get: proposedApiFunction(extension, uri => extHostDiagnostics.getDiagnostics(uri)),
|
||||
|
||||
Reference in New Issue
Block a user