Skip to content

[Bug]: VSCode language service incorrectly reports error with @tagMetadata #5933

@pschaeflein

Description

@pschaeflein

Describe the bug

Below is a screenshot of VSCode. The Problems panel reports that @tagMetadata must be used on the service namespace. This is incorrect.

Image

The OpenAPI emitter correctly includes the metadata.
Running tsp compile does not show errors.

The VSCode extension is version 0.64.1.

The errors show in the Problems panel only when the file containing the decorator is opened.
The errors also show in the terminal window for when running the auto-discovered task (From the "contributed" section of the VSCode command bar.)
The order of the tags does not matter (tagMetadata/service).

Related discussion: #3777 (comment)

Reproduction

Bug is in VSCode extension, not playground.

Checklist

Metadata

Metadata

Labels

bugSomething isn't workingideIssues for VS, VSCode, Monaco, etc.

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions