-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(vscode): more hover information, prioritizing required fields, a…
…nd respective access modifiers (#4538) ### Operation: Information Overload Added more information to most hover cases. This includes additional types, function args, class constructor args. Most language servers are pretty conservative with the information they provide. Not sure if it's a performance thing or it's just extremely difficult (impossible?) to present this information in a pretty way. This PR is attempting to show more information much more often, even though it may be a bit much. Maybe this is bad? Not sure, I think it's worth the experiment ### Sorting Fixes #3724 - Properties are sorted by their optionality and then alphabetically when applicable (e.g. struct construction) ### Filters Fixes #4460 - (hover) class, interfaces, and structs now only show public members on hover - (hover) init and inflight init are hidden - (completion) class completions respect access modifier: hides private members unless accessing `this` - `super` does not work yet #4537 ### Misc - The debug symbol to print the symbol environment now goes to stderr. Previously it would break the language server (which listens to stdout) - Per the above, hangar now attaches stderr (if applicable) to the snapshots ## Current Samples ### Struct <img width="797" alt="image" src="https://github.com/winglang/wing/assets/1237390/1e6a594a-10e2-4522-9d77-4d8c6838dbcb"> ### Class <img width="1208" alt="image" src="https://github.com/winglang/wing/assets/1237390/9d4989ed-2c06-412a-b9db-7fc28c9514b4"> ### Method <img width="757" alt="image" src="https://github.com/winglang/wing/assets/1237390/55b67db0-fea5-44e8-82fe-4cdf7c3164ae"> *By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
- Loading branch information
1 parent
16fd099
commit 6d28ff0
Showing
58 changed files
with
732 additions
and
507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.