AvaloniaUI / AvaloniaVSCode

Visual Studio Code Extension for Avalonia UI
https://marketplace.visualstudio.com/items?itemName=AvaloniaTeam.vscode-avalonia
MIT License
103 stars 18 forks source link

Extension trying to read non-existant csharp.json #93

Closed Mrcubix closed 10 months ago

Mrcubix commented 10 months ago

Describe the bug

While investigating for bugs in the new version of the extension i have noticed the following errors in the console when an axaml file is opened:

image

This message get spammed further after a non-related warning form another extension.

To Reproduce

  1. Open VSCode
  2. Make sure VSCode is updated
  3. Make sure the extension is updated
  4. Make sure the project is updated to the latest version of Avalonia & .NET available
  5. Open one or multiple axaml files
  6. Errors occur

Avalonia for VS Code

v0.0.27

Avalonia version

11.0.4 - 11.0.7

VS Code version

1.85.2

Relevant log output

Error: Unable to read file 'c:\Users\tinta\.vscode\extensions\avaloniateam.vscode-avalonia-0.0.27\src\snippets\csharp.json' (Error: Unable to resolve nonexistent file 'c:\Users\tinta\.vscode\extensions\avaloniateam.vscode-avalonia-0.0.27\src\snippets\csharp.json')
    at n.F (fileService.ts:631:10)
    at n.D (fileService.ts:616:15)
    at async n.C (fileService.ts:520:18)
    at async v.readExtensionResource (extensionResourceLoaderService.ts:36:18) file:///c%3A/Users/tinta/.vscode/extensions/avaloniateam.vscode-avalonia-0.0.27/src/snippets/csharp.json

Additional context

No response