-
Notifications
You must be signed in to change notification settings - Fork 110
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
Tide-complete yields incomplete prefix for private methods #455
Comments
Could you share a minimal example? I am not sure I understand your issue.
Are you saying if you have |
Hey thanks for the response @ananthakumaran this is specific to #-prefixed methods / private methods it seems here's a screen grab 2022-10-22.12-18-32.mp4 |
Sorry about the confusion, I didn't know about the As for the fix, I am not sure if tide is the right place. Tide grabs the prefix based on how the syntax-table is defined by the major mode like typescript-mode/js2-mode/js-mode etc. As of now You can use the below workaround till we reach a conclusion. (modify-syntax-entry ?# "_" typescript-mode-syntax-table) |
Sorry for the slow/no reply. Typescript is now being supported by core emacs. If you are still having issues, feel free to report it to the GNU Emacs bug-tracker :) Also I'm using eglot these days, and dont rely on a language-specific LSP implementation, so I don't have a valid tide-setup anymore either. |
Checklist
I'm on tide-/ and Company 0.9.13
M-x tide-restart-server
in the buffer where I had the problem.M-x tide-verify-setup
are correct.tsc
(andtslint
, if applicable) without the error or warning I'm seeing in tide.tsc
(ortslint
, if applicable) reports the error or warning I was expecting to see.typescript-mode
ortsserver
.Relevant Version Numbers
(The list above is minimal. Make sure to include any other version numbers relevant to your report.)
Steps to Reproduce the Bug
run M-x company-diag using the company-tide backend for the string this.# inside of a class
Expected Behavior
observe "#" as the prefix
be suggested private methods from that class as completions
selecting one such method
#foo
results in this.#fooActual Behavior
observe "" as the prefix
be suggested all methods from that class as completions
selecting one such method
#foo
results in this.##fooThanks for taking a look at this and your work on this project :) I tried to dig in myself but my elisp skills lacking, looking forward to learning from how this is resolved
The text was updated successfully, but these errors were encountered: