...
This commit is contained in:
@@ -34,7 +34,15 @@ public class WorkspaceManager(DiagnosticsPublisher diagnosticsPublisher)
|
||||
var typeChecker = new TypeChecker(syntaxTree, modules);
|
||||
var result = typeChecker.Check();
|
||||
diagnosticsPublisher.Publish(fsPath, typeChecker.Diagnostics);
|
||||
_compilationUnits[fsPath] = result;
|
||||
|
||||
if (result == null)
|
||||
{
|
||||
_compilationUnits.Remove(fsPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
_compilationUnits[fsPath] = result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,7 +65,15 @@ public class WorkspaceManager(DiagnosticsPublisher diagnosticsPublisher)
|
||||
var typeChecker = new TypeChecker(syntaxTree, modules);
|
||||
var result = typeChecker.Check();
|
||||
diagnosticsPublisher.Publish(fsPath, typeChecker.Diagnostics);
|
||||
_compilationUnits[fsPath] = result;
|
||||
|
||||
if (result == null)
|
||||
{
|
||||
_compilationUnits.Remove(fsPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
_compilationUnits[fsPath] = result;
|
||||
}
|
||||
}
|
||||
|
||||
public void RemoveFile(DocumentUri path)
|
||||
|
||||
Reference in New Issue
Block a user