-
Notifications
You must be signed in to change notification settings - Fork 38.2k
Closed
Labels
insiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code InsidersjavascriptJavaScript support issuesJavaScript support issuestypescriptTypescript support issuesTypescript support issues
Milestone
Description
- VSCode Version: 1.48.2
- OS Version: macOS 10.15.5
The TS LSP has a special deny list for specific schemes but it does not contain schemes for custom SCM providers, such as the hg extension or private extensions.
- If the SCM provider does use their own scheme and keeps the file extension (e.g. .ts), the user will see errors reported in those virtual files but receive regex based syntax highlighting in the two-pane diff view.
- If the SCM provider does use their own scheme and removes the file extension (e.g. adds .hg), all LSP and syntax highlighting functionality will disappear for the SCM files (no regex based syntax highlighting).
Steps to Reproduce:
- Create an hg repository (e.g.
yo codeandhg init) - Create and open a TS file in the repository which imports other files, observe errors
Possible Solutions:
- Denote in LSP that these files are specific to SCM or virtual files. Even better, don't send them to the LSPs, they're an implementation detail from SCM providers. LSPs cannot scale to support all possible virtual file schemes.
- Add an API/user setting to customize these lists globally (possibly for all LSPs)
Does this issue occur when all extensions are disabled?: No
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
insiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code InsidersjavascriptJavaScript support issuesJavaScript support issuestypescriptTypescript support issuesTypescript support issues