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
Currently there seems to be no option to exclude module exports from completion list, or stop the plugin from automatically adding missing imports on such completion.
E.g. for the project below, completing value in file2.js would automatically add value to the import statement on line 1, which may be unwanted.
Currently there seems to be no option to exclude module exports from completion list, or stop the plugin from automatically adding missing imports on such completion.
E.g. for the project below, completing
value
infile2.js
would automatically addvalue
to the import statement on line 1, which may be unwanted.file1.js
file2.js
package.json
TypeScript server exposes an option to disable module exports, but providing it in
tsserver_file_preferences
in the plugin config doesn't work.The reason this has no effect on completions is that the plugin overrides these options when requesting completion information:
typescript-tools.nvim/lua/typescript-tools/protocol/text_document/completion/init.lua
Lines 58 to 69 in f8c2e0b
The text was updated successfully, but these errors were encountered: