Open viglioni opened 3 years ago
This will be very hard to fix I guess. The issue is in the completion and the code there is very tricky(since the protocol is very complex).
Is there any way to avoid eslint/lsp to format things while they are typed/autocompleted? Because I think it would be a workaround to this problem
Note: if only either one of these backends is on, this bug does not occur.
So does that mean eslint is changing text as well when the snippet expansion happens?
So does that mean eslint is changing text as well when the snippet expansion happens?
AFAIK yes
Might be related: https://github.com/company-mode/company-mode/issues/1241
@Viglioni company-mode/company-mode#1241 is now fixed upstream. Could you update your company-mode and check if it fixes Subj.?
Sorry for the delay.
Unfortunately still with the same error :(
Version: 20211024.2305
TBH I didn't know if I should open the issue here or in the Company project, but since it only happens with ts-ls + eslint
I chose to open here
Thank you for the bug report
lsp-mode
related packages.where
lsp-start-plain.el
can be downloaded here.Bug description
When both eslint and ts-ls are on, snippets that have mirrors expands incorrectly.
Note: if only either one of these backends is on, this bug does not occur.
https://user-images.githubusercontent.com/11412209/137915154-648efc8c-9b43-4ff3-ad57-5c8d819e5510.mp4
Steps to reproduce
yasnippet-snippets
to dependencies:(you can write your own snippet with a mirror but I think it is easier to use the ones that already exist)
ts-ls
andeslint
withlsp-install-server
company-mode
andyas-minor-mode
are onconst someVariable = "some value"
clo
snippetsom
and wait for it to show autocompletionExpected behavior
The expected behaviour should be: