-
Notifications
You must be signed in to change notification settings - Fork 156
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
Fix Tests for AdaptiveLspServer #1053
Conversation
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.
Some initial feedback before I forget it.
fed4f3e
to
c533543
Compare
c533543
to
515c95a
Compare
515c95a
to
4e9465a
Compare
That looks really amazing :-) |
Incorporated from [fix](https://github.com/fsharp/FsAutoComplete/pull/1053/files#diff-febb2875fef94d7a7c78c5c23943057bc820a1f6b672f7357aee2502b51806e0R1004-R1013) in ionide#1053 (see ionide#1037 (comment)) Co-authored-by: Jimmy Byrd <[email protected]>
Incorporated from [fix](https://github.com/fsharp/FsAutoComplete/pull/1053/files#diff-febb2875fef94d7a7c78c5c23943057bc820a1f6b672f7357aee2502b51806e0R1004-R1013) in ionide#1053 (see ionide#1037 (comment)) Co-authored-by: Jimmy Byrd <[email protected]>
ffe7026
to
dc22290
Compare
c03ed95
to
924d341
Compare
for file in System.IO.Directory.EnumerateFiles(path, "*.fsproj", SearchOption.AllDirectories) do | ||
do! file |> Path.GetDirectoryName |> dotnetRestore |
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.
We weren't doing restore properly for anything that contained subfolders with fsprojs
net 7 windows has problems running tests, hope this helps diagnose it
7c1e2ee
to
37939ba
Compare
fun toolsPath -> | ||
if projectGraphEnabled then | ||
Ionide.ProjInfo.WorkspaceLoaderViaProjectGraph.Create(toolsPath, ProjectLoader.globalProperties) | ||
else | ||
Ionide.ProjInfo.WorkspaceLoader.Create(toolsPath, ProjectLoader.globalProperties) |
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.
You mentioned elsewhere about passing in 'other CLI properties' to proj-info - what were you thinking about?
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.
Wonder if it's worth having a --msbuild-global-properties
CLI flag for FSAC that you could do like MSBuildProperty=Foobar,AnotherProperty=false
and pass to proj-info it's not a hardcoded list. More escape hatch kind of stuff if msbuild related stuff changes we don't have to release a fix right away if an sdk change or whatever breaks FSAC.
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.
ohhhhh, I see. That would be a nice addition, but to me it almost speaks to a problem in proj-info instead - we need to be able to change the global properties during runtime and re-trigger evaluation based on that. Classic example is how we hard-code Debug right now. So instead of a CLI flag I think I'd prefer a config setting in Ionide that would map to a JSON-RPC call to set specific global properties for a project, which would flow into proj-info as required. This is a bit bigger of a problem space, though.
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.
Great work :) happy to merge this, it's a huge confidence-boost for the adaptive server!
Notable changes: