Skip to content
This repository has been archived by the owner on Oct 31, 2021. It is now read-only.

DepthTagger retrieves project checker options from ProjectProvider instead of getting it from FSharpChecker #1177

Conversation

vasily-kirichenko
Copy link
Contributor

No description provided.

@vasily-kirichenko
Copy link
Contributor Author

Also I revern QuickInfoMargin delay to 200 ms since I don't think it has anything with VFPT performance and 1000 ms is too long, it's refreshed with annoying latency.

let dte = serviceProvider.GetService<EnvDTE.DTE, SDTE>()
let! doc = dte.GetCurrentDocument doc.FilePath
let! project = projectFactory.CreateForDocument buffer doc
let! opts = languageService.GetProjectCheckerOptions project |> liftAsync
Copy link
Contributor

Choose a reason for hiding this comment

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

Are the results of this saved? Or are you recomputing the options on each change of the document? Just checking.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, ProjectFactory is actually a cache of project options. This is what we use in all other features.

@dungpa
Copy link
Contributor

dungpa commented Oct 16, 2015

I think similar refactoring should be done for XmlDocParser as well.

@vasily-kirichenko
Copy link
Contributor Author

all done, thanks

vasily-kirichenko added a commit that referenced this pull request Oct 17, 2015
…-get-opts

DepthTagger retrieves project checker options from ProjectProvider instead of getting it from FSharpChecker
@vasily-kirichenko vasily-kirichenko merged commit ec7b035 into fsprojects-archive:master Oct 17, 2015
@vasily-kirichenko vasily-kirichenko deleted the optimize-depth-tagger-get-opts branch November 1, 2015 16:59
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants