Skip to content

Enhance LSP client to support configuring language ID and add support for Typescript React#9238

Open
matthiasblaesing wants to merge 2 commits intoapache:masterfrom
matthiasblaesing:lsp-languageid-resolver
Open

Enhance LSP client to support configuring language ID and add support for Typescript React#9238
matthiasblaesing wants to merge 2 commits intoapache:masterfrom
matthiasblaesing:lsp-languageid-resolver

Conversation

@matthiasblaesing
Copy link
Contributor

In contrast to NetBeans LSP servers don't use the mimetype of the file to determine their support or the variant to use for the file.

One such example is the typescript LSP server, that offers support for:

  • JavaScript (javascript)
  • JavaScript with support for the react variant (javascriptreact)
  • TypeScript (typescript)
  • TypeScript with the support for the react variant (typescriptreact)

the client has to provide the correct language id or it uses the default (typescript).

This changeset adds the option to configure the language id to use for generic LSP support and it updates the typescript LSP integration to support both typescript (for .ts files) and typescriptreact (for .tsx files). The typescript enhancement allows for code completion inside TSX elements.

@matthiasblaesing matthiasblaesing added this to the NB30 milestone Feb 28, 2026
@matthiasblaesing matthiasblaesing added LSP [ci] enable Language Server Protocol tests TypeScript [ci] enable web job ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) labels Feb 28, 2026
@matthiasblaesing
Copy link
Contributor Author

@lahodaj would you please have a look at the implementation/the new API added to support mapping language ids?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) LSP [ci] enable Language Server Protocol tests TypeScript [ci] enable web job

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant