-
Notifications
You must be signed in to change notification settings - Fork 803
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
[VS] Consolidate Roslyn workspace and FCS #11694
Conversation
…er and OptionsManager
…as we do not need them anymore.
@KevinRansom @dsyme This is ready when the tests pass. |
Wonderful, it's passing :) |
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 is great. The one thing is I'd like us please not to lose the userOpName
strings - propagate them through.
|
||
items.Add dataItem | ||
|
||
d.ForEach(f) |
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.
Stylistically I'd prefer d.ForEach(fun dataItem -> ...)
rather than using a local function. But that's unrelated to this PR
vsintegration/src/FSharp.Editor/CodeFix/AddMissingRecToMutuallyRecFunctions.fs
Show resolved
Hide resolved
vsintegration/src/FSharp.Editor/LanguageService/LanguageService.fs
Outdated
Show resolved
Hide resolved
@dsyme this is ready again. |
) = | ||
inherit CodeFixProvider() | ||
let fixableDiagnosticIds = ["FS0053"] | ||
static let userOpName = "ProposeUpperCaseLabel" |
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.
Still some userOpName being dropped but I'll approve this as is
asyncMaybe { | ||
let! sourceText = document.GetTextAsync() |> liftTaskAsync | ||
let filePath = document.FilePath | ||
let! symbol = document.TryFindFSharpLexerSymbolAsync(position, SymbolLookupKind.Greedy, false, false, nameof(FSharpDocumentHighlightsService.GetDocumentHighlights)) |
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.
Stylistically I think I prefer binding userOpName
at the top of the scope like before but it's no big deal.
[VS] Consolidate Roslyn workspace and FCS
This is a refactoring PR for the most part.
I've been testing out the in-memory documents PR and it's a little unstable. We need the ability to unit test VS behavior reliably.
Currently, our VS tests do not even use
FSharpProjectOptionsManager
which I think it should as it plays an large role for VS (in the future, we may be able to get rid of it, but not now).So, this PR is to consolidate Rolsyn workspaces and FCS into one place called
WorkspaceExtensions
.