-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 to and update TS external access to avoid AbstractProject #49085
Conversation
cc: @jasonmalinowski |
src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioProjectFactory.cs
Show resolved
Hide resolved
...ualStudio/Core/Def/ExternalAccess/VSTypeScript/Api/VSTypeScriptVisualStudioProjectWrapper.cs
Outdated
Show resolved
Hide resolved
...isualStudio/Core/Def/ExternalAccess/VSTypeScript/Api/VSTypeScriptContainedLanguageWrapper.cs
Outdated
Show resolved
Hide resolved
...isualStudio/Core/Def/ExternalAccess/VSTypeScript/Api/VSTypeScriptContainedDocumentWrapper.cs
Show resolved
Hide resolved
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.
Code changes are good but would still like the two questions about VSTypeScriptContainedDocument answered if possible.
...ualStudio/Core/Def/ExternalAccess/VSTypeScript/Api/VSTypeScriptVisualStudioProjectWrapper.cs
Show resolved
Hide resolved
|
||
private sealed class VirtualDocumentPropertiesService : DocumentPropertiesService | ||
{ | ||
private const string _lspClientName = "TypeScript"; |
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.
Is your use of LspClientName here new?
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.
Yes, it is. This is to keep documents that correspond to script block contents (i.e. "virtual documents") from having their diagnostics published to the error list table control in a manner other than through the lsp publish diagnostics notifications, as Razor does with their generated .cs files.
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.
Alright just going to tag @CyrusNajmabadi and @dibarbet so they know that's happening and it's not just Razor using this mechanism anymore.
...isualStudio/Core/Def/ExternalAccess/VSTypeScript/Api/VSTypeScriptContainedDocumentWrapper.cs
Show resolved
Hide resolved
Windows_Desktop_Release_64 queue failed due to #49275. |
Hello @jasonmalinowski! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
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.
Auto-approval
In https://dev.azure.com/devdiv/DevDiv/_git/TypeScript-VS/pullrequest/282633, I'm working to remove TS's usage of
AbstractProject
. Here, we add the necessary external access APIs for this migration.