Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update FSharpProjectOptionsManager.fs
  • Loading branch information
dsyme authored Mar 1, 2019
commit e01910af67853a8a9b96ceeac6d8521e92d05783
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ type private FSharpProjectOptionsReactor (workspace: VisualStudioWorkspaceImpl,

let rec tryComputeOptionsByFile (document: Document) cancellationToken =
async {
let! fileStamp = document.GetTextVersionAsync(cancellationToken) |> Async.AwaitTask
match singleFileCache.TryGetValue(document.Id) with
| false, _ ->
let! sourceText = document.GetTextAsync(cancellationToken) |> Async.AwaitTask
let! fileStamp = document.GetTextVersionAsync(cancellationToken) |> Async.AwaitTask
let! scriptProjectOptions, _ = checkerProvider.Checker.GetProjectOptionsFromScript(document.FilePath, sourceText.ToFSharpSourceText(), DateTime.Now)
let projectOptions =
if isScriptFile document.FilePath then
Expand Down