Skip to content

[ide] typespec extension lsp stop working after using code complete in tspconfig.yaml in azure repo #8553

@RodgeFu

Description

@RodgeFu

Repro:

  1. have some tsp file and make sure typespec extension lsp is working
  2. open tspconfig.yaml in azure repo like: https://github.com/Azure/azure-rest-api-specs/blob/9023bca16348d71c716cc9bfd2ef5392a5ec8d50/specification/oracle/Oracle.Database.Management/tspconfig.yaml#L57
  3. try to use complete to show something i.e. for linter
  4. you can see many error starts to pop up for the lsp events like below:
Image

When preparing the information for completion in tspconfig.yaml, we will need to load the packages from package.json to check whether it's something needed for tspconfig.yaml. I guess some of the packages used in azure repo's package.json does something break the lsp somehow. Further investigation needed there.

Metadata

Metadata

Assignees

Labels

ideIssues for VS, VSCode, Monaco, etc.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions