Questions tagged [tsserver]

20 questions
5
votes
1 answer

What causes neovim ram problem with typescript?

I've been using lunarvim to programming in typescript, so, i'm using tsserver + prettier + eslint... I have 12GB ram. (Intel i5 10210u) SSD With brave, discord and lunarvim opened, my ram monitor show about 45%-60% of usage. At sometime, my ram…
5
votes
0 answers

VSCode: typescript/intellisense not responding to an auto-generated files

I have a problem with vscode: if a file is changed externally (not by a vscode), intellisense/typechecking is not responding immediately to a change. Sometimes it works after few seconds, sometimes not - I need to open changed file in vscode or run…
cimak
  • 1,765
  • 3
  • 15
  • 18
5
votes
1 answer

Is there a way to show Visual Code (tsserver) suggestions like TS80007 with tsc command (or other)?

Visual Code (tsserver) emits some suggestions like 'await' has no effect on the type of this expression ts(80007) But I don't find a way to get this error with tsc nor eslint to use it on CI environment
TlmaK0
  • 3,578
  • 2
  • 31
  • 51
5
votes
1 answer

How can I make my VS Code extension provide suggestions and syntax-highlighting for non-JS code in ES6 tagged template literal strings?

I’m working on a GraphQL extension for Visual Studio Code that implements syntax highlighting and auto-completion for GraphQL schemas and queries. It currently works on files ending with the .gql extension. However, a common GraphQL usage is to…
mquandalle
  • 2,600
  • 20
  • 24
4
votes
0 answers

Neovim LSP: language servers not found

I'm trying to set up neovim's new LSP. Following the manual I downloaded the plugin lspconfig, the pyright and typescript language servers, and sourced the setups in my init.vim, like so: local nvim_lsp =…
barmanthewise
  • 359
  • 4
  • 10
1
vote
0 answers

How to disable `no implicit any` notification with tsserver?

Here is sample typescript code: function test(v) { console.log("Test: ", v); } test(123) With the next tsconfig.json { "compilerOptions": { "strict": true }, } I got next diagnostic error: 7006 Parameter 'v' implicitly has an…
Dmitry
  • 1,426
  • 5
  • 11
1
vote
0 answers

In LSP tsserver.json add html autocompletion using Neovim (Lunar Vim specifically)?

Issue: I install tsserver using Lsp in Neovim, more precisely using Lunar Vim, and I was editing a .jsx file when I try to use html tags in the file, and I saw that there was not completion for the basic html tags such as div, h1, button, and so…
Emmanuel
  • 11
  • 1
1
vote
1 answer

How to type a JavaScript function with JSDoc + TypeScript?

I'm trying to use tsc with plain, Vanilla JS and I'm stumped on how to declare the type a function. It seems like it should be this simple: /** @type PersonGreet */ person.greet = function greet(other) { return `Hello ${other.name}, my name is…
coolaj86
  • 74,004
  • 20
  • 105
  • 125
1
vote
1 answer

Restarting tsserver when node_modules changes, ie; when using npm link

When working on an npm package it's convenient to use npm link for local development. Preamble For example, assuming the following folder structure: /lib /consumer An npm package "lib" would be in /lib, and npm link . makes it available for…
shuckster
  • 5,279
  • 2
  • 23
  • 22
1
vote
2 answers

What's the difference between tsserver and eslint as a linter?

I'm currently setting up my Neovim's Native LSP working environment, and I have a question about JS/TS linter. What is the difference between tsserver and eslint as a linter? I know that tsserver is a language-server that comprehensively supports…
0
votes
0 answers

Error upon starting tsserver on viual studio on windows

When starting tsserver vs code fails although it picks up the right version. 2023-08-25 16:18:16.644 [info] Starting TS Server undefined 2023-08-25 16:18:16.644 [info] Using tsserver from:…
Stratos Ion
  • 504
  • 3
  • 18
0
votes
0 answers

How can I convince TSServer that I'm using lodash/fp instead of lodash?

I use lodash/fp in a personal project, and use Vim to edit and debug that code. To have diagnostics and type information, I use YouCompleteMe, which for JavaScript makes use of the TSServer engine. Currently, though, several type errors are…
Enlico
  • 23,259
  • 6
  • 48
  • 102
0
votes
0 answers

How can I debug coc-tsserver to figure out why it can't find a definition?

I couldn't craft a tsconfig.json file that works with the aliases I have defined for both Parcel on package.json and storybook on .storybook/main.js. How can I debug coc.nvim using coc-tsserver to understand how tsserver is resolving dependencies? I…
Filipe Giusti
  • 2,923
  • 3
  • 24
  • 18
0
votes
1 answer

How to tell TS Server like all JS codes are in a single file?

I use clasp and VS Code to develop app which runs as Google Apps Script. In Google Apps Script every codes work as if they are written in a single file so the following results error. a.js const foo = "foo"; b.js const foo = "bar"; It is virtually…
Takuya HARA
  • 499
  • 1
  • 3
  • 17
0
votes
0 answers

Could not find a declaration file for module 'fractional'

I'm learning JavaScript (not Node.js and not React.js, just plain JavaScript). Working on a simple project, everything is working but I'm getting a warning from tsserver Here is the contents of my package.json file It looks like I need to add a…
flashburn
  • 4,180
  • 7
  • 54
  • 109
1
2