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

fix(compiler): lsp preview indicates methods have zero params #6990

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

Chriscbr
Copy link
Contributor

@Chriscbr Chriscbr commented Aug 6, 2024

For visual brevity, the preview of a class shown by the LSP only shows a subset of the class's API. However, the preview makes it look like class methods have no parameters, even if they do / even if they're required:

Screenshot 2024-08-05 at 8 40 41 PM

This PR fixes that so if a method has arguments, it will be visually indicated by showing "..." in between the parentheses.

Checklist

  • Title matches Winglang's style guide
  • Description explains motivation and solution
  • Tests added (always)
  • Docs updated (only required for features)
  • Added pr/e2e-full label if this feature requires end-to-end testing

By submitting this pull request, I confirm that my contribution is made under the terms of the Wing Cloud Contribution License.

@Chriscbr Chriscbr requested a review from a team as a code owner August 6, 2024 00:43
Copy link

github-actions bot commented Aug 6, 2024

Thanks for opening this pull request! 🎉
Please consult the contributing guidelines for details on how to contribute to this project.
If you need any assistance, don't hesitate to ping the relevant owner over Discord.

Topic Owner
Wing SDK and standard library @chriscbr
Wing Console @skyrpex
Wing compiler and language design @chriscbr
VSCode extension and language server @chriscbr
Wing CLI @chriscbr
Documentation @boyney123
Examples @boyney123
Wing Playground @skyrpex

@Chriscbr Chriscbr changed the title fix(lsp): indicate methods may have parameters fix(compiler): lsp preview indicates methods have zero params Aug 6, 2024
@monadabot
Copy link
Contributor

Console preview environment is available at https://wing-console-pr-6990.fly.dev 🚀

Last Updated (UTC) 2024-08-06 00:50

Copy link
Contributor

@eladb eladb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Copy link
Contributor

mergify bot commented Aug 6, 2024

Thanks for contributing, @Chriscbr! This PR will now be added to the merge queue, or immediately merged if rybickic/lsp-class-preview is up-to-date with main and the queue is empty.

@mergify mergify bot merged commit 5cb1c5c into main Aug 6, 2024
17 checks passed
@mergify mergify bot deleted the rybickic/lsp-class-preview branch August 6, 2024 06:29
@monadabot
Copy link
Contributor

Congrats! 🚀 This was released in Wing 0.82.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants