Use cache when validating with value providers
This commit is contained in:
@@ -93,7 +93,11 @@ documents.onDidChangeContent((change) => {
|
||||
async function validateTextDocument(textDocument: TextDocument): Promise<void> {
|
||||
const result = await validate(
|
||||
textDocument,
|
||||
valueProviders(sessionToken, repoWorkspaceMap)
|
||||
valueProviders(
|
||||
sessionToken,
|
||||
repos.find((repo) => textDocument.uri.startsWith(repo.workspaceUri)),
|
||||
cache
|
||||
)
|
||||
);
|
||||
|
||||
connection.sendDiagnostics({ uri: textDocument.uri, diagnostics: result });
|
||||
|
||||
Reference in New Issue
Block a user