-
Notifications
You must be signed in to change notification settings - Fork 789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
P2p references #3777
P2p references #3777
Conversation
src/fsharp/vs/service.fs
Outdated
@@ -1374,8 +1374,8 @@ type FSharpParsingOptions = | |||
} | |||
|
|||
member x.LastFileName = | |||
Debug.Assert(not (Array.isEmpty x.SourceFiles), "Parsing options don't contain any file") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't necessary anymore because of #3793.
| Some (:? Workspace as workspace) -> | ||
let solution = workspace.CurrentSolution | ||
let documentIds = solution.GetDocumentIdsWithFilePath(fileName) | ||
if not documentIds.IsEmpty then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this if
statement necessary given that below you check documentIdsFiltered.Length
? Or does Seq.toArray
throw on an empty sequence?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is as you say unnecessary
if not documentIds.IsEmpty then | ||
let documentIdsFiltered = documentIds |> Seq.filter workspace.IsDocumentOpen |> Seq.toArray | ||
for documentId in documentIdsFiltered do | ||
Trace.TraceInformation("{0:n3} Requesting Roslyn reanalysis of {1}", DateTime.Now.TimeOfDay.TotalSeconds, documentId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just a regular timestamp?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brettfo this line came from:
https://github.com/Microsoft/visualfsharp/pull/3777/files/93ebd231f81eb6de79fa42a48cebd268e4831e54#diff-cdf0a4fbb7615b8029d78133924259c3L73
just indented deeper.
* P2p references * Fix test * test fix * go faster stripes * new project works better * Re-add debug assert for sourcefiles
* don't update project info if the source file collection is empty (#3792) * install templates VSIX to a unique directory (#3804) * P2p references (#3777) * P2p references * Fix test * test fix * go faster stripes * new project works better * Re-add debug assert for sourcefiles * Parameterise rc location (#3744) * Fix issues
* Merge dev15.5 to dev15.6 (#3825) * don't update project info if the source file collection is empty (#3792) * install templates VSIX to a unique directory (#3804) * P2p references (#3777) * P2p references * Fix test * test fix * go faster stripes * new project works better * Re-add debug assert for sourcefiles * Parameterise rc location (#3744) * Fix issues * Merge master to dev15.6 (#3826) * Put nupkgs into artifacts (#3806) * Make FCS build work on Jenkins (#3788)
* P2p references * Fix test * test fix * go faster stripes * new project works better * Re-add debug assert for sourcefiles
* P2p references * Fix test * test fix * go faster stripes * new project works better * Re-add debug assert for sourcefiles
No description provided.