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
I would like to request a feature enhancement for the autocomplete suggestions when working with modules let’s say in TypeScript. Specifically, when typing a symbol (e.g., a.ab), it would be useful to see the source module or origin of the symbol alongside the kind and label.
For example, when importing a module like:
import a from "abc_module";
As we type a.ab, the autocomplete should display the following format:
[kind] [label] [label_detail]
Where:
• Kind refers to the symbol type (e.g., function, variable, class).
• Label refers to the symbol name (e.g., ab).
• Label Detail refers to the source or module name (e.g., abc_module).
So, for the example above, the autocomplete would display:
[function] [ab] [abc_module]
Motivation
This feature would greatly improve the developer experience by providing additional context in the autocomplete dropdown. It would help users quickly identify where a symbol is coming from, especially when working with multiple modules or libraries.
Use Case
• Improves Productivity: Developers can identify the source of a symbol more easily without needing to navigate or hover over the code.
• Reduces Confusion: When multiple modules or libraries export similarly named symbols, showing the module source can clarify which one is being suggested.
Expected Behavior
The autocomplete suggestions should have an additional field for label_detail, which shows the originating module or source of the symbol.
Example Autocomplete Suggestion Format
For a.ab, imported from abc_module:
[function] [ab] [abc_module]
Example from other plugin
nvim-cmp:
The text was updated successfully, but these errors were encountered:
I would like to request a feature enhancement for the autocomplete suggestions when working with modules let’s say in TypeScript. Specifically, when typing a symbol (e.g., a.ab), it would be useful to see the source module or origin of the symbol alongside the kind and label.
For example, when importing a module like:
import a from "abc_module";
As we type a.ab, the autocomplete should display the following format:
Where:
So, for the example above, the autocomplete would display:
Motivation
This feature would greatly improve the developer experience by providing additional context in the autocomplete dropdown. It would help users quickly identify where a symbol is coming from, especially when working with multiple modules or libraries.
Use Case
Expected Behavior
The autocomplete suggestions should have an additional field for label_detail, which shows the originating module or source of the symbol.
Example Autocomplete Suggestion Format
For a.ab, imported from abc_module:
Example from other plugin
nvim-cmp:
The text was updated successfully, but these errors were encountered: