-
Notifications
You must be signed in to change notification settings - Fork 805
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
Remove FSharp.Editor dependency on FSharp.Language Service redux #4132
Remove FSharp.Editor dependency on FSharp.Language Service redux #4132
Conversation
…harp.LanguageService
… all other pieces
This is no longer WIP. I installed this PR into my F# tools and used it for a few days, and noticed that #4137 was occurring, but after @dwed confirmed that he also saw that long before this PR was ever created, I don't think that assertion is related. This is not critical for 15.6, but I think it's definitely worth getting in for 15.7. |
The first version did have an issue where the language service wasn't being initialized in .NET Framework projects (which CI didn't catch, heh). I fixed it here. |
@cartermp OK, great :) |
@dotnet-bot test this please. |
@cartermp After this PR the FSharp.ProjectSystem (old project system) still contains this reference:
Is this intended, e.g. is there going to be multiple copies of state in FSharp.LanguageService.dll and FSharp.Editor.dll? |
@dsyme I could take a look at pulling out that ref today. I intended only to cut ties with FSharp.LanguageService from FSharp.Editor, but if we can completely orphan it save for unit tests then that's preferrable |
Definitely. And if we can't I fear a bug :) |
So removing that reference is fine, but I did notice that #4376 shows up if I build a VSIX of the latest master into 15.6 preview 5. I haven't done itfor some time, so I have no idea if it's this or not. |
Confirmed that this PR does not cause #4376 |
…net#4132) * Move ProjectSitesAndFiles to FSharp.Editor * Remove weird stuff and add the VSLang proj reference like it is in FSharp.LanguageService * Remove dependency on FSharp.LanguageService * Whoopsie on that legacy project system * Update project system tests * Update tests * Weird comment removal * Remove FSharp.Editor dependency on FSharp.Language service and update all other pieces
Rebase with reverted commits sucks.
This PR:
ProjectSitesAndFiles
into FSharp.EditorProjectSitesAndFiles
codeTested:
There is still a possible need for an integration test which verifies that when the old project system loads a project, the language service is successfully initialized. This apparently doesn't exist in our test suite, hence #4108 ultimately failing due to lacking the correct changes to calls in the legacy project system.