Skip to content
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

Merged
merged 10 commits into from
Apr 29, 2023
Merged

Partial Vb.NET support #19

merged 10 commits into from
Apr 29, 2023

Conversation

ElektroStudios
Copy link
Contributor

No description provided.

@mrlacey
Copy link
Owner

mrlacey commented Apr 26, 2023

I've got the basics working

image

However, all the code style changes make reviewing what's changed much harder. :/

@@ -48,7 +48,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.SDK">
<Version>17.2.32505.173</Version>
<Version>17.5.33428.388</Version>
Copy link
Owner

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;
Copy link
Owner

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?

@mrlacey mrlacey merged commit eacefbf into mrlacey:main Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants