Skip to content
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

Autocomplete for functions omits parenthesises with vtsls language server #18014

Closed
1 task done
s3bba opened this issue Sep 18, 2024 · 2 comments · Fixed by #18259
Closed
1 task done

Autocomplete for functions omits parenthesises with vtsls language server #18014

s3bba opened this issue Sep 18, 2024 · 2 comments · Fixed by #18259
Labels
defect [core label] javascript JavaScript programming language support language server An umbrella label for all language servers language An umbrella label for all programming languages syntax behaviors regression A bug that was introduced in a recent release typescript TypeScript programming language support

Comments

@s3bba
Copy link
Contributor

s3bba commented Sep 18, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

This PR has introduced inconsistent behavior across language servers for JS/TS projects.
Using vtsls server functions no longer get completed with parenthesises and function argument. Eg.: variable.functionName
While if typescript-language-server is used we get expected behavior. Eg.: variable.functionName(args)

The first commit that has this issue is 02d5f320ad621e92cafaa7075f61e6496e12cd98

Environment

Zed: v0.154.0 (Zed Dev 2699fa8)
OS: Linux X11 arch unknown
Memory: 23.5 GiB
Architecture: x86_64
GPU: AMD Radeon VII (RADV VEGA20) || radv || Mesa 24.2.2-arch1.1

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

No response

@s3bba s3bba added admin read Pending admin review defect [core label] triage Maintainer needs to classify the issue labels Sep 18, 2024
@JosephTLyons JosephTLyons added typescript TypeScript programming language support javascript JavaScript programming language support language An umbrella label for all programming languages syntax behaviors language server An umbrella label for all language servers and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Sep 23, 2024
@JosephTLyons
Copy link
Contributor

JosephTLyons commented Sep 23, 2024

cc: @mrnugget

I was able to reproduce on macOS.

@JosephTLyons JosephTLyons added regression A bug that was introduced in a recent release linux and removed linux labels Sep 23, 2024
mrnugget added a commit that referenced this issue Sep 24, 2024
This fixes #18014 by fixing the regression that was introduced in #17757.

In short: after digging into the `vtsls` code, it looks like it
essentially doesn't need any `initialization_options`, it's all
workspace configuration, since it tries to use the built-in settings
from VS Code.

I tested the completions, the inlay hints, the max memory - all of it
now works after moving to `workspace_configuration`.
@s3bba
Copy link
Contributor Author

s3bba commented Sep 24, 2024

Thanks! I can confirm that #18259 has resolved this issue for me.

mrnugget added a commit that referenced this issue Sep 24, 2024
)

This fixes #18014 by fixing
the regression that was introduced in
#17757.

In short: after digging into the `vtsls` code, it looks like it
essentially doesn't need any `initialization_options`, it's all
workspace configuration, since it tries to use the built-in settings
from VS Code.

I tested the completions, the inlay hints, the max memory - all of it
now works after moving to `workspace_configuration`.

Closes #18014.

Release Notes:

- Fixed `vtsls` being initialized the wrong way, which would mean the
wrong options were used to enable completions or inlay hints.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect [core label] javascript JavaScript programming language support language server An umbrella label for all language servers language An umbrella label for all programming languages syntax behaviors regression A bug that was introduced in a recent release typescript TypeScript programming language support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants