Skip to content

[BUG]: ts_ls doesn't receive the ES2024 target #2038

@AceCodePt

Description

@AceCodePt

I've searched open issues for similar requests

  • Yes

I've recently downloaded the latest plugin version of mason.nvim

  • Yes

Problem description

Currently running the following code:

const {} = Promise.withResolvers()

Show an error:

Property 'withResolvers' does not exist on type 'PromiseConstructor'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2024' or later.

This is my lspInfo:
vim.lsp: Active Clients ~

  • ts_ls (id: 14)
    • Version: ? (no serverInfo.version response)
    • Root directory: ~/.local/share/nvim/mason/packages/typescript-language-server
    • Command: { "typescript-language-server", "--stdio" }
    • Settings: {
      ["js/ts"] = {
      implicitProjectConfig = {
      target = "ES2024"
      }
      },
      typescript = {
      target = "ES2024"
      }
      }
    • Attached buffers:

Expected behavior

It should just work since the default lsp config target is ES2024 for implicit projects.

Steps to reproduce

  1. Create a check.ts file
  2. Write the following:
const {} = Promise.withResolvers()
  1. The lsp should notify on an error

Note: This is without ts config

Neovim version (>= 0.10.0)

NVIM v0.11.4
Build type: RelWithDebInfo
LuaJIT 2.1.1761623958
Run "nvim -V1 -v" for more info

Operating system/version

Linux omarchy 6.17.5-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 23 Oct 2025 18:49:03 +0000 x86_64 GNU/Linux

Healthcheck output

==============================================================================
mason:                                                                    6 ⚠️

mason.nvim ~
- ✅ OK mason.nvim version v2.1.0
- ✅ OK PATH: prepend
- ✅ OK Providers: 
    mason.providers.registry-api
    mason.providers.client
- ✅ OK neovim version >= 0.10.0

mason.nvim [Registries] ~
- ✅ OK Registry `github.com/mason-org/mason-registry version: 2025-11-23-tan-stone` is installed.

mason.nvim [Core utils] ~
- ✅ OK unzip: `UnZip 6.00 of 20 April 2009, by Info-ZIP.  Maintained by C. Spieler.  Send`
- ⚠️ WARNING wget: not available
  - ADVICE:
    - spawn: wget failed with exit code - and signal -. Could not find executable "wget" in PATH.

- ✅ OK curl: `curl 8.16.0 (x86_64-pc-linux-gnu) libcurl/8.16.0 OpenSSL/3.6.0 zlib/1.3.1 brotli/1.1.0 zstd/1.5.7 libidn2/2.3.7 libpsl/0.21.5 libssh2/1.11.1 nghttp2/1.68.0 nghttp3/1.12.0`
- ✅ OK gzip: `gzip 1.14-modified`
- ✅ OK tar: `tar (GNU tar) 1.35`
- ✅ OK bash: `GNU bash, version 5.3.3(1)-release (x86_64-pc-linux-gnu)`
- ✅ OK sh: `Ok`

mason.nvim [Languages] ~
- ⚠️ WARNING Ruby: not available
  - ADVICE:
    - spawn: ruby failed with exit code - and signal -. Could not find executable "ruby" in PATH.

- ⚠️ WARNING RubyGem: not available
  - ADVICE:
    - spawn: gem failed with exit code - and signal -. Could not find executable "gem" in PATH.

- ⚠️ WARNING Composer: not available
  - ADVICE:
    - spawn: composer failed with exit code - and signal -. Could not find executable "composer" in PATH.

- ⚠️ WARNING PHP: not available
  - ADVICE:
    - spawn: php failed with exit code - and signal -. Could not find executable "php" in PATH.

- ✅ OK cargo: `cargo 1.90.0 (840b83a10 2025-07-30) (Arch Linux rust 1:1.90.0-4)`
- ✅ OK Go: `go version go1.25.3 linux/amd64`
- ✅ OK node: `v22.20.0`
- ⚠️ WARNING julia: not available
  - ADVICE:
    - spawn: julia failed with exit code - and signal -. Could not find executable "julia" in PATH.

- ✅ OK luarocks: `/usr/bin/luarocks 3.12.2`
- ✅ OK python: `Python 3.14.0`
- ✅ OK java: `openjdk version "25.0.1" 2025-10-21`
- ✅ OK npm: `10.9.3`
- ✅ OK javac: `javac 25.0.1`
- ✅ OK pip: `pip 25.2 from /home/sagi/.local/share/mise/installs/python/3.14.0/lib/python3.14/site-packages/pip (python 3.14)`
- ✅ OK python venv: `Ok`

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions