-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Code snippet for function call not available for aliased functions. #53716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@mjbvz I'd like to help, is there any more information that I could use to debug and fix this? |
@yogeshmangaj here is the check for use code snippet |
@chemzqm I am not sure if I'm missing something, and this may be unrelated to the issue you have mentioned, but code snippet for a function does not show from within the same file either.
|
@yogeshmangaj I'm able to complete that, you should enable code snippet in your VSCode settings
|
@chemzqm I have that setting enabled, and I still get the same thing, is there any other setting that has to be enabled? Could you please post a screenshot of the snippet that you're seeing (hope this is not bothersome)? |
@yogeshmangaj other setting should be unrelated. |
@chemzqm that does not seem to be the case either, tsserver is 2.9.2 |
It's not the same, there not |
Closing this in favor of microsoft/TypeScript#25207 We are limited in what we can do generating snippets on the VS Code side and really need TS support for more advanced support like this |
Steps to Reproduce:
"typescript.useCodeSnippetsOnMethodSuggest": true,
to settings file to enable code snippet for method suggest.a.ts
withb.ts
withfunc
and selectfunc
item, the completion is done, but no code snipet would b used.The reason is because

typescript
server would returnalias
for the import variable but not function, sotypescript-language-features
extension would not consider it as function and no code snippet is generated.Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: