Improve wording to address review feedback

This commit is contained in:
Michael B. Gale
2026-10-22 13:48:48 +01:00
parent ac509b698f
commit 87da5f37e5
3 changed files with 5 additions and 5 deletions

View File

@@ -137,7 +137,7 @@ export function makeDiagnostic(
}
/**
* Gets a path relative to {@link basePath} where diagnostics for to {@link language} should be stored at.
* Gets a path relative to {@link basePath} where diagnostics for {@link language} should be stored at.
*/
export function getLanguageDiagnosticsPath(
basePath: string,
@@ -200,7 +200,7 @@ export function addDiagnostic(
: config.dbLocation;
// Check that the database exists before writing to it. If the database does not yet exist,
// store the diagnostic in memory and write it later.
// store the diagnostic in a temporary location and move it to the database later.
if (fs.existsSync(databasePath)) {
writeDiagnostic({ logger }, config, language, diagnostic);
} else {