Skip to content

Feat/dart #68

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

Merged
merged 9 commits into from
Mar 3, 2025
Merged

Feat/dart #68

merged 9 commits into from
Mar 3, 2025

Conversation

v4rgas
Copy link
Contributor

@v4rgas v4rgas commented Feb 28, 2025

No description provided.

Copy link
Collaborator

@LakshyAAAgrawal LakshyAAAgrawal left a comment

Choose a reason for hiding this comment

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

Everything looks great! However, the unittests are currently failing possibly because dart was not found in the environment. We will need it to work in the CI. You can look at https://github.com/pratham1002/multilspy/blob/69373e057e75585f58b27c767b6f460f9954825e/.github/workflows/test-workflow.yaml#L15-L19 for reference.

I would prefer to the extent possible, that the lsp executable is downloaded in the setup_runtime_dependencies, and if and only if we determine that that will be infeasible/undesirable, then this route (of adding sections to set it up separately in the CI) can be taken.

What are your thoughts?

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is good to start with now, but can we maybe add tests for any other commonly used lsp features as well?

@LakshyAAAgrawal
Copy link
Collaborator

Also please add the name "dart" in relevant places in the README! This is indeed a major contribution!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we also want to add a workspace configuration file https://github.com/dart-lang/sdk/blob/main/pkg/analysis_server/tool/lsp_spec/README.md#client-workspace-configuration? Could be useful, but can leave out for now if it is too much work.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

to be honest i do not know what that configuration is for, so i wouldnt be sure what to add exactly

would u mind sending me some docs or adding it yourself if possible?

@LakshyAAAgrawal
Copy link
Collaborator

Closes #53

@LakshyAAAgrawal
Copy link
Collaborator

LGTM! Thanks a lot for your contribution.

As next steps, I would request to create a few issues for things that this PR doesn't add, which would be desirable for Dart support (support in non-linux environments to automatically download and run the lsp, configuration options, etc.). I will merge this now unless you had any changes.

@v4rgas
Copy link
Contributor Author

v4rgas commented Mar 3, 2025

sound good to me, i dont have any other changes for now but ill make sure to add a few more tests during the week

if you could help me with the initialization options thatd be great

thanks for all ur comments, ill open a new pr if i make any other changes

@v4rgas v4rgas requested a review from LakshyAAAgrawal March 3, 2025 03:32
@LakshyAAAgrawal LakshyAAAgrawal merged commit 382aee5 into microsoft:main Mar 3, 2025
4 checks passed
@v4rgas v4rgas deleted the feat/dart branch March 10, 2025 03:31
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.

2 participants