Skip to content

How to configure embeded typescript-language-server? #1936

Open

Description

@GB609

I'm plagued by the diagnostic message File is a CommonJS module; it may be converted to an ES module. [80001].

I know it's coming from tsserver itself and passes through the internal handler typescript-language-server somehow.
I can configure tsserver itself by placing a file at the right location, but that only allows to fully disable all diagnostics, which is not helpful at all.
I know the typescript-language-server allows to configure ignores on a more granular level, as documented here.

But i can't for the life of me find out just HOW i get to pass the needed config values through eclipse. And the web developers settings pages for language server configurations are pretty lacking in that department, if existing at all.

Do i really have to define an external language server launch configuration, just to somehow get some options changed? Or is there some kind of well-known file for the typescript-language-server that is magically detected and read when in the workspace/project root?

Activity

  1. mickaelistria commented on Oct 14, 2025

    @mickaelistria
    Contributor

    There is currently no way to configure the particular options of embedded typescript-language-server beyond what Preferences already offer. See https://github.com/eclipse-wildwebdeveloper/wildwebdeveloper/blob/master/org.eclipse.wildwebdeveloper/src/org/eclipse/wildwebdeveloper/jsts/JSTSLanguageServer.java#L112

    The best approach would be that you add to the preferences the necessary UI to set ignoredCodes

  2. GB609 commented on Oct 14, 2025

    @GB609
    Author

    Thanks for the quick response. At least it's confirmed now.
    I'm not sure if i manage to contribute that anytime soon. If i happen to get the time, i might have a go at it.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions