some early sketches of a read api #30075

This commit is contained in:
Johannes Rieken
2018-03-13 15:50:32 +01:00
parent 4059210607
commit 362485e390
5 changed files with 60 additions and 14 deletions

View File

@@ -232,6 +232,11 @@ export function createApiFactory(
createDiagnosticCollection(name?: string): vscode.DiagnosticCollection {
return extHostDiagnostics.createDiagnosticCollection(name);
},
diagnostics: {
has: proposedApiFunction(extension, uri => extHostDiagnostics.hasDiagnostics(uri)),
get: proposedApiFunction(extension, uri => extHostDiagnostics.getDiagnostics(uri)),
all: proposedApiFunction(extension, () => extHostDiagnostics.getAllDiagnostics())
},
getLanguages(): TPromise<string[]> {
return extHostLanguages.getLanguages();
},