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

Use stable name generation from LSP spec #368

Merged
merged 22 commits into from
Jul 31, 2024

Conversation

karthiknadig
Copy link
Member

@karthiknadig karthiknadig commented Jul 30, 2024

Closes #364

@karthiknadig karthiknadig self-assigned this Jul 30, 2024
@karthiknadig karthiknadig added the feature-request Request for new features or functionality label Jul 30, 2024
@karthiknadig karthiknadig changed the title Update LSP to latest spec Use stable name generation from LSP spec Jul 30, 2024
@karthiknadig karthiknadig marked this pull request as ready for review July 30, 2024 16:56
@karthiknadig karthiknadig enabled auto-merge (squash) July 30, 2024 16:56
@vscodenpa vscodenpa added this to the August 2024 milestone Jul 30, 2024
@karthiknadig karthiknadig requested a review from anthonykim1 July 30, 2024 22:24
if request.params:
if (
request.params.kind == "reference"
and f"{class_name}Params" in CUSTOM_REQUEST_PARAMS_ALIASES
and {params_class_name} in CUSTOM_REQUEST_PARAMS_ALIASES
Copy link
Member

Choose a reason for hiding this comment

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

is the curly brackets what you want here? All the other ones for this line removed those, just wanted to check

@@ -1115,6 +1116,22 @@ def _completion_item_kind_hook(
Union[lsp_types.CompletionItemKind, int],
_completion_item_kind_hook,
),
(
Optional[Union[str, lsp_types.RelativePattern]],
Copy link
Member

Choose a reason for hiding this comment

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

Are you planning on switching to using the | operator? Or is there a preference for Union here? Not sure the python version for this repo either

Copy link
Member Author

Choose a reason for hiding this comment

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

We can make the change after this commit. As it will be a huge change.

@karthiknadig karthiknadig merged commit 62a9702 into microsoft:main Jul 31, 2024
27 checks passed
@karthiknadig karthiknadig deleted the update_lsp branch July 31, 2024 20:58
karthiknadig added a commit to karthiknadig/lsprotocol that referenced this pull request Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update LSP schema and model
3 participants