-
Notifications
You must be signed in to change notification settings - Fork 6
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
Issue with using namespace where name is X.Y.Z.Windows #599
Comments
Moving to "area-roslyn" as this involves live diagnostics. |
@zeekbrown Can you share a screenshot? It might make sure we're on the same page of the repro here, but also I'm curious if you're seeing other types or members in the file as having the correct colors and things like that. |
These are the only lines with incorrect colors / warnings in the file. The screen shot is three separate images stitched together so you can see all warnings / color issues easier. When this was a single .razor file everything worked fine. I've moved the code block into a code behind razor.cs file and now have this issue. |
@zeekbrown Is that all stitched together from a single file? Or different files? |
All screen shots were from the same file. It was too many lines to show easily so I took screen shots of the problem lines from within the file and stitched them together into a single screen shot. |
This issue has been marked as stale after 14 days of inactivity. @[ @jasonmalinowski @], could you please take a look? |
Type: Bug
In a partial class CustomComponent : ComponentBase, a namespace is being reported as unessary (IDE0005: using directive is unnecessary). The namespace is "App1.Features.Home.Windows" and using a class from the namespace works when compiling/running the app; but VSCode reports it as an issue.
Nesting the namespace one level deeper, resolves the issue so App1.Features.Home.Windows => App1.Features.Home.Windows.Test. Visual Studio does not have the same issue if the project is opened there instead of VSCode.
Extension version: 0.5.150
VS Code version: Code 1.83.0 (e7e037083ff4455cf320e344325dacb480062c3c, 2023-10-03T16:12:16.321Z)
OS version: Windows_NT x64 10.0.19044
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: