`vscode-html-language-server` fails to start on Windows (missing `.cmd` suffix)

-- js/typescript
require'lspconfig'.tsserver.setup{
    cmd = { "typescript-language-server.cmd", "--stdio" },
    capabilities = capabilities,
    filetypes = { "javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx" }
}

is this correct? i cant get it working…

You need to start being more specific. Can’t get it working means nothing, what does not working mean? Does the language server not start? Is there an error?

no error occur. i start typing function with func first but there is no snippet… idk y i will dig deep

is it the snippet that is not working, or is it auto-completion (in general) that is not working? Do any completion candidates show? If so, it’s an issue with whatever snippet you were expecting, and you may need to manually add the snippet you want to your plugin.

Error

cmd ["typescript-language-server"] is not executable.
cmd ["typescript-language-server"] is not executable.
Press ENTER or type command to continue

My config:

-- tsserver
require'lspconfig'.tsserver.setup{
    cmd = { "typescript-language-server", "--stdio" },
    filetypes = { "javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx" },
    init_options = {
      hostInfo = "neovim",
    },
    capabilities = capabilities,
}

Same thing, postfix with cmd…

still the same…

cmd ["typescript-language-server.cmd"] is not executable.
cmd ["typescript-language-server.cmd"] is not executable.

btw, how can i add colors like bright red to my error?

How can i solve this? the prob is still here