-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Partial Vb.NET support #19
Conversation
so don't get weird inconsistency bugs
I noticed it while here so chose to fix that too.
@@ -48,7 +48,7 @@ | |||
</ItemGroup> | |||
<ItemGroup> | |||
<PackageReference Include="Microsoft.VisualStudio.SDK"> | |||
<Version>17.2.32505.173</Version> | |||
<Version>17.5.33428.388</Version> |
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.
Was there a need to increase the target SDK?
try | ||
{ | ||
// Some document types (inc. .csproj) throw an error when try and get the ActiveDocument | ||
// "The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))" | ||
return await Task.FromResult(dte?.ActiveDocument); | ||
EnvDTE.Document doc = await Task.FromResult(dte?.ActiveDocument); | ||
return doc != null && (doc.Language == "CSharp" || doc.Language == "Basic") ? doc : 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.
Why is this language check needed?
How do you even get this code to execute to this line if not in a supported language?
No description provided.