Skip to content
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

Merged
merged 10 commits into from
Oct 24, 2017
Merged

P2p references #3777

merged 10 commits into from
Oct 24, 2017

Conversation

KevinRansom
Copy link
Member

No description provided.

@KevinRansom
Copy link
Member Author

KevinRansom commented Oct 20, 2017

@cartermp, @dsyme

Okay I think p2p references are working ... can you try it out some.

There are bugs ... I think we should look for them and deal with them as issues. Try to get some coverage of this.

You will need vs2017.5 preview 1 or 2. For the project system changes.

@@ -1374,8 +1374,8 @@ type FSharpParsingOptions =
}

member x.LastFileName =
Debug.Assert(not (Array.isEmpty x.SourceFiles), "Parsing options don't contain any file")
Copy link
Member

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
Copy link
Member

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?

Copy link
Member Author

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)
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KevinRansom KevinRansom merged commit 716b8e9 into dotnet:master Oct 24, 2017
KevinRansom added a commit that referenced this pull request Oct 24, 2017
* P2p references

* Fix test

* test fix

* go faster stripes

* new project works better

* Re-add debug assert for sourcefiles
KevinRansom pushed a commit that referenced this pull request Oct 26, 2017
* 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
KevinRansom added a commit that referenced this pull request Oct 27, 2017
* 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)
@KevinRansom KevinRansom deleted the projectreferences branch October 30, 2017 18:26
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
* P2p references

* Fix test

* test fix

* go faster stripes

* new project works better

* Re-add debug assert for sourcefiles
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
* P2p references

* Fix test

* test fix

* go faster stripes

* new project works better

* Re-add debug assert for sourcefiles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants