As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [filetype-typescript]

Questions about the typescript file type.

Filter by
Sorted by
Tagged with
0 votes
0 answers

How can I copy the contents of an error message in NeoVim

I'm using TSServer with LSPConfig to provide in-line typechecking with NeoVIM. Is there a way for me to grab the value of a given type error message? Especially to my system clipboard?
akavi's user avatar
  • 1
0 votes
0 answers

How do I organize imports with `tsserver` using Neovim LSP?

I'm using Neovim 0.9 and lsp-zero to edit Typescript files. tsserver has an organize imports feature. How do I map that back through LSP to a user-defined key? Basically, I'd like to add a new ...
Sasgorilla's user avatar
0 votes
2 answers

Getting syntax file to load for typescriptreact files

I am very likely missing something very obvious, for I am very new to the vim world. The effect I intended to achieve was to mimic the Inline Fold extension for vscode using vim's Conceal. In short, I'...
Zynh Ludwig's user avatar
0 votes
0 answers

Typescript import type modifier syntax highlighing is not working

Typescript 4.5 introduced import type modifiers. So we can do import { someFunc, type BaseType } from "./some-module.js"; export class Thing implements BaseType { someMethod() { ...
karizma's user avatar
  • 101
0 votes
1 answer

TypeScript: is it possible to see errors not in one line?

Now I have this: Sometimes errors are big, and in order to see them clearly - I run tsc to see this: Also, is it possible to see a type name, but not a fields enumeration? I use ALE and tsuquyomi.
Vitaly Zdanevich's user avatar
4 votes
0 answers

Cannot set g:ale_fixers in ALE config on vim

I'm trying to config ALE in my vim and can't config the fixers, them aren't showing on ALEInfo. I'm setting the config for typescript files (with and without react) with prettier and eslint. What i'm ...
Wallace Coelho's user avatar
2 votes
0 answers

TypeScript: ale vs tsuquyomi?

Ale and tsuquyomi both seem to be Vim Language Servers that can interface with tsserver. Because ale supports multiple languages, is there any reason to use tsuquyomi moving forward? I'm an old time ...
Evan Carroll's user avatar
  • 1,016
5 votes
2 answers

See inferred type of a variable in typescript?

Vim is my main editor but for typescript it's hard to see what the inferred type of a variable is. Whether it is a complex type or just a simple one, it'd be great to see the typescript inferred type ...
Colin D's user avatar
  • 171