Skip to content

Commit 06eddfe

Browse files
committed
name
1 parent f28cf45 commit 06eddfe

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

server/src/server.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ let openCompiledFileRequest = new v.RequestType<
8282
void
8383
>("rescript-vscode.open_compiled");
8484

85-
let getDiagnosticsForFile = (fileUri: string): p.Diagnostic[] => {
85+
let getCurrentCompilerDiagnosticsForFile = (
86+
fileUri: string
87+
): p.Diagnostic[] => {
8688
let diagnostics: p.Diagnostic[] | null = null;
8789

8890
projectsFiles.forEach((projectFile, _projectRootPath) => {
@@ -630,7 +632,8 @@ let updateDiagnosticSyntax = (fileUri: string, fileContent: string) => {
630632
// diagnostics if there's no syntax diagostics to send. This is because
631633
// publishing an empty diagnostics array is equivalent to saying "clear all
632634
// errors".
633-
let compilerDiagnosticsForFile = getDiagnosticsForFile(fileUri);
635+
let compilerDiagnosticsForFile =
636+
getCurrentCompilerDiagnosticsForFile(fileUri);
634637
let syntaxDiagnosticsForFile: p.Diagnostic[] =
635638
utils.runAnalysisAfterSanityCheck(filePath, ["diagnosticSyntax", tmpname]);
636639

0 commit comments

Comments
 (0)