neoclide / coc-tsserver

Tsserver extension for coc.nvim that provide rich features like VSCode for javascript & typescript
MIT License
1.06k stars 68 forks source link

"untitled" buffer opened when writing new ts/tsx file #261

Closed GitSquared closed 3 years ago

GitSquared commented 3 years ago

What happens

When I :w a new buffer to a .ts (or .tsx) file, it creates a hidden ^untitled buffer and keeps re-opening it until I restart Coc.

What i would expect

I use hidden buffers to work on multiple files at a time. This unclosable buffer clutters my workspace and seems to be unused anyway (nothing to see in it). I would expect that tsserver doesn't create it.

Demo

Peek 2021-02-21 16-14

(what happens in the gif: I save a new, empty buffer as a .ts file. Coc-tsserver kicks in, and for some reason opens the hidden buffer. I try to close it and go back to my .ts file, but tsserver opens it again.)

Logs

CocCommand tsserver.openTsServerLog CocCommand workspace.showOutput tsserver


Thanks for your help!

GitSquared commented 3 years ago

Thanks for the fix, all good now.