File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,9 @@ let openCompiledFileRequest = new v.RequestType<
82
82
void
83
83
> ( "rescript-vscode.open_compiled" ) ;
84
84
85
- let getDiagnosticsForFile = ( fileUri : string ) : p . Diagnostic [ ] => {
85
+ let getCurrentCompilerDiagnosticsForFile = (
86
+ fileUri : string
87
+ ) : p . Diagnostic [ ] => {
86
88
let diagnostics : p . Diagnostic [ ] | null = null ;
87
89
88
90
projectsFiles . forEach ( ( projectFile , _projectRootPath ) => {
@@ -630,7 +632,8 @@ let updateDiagnosticSyntax = (fileUri: string, fileContent: string) => {
630
632
// diagnostics if there's no syntax diagostics to send. This is because
631
633
// publishing an empty diagnostics array is equivalent to saying "clear all
632
634
// errors".
633
- let compilerDiagnosticsForFile = getDiagnosticsForFile ( fileUri ) ;
635
+ let compilerDiagnosticsForFile =
636
+ getCurrentCompilerDiagnosticsForFile ( fileUri ) ;
634
637
let syntaxDiagnosticsForFile : p . Diagnostic [ ] =
635
638
utils . runAnalysisAfterSanityCheck ( filePath , [ "diagnosticSyntax" , tmpname ] ) ;
636
639
You can’t perform that action at this time.
0 commit comments