-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Add restore support to the language server #70588
Conversation
...soft.CodeAnalysis.LanguageServer/LanguageServer/Handler/Restore/RestorableProjectsHandler.cs
Outdated
Show resolved
Hide resolved
...erver/Microsoft.CodeAnalysis.LanguageServer/LanguageServer/Handler/Restore/RestoreHandler.cs
Outdated
Show resolved
Hide resolved
|
||
[DataContract] | ||
internal record RestorePartialResult( | ||
[property: DataMember(Name = "stage")] string Stage, |
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.
what does 'stage' mean here?
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.
Stage indicates what overall step is happening. This value is shown in the progress bar (whereas the messages are only shown in the output window)
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.
i see. can you doc. It wasn't clear. Looking at the PR it makes more sense now. It allows the messages to be bucketed together right? So you can tell which project these are associated with?
...Microsoft.CodeAnalysis.LanguageServer/LanguageServer/Handler/Restore/RestorePartialResult.cs
Outdated
Show resolved
Hide resolved
...Server/Microsoft.CodeAnalysis.LanguageServer/LanguageServer/Handler/Restore/RestoreParams.cs
Outdated
Show resolved
Hide resolved
...erver/Microsoft.CodeAnalysis.LanguageServer/LanguageServer/Handler/Restore/RestoreHandler.cs
Outdated
Show resolved
Hide resolved
...soft.CodeAnalysis.LanguageServer/LanguageServer/Handler/Restore/RestorableProjectsHandler.cs
Outdated
Show resolved
Hide resolved
...soft.CodeAnalysis.LanguageServer/LanguageServer/Handler/Restore/RestorableProjectsHandler.cs
Outdated
Show resolved
Hide resolved
...soft.CodeAnalysis.LanguageServer/LanguageServer/Handler/Restore/RestorableProjectsHandler.cs
Show resolved
Hide resolved
...soft.CodeAnalysis.LanguageServer/LanguageServer/Handler/Restore/RestorableProjectsHandler.cs
Show resolved
Hide resolved
...soft.CodeAnalysis.LanguageServer/LanguageServer/Handler/Restore/RestorableProjectsHandler.cs
Show resolved
Hide resolved
...soft.CodeAnalysis.LanguageServer/LanguageServer/Handler/Restore/RestorableProjectsHandler.cs
Show resolved
Hide resolved
...erver/Microsoft.CodeAnalysis.LanguageServer/LanguageServer/Handler/Restore/RestoreHandler.cs
Show resolved
Hide resolved
...erver/Microsoft.CodeAnalysis.LanguageServer/LanguageServer/Handler/Restore/RestoreHandler.cs
Show resolved
Hide resolved
...erver/Microsoft.CodeAnalysis.LanguageServer/LanguageServer/Handler/Restore/RestoreHandler.cs
Show resolved
Hide resolved
|
||
if (process.ExitCode != 0) | ||
{ | ||
throw new InvalidOperationException(LanguageServerResources.Failed_to_run_restore_see_output_for_details); |
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.
Should this also get reported through the other progress reporter, since I'd assume failure to restore is mostly a user problem?
// No file paths were specified - this means we should restore all projects in the solution. | ||
// If there is a valid solution path, use that as the restore path. | ||
if (solution.FilePath != null) |
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 doesn't need a change now, but we should still think about what happens if the user has a solution file and also has load on demand enabled, since this wouldn't cover the load-on-demand projects.
First part of dotnet/vscode-csharp#5725
Adds support on the server side for
Followups
Client side PR - dotnet/vscode-csharp#6603