You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then create a js file vim repro.js, wait for tsserver, then type:
Object.freeze({
foo: 'bar',
see completion menu opens, suggesting o: T.
The problem is that
I've configured the enter key to trigger completion, but in this case i want a new line. since the item is preselected, pressing enter will complete the item
the suggestion is based on parameter of Object.freeze(o), it's no longer valid when cursor is inside the curly brackets
If it's not easy to fix, is there a way to configure entry_filter to not display suggestion in this case? maybe like this
To reproduce use the following init.lua
then create a js file
vim repro.js
, wait for tsserver, then type:see completion menu opens, suggesting
![image](https://private-user-images.githubusercontent.com/28062824/270140586-26411ade-17fc-40fa-b88f-47a3dc26a8f5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1NDQwMzMsIm5iZiI6MTcyMDU0MzczMywicGF0aCI6Ii8yODA2MjgyNC8yNzAxNDA1ODYtMjY0MTFhZGUtMTdmYy00MGZhLWI4OGYtNDdhM2RjMjZhOGY1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA5VDE2NDg1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBjNTY5OGQ4NTc5MWIzZjgyYTQwOTdhNDZkNTQ1MzkzODVhOGRkM2VlMzVkYTg4MmZhMDJjMGRhYThkMzRkYWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.MvhdPGNiWHnM7sVM2EkHrOPL7VcysgILCSvXfBqAiZw)
o: T
.The problem is that
Object.freeze(o)
, it's no longer valid when cursor is inside the curly bracketsIf it's not easy to fix, is there a way to configure
entry_filter
to not display suggestion in this case? maybe like thisBut wanted to see if there's a better way. Thanks
The text was updated successfully, but these errors were encountered: