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

Intellisense doesn't provide any options #1255

Open
rogersm-uwosh opened this issue Jun 30, 2024 · 6 comments
Open

Intellisense doesn't provide any options #1255

rogersm-uwosh opened this issue Jun 30, 2024 · 6 comments
Assignees
Labels
area-intellisense Issues specific to IntelliSense area-maui

Comments

@rogersm-uwosh
Copy link

rogersm-uwosh commented Jun 30, 2024

Type: Bug

  1. Create a new C# .NET Project (.NET MAUI)
  2. Open up MainPage.xaml
  3. Put the cursor next to Label and type the letter H
  4. All I see is the letter H - shouldn't I see Height, HeightRequeset, and other things that start with the letter H?

Note that when I did this, there were no other VSC projects open (I'd read that might've been an issue for others).

Oh, just to balance the bad with the good, compared to the problems I'd had previously with the VSC extension, this is 1000x better.

Extension version: 1.0.6
VS Code version: Code 1.90.2 (Universal) (5437499feb04f7a586f677b155b039bc2b3669eb, 2024-06-18T22:37:41.291Z)
OS version: Darwin arm64 23.4.0
Modes:

System Info
Item Value
CPUs Apple M1 Ultra (20 x 2400)
GPU Status 2d_canvas: enabled
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
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 20, 18, 10
Memory (System) 64.00GB (25.66GB free)
Process Argv --crash-reporter-id 6780184b-122e-438c-8cb4-03869c553b43
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
jchc7451:31067544
chatpanelt:31048053
dsvsc021:30996838
945dj816:31013170
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
legacy_priority:31082724

@rogersm-uwosh rogersm-uwosh changed the title Intellisense doesn't work Intellisense doesn't provide any options Jun 30, 2024
@BretJohnson BretJohnson added area-maui area-intellisense Issues specific to IntelliSense labels Jul 3, 2024
@emaf
Copy link
Member

emaf commented Jul 22, 2024

cc @mgoertz-msft

@mgoertz-msft
Copy link
Member

@rogersm-uwosh Do you get C# IntelliSense for .NET MAUI types? If not, then XAML IntelliSense won't work either because it is based on the same underlying Roslyn type symbols.

@mgoertz-msft mgoertz-msft self-assigned this Jul 22, 2024
@rogersm-uwosh
Copy link
Author

rogersm-uwosh commented Jul 26, 2024

I do get Intellisense on the .xaml.cs side with .NET MAUI types. But on the .xaml side I am seeing nothing.

I just made a new project, went into the <Image tag, started typing W, and got a choice of Welcome, World, and winfx, nothing about WidthRequest.

On the .xaml.cs side, I can see WidthRequest as soon as I write new Image().W

I must be the only person experiencing this, because it's as annoying as all get out, and I'd assume there would be howls of rage if it didn't work for the majority.

@mgoertz-msft
Copy link
Member

@rogersm-uwosh, I'm not sure what this refers to:

Extension version: 1.0.6

What versions of the following extensions do you have?

  • C# Extension
  • C# DevKit Extension
  • .NET MAUI Extension

You should make sure that you have the latest versions of all of them.

@rogersm-uwosh
Copy link
Author

rogersm-uwosh commented Jul 27, 2024 via email

@mgoertz-msft
Copy link
Member

Thanks @rogersm-uwosh, those are all current, so that's good. The next thing to check would be the Output pane to see if there are any errors or exceptions reported in the C# logs:

image

If there's nothing suspicious looking in there then the next thing to check would be the C# LSP Trace Logs (also in the Output pane) and look for anything related to xaml.

FYI: you can temporarily increase the logging verbosity to Trace to get more detailed information (look for dotnet.server settings):

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-intellisense Issues specific to IntelliSense area-maui
Projects
None yet
Development

No branches or pull requests

4 participants