stevearc / oil.nvim

Neovim file explorer: edit your filesystem like a buffer
MIT License
3.84k stars 110 forks source link

bug: cannot move tsserver client file to another folder after edit that file. #241

Closed lightseazz closed 10 months ago

lightseazz commented 10 months ago

Did you check the docs and existing issues?

Neovim version (nvim -v)

NVIM v0.9.4/ Build type: Release/ LuaJIT 2.1.1700008891

Operating system/version

Arch Linux x86_64 Kernel: 6.1.63-1-lts

Describe the bug

I use Mason, Mason-lspconfig, nvim-lspconfig to install and config lua_ls, bashls, tsserver. When I use bash, lua client file, oil.nvim work flawlessly. But with tsserver client file (.js, .tsx, .ts, ...) after i edit that file, i use oil.nvim move that file to another folder cause bug.

Steps To Reproduce

  1. create simple test folder like this. image
  2. select foo.js , make some text and saved image
  3. open oil (command :Oil) type dd on foo.js , move to folder testMove/ and save, bug show: image

Expected Behavior

file is moved flawlessly

Directory structure

image

Repro

this bug is only exist with tsserver client file, others works fine include repro.

Did you check the bug with a clean config?

lightseazz commented 10 months ago

Added jsconfig.json to my project directory fix this bug. I will close this issue.