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

Add VS Code extension #137

Merged
merged 88 commits into from
Sep 24, 2024
Merged

Add VS Code extension #137

merged 88 commits into from
Sep 24, 2024

Conversation

mhutch
Copy link
Owner

@mhutch mhutch commented Feb 1, 2024

No description provided.

@mhutch mhutch force-pushed the vscode-extension branch 3 times, most recently from 1eed0d3 to 4288ce4 Compare May 8, 2024 01:56
The VS extension project has targets that call several tools
that only work on Windows. Disable those targets specifically
so that the full solution build works on non-Windows platforms.
It will not produce the VSIX but we can at least verify that
the VS extension project compiles after making changes in
shared projects it depends on.
Some of the LSP code depends on Roslyn workspaces etc.
but importing these as source got messy fast due to the
web of dependencies. Instead, import them as package
references and hope we don't run into any issues with
lack of internals visibility.
Diagnostic titles do not have substituted values, only
messages do
The parser service only handles parsing open files. When parsing
other files, we should use the same state machine instance.
Thsi provides a hint that package search is available
* Unified CodeFixes and Refactorings into CodeActions layer,
  with a simple Kinds model that maps to VS and LSP
* Added LSP-like model for edits returned by code actions
* Add basic Roslyn-like options model
* Replace per-buffer Roslyn SpellChecker with direct use of
  WordSimilarityChecker, like Roslyn's own spelling fix action
* MSBuildRootDocument.Diagnostics is now expected to contain
  analyzer diagnostics as well as core diagnostics
Fixes #246 - TaskMetadataBuilder causing infinite loop by overlapping
reads/writes to a dictionary
Fixes #248 - Infinite CPU due to unprotected write to a HashSet<T>
At least partially addresses #236 - Performance made me disable the extension
Fixes #242 Package Reference TreatAsUsed is not recognized
Fixes #243 Item types defined via OutputItemType on ProjectReference
are reported as not having a value assigned
Fixes #246 Assertion Failed when typing an & in (some) attributes
The way TaskMetadataBuilder loads info from assemblies is super hacky
but it'll do for now.

The original intent of using Roslyn was that it could load live metadata
for tasks that were open as source code in the host. That worked in VSMac
but has never worked in VSWin.

For the cases where we're loading tasks from assemblies we'd probably
be better off using System.Reflection.Metadata or something.

We also need to load the reference assemblies for the BCL in order to
find the docs XML, and bundle the Microsoft.Build.dll xml docs files.
@mhutch mhutch changed the title [WIP] VS Code extension Add VS Code extension Sep 24, 2024
@mhutch mhutch marked this pull request as ready for review September 24, 2024 04:53
@mhutch mhutch merged commit 21c59a6 into main Sep 24, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant