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

Project info exported through LSP #4595

Merged
merged 1 commit into from
Sep 8, 2022
Merged

Conversation

sdedic
Copy link
Member

@sdedic sdedic commented Sep 7, 2022

LSP client may need some project structure information. This PR exposes basic info on a project on the LSP protocol.

nbls.project.info(locations : String | String[], options? : { projectStructure? : boolean; actions? : boolean; recursive? : boolean }) : LspProjectInfo[]

The command accepts one or more locations as URIs (vscode.Uri.toString() for example); it will return, for each input parameter, a structure that describes the project and its direct children (if requested). If recursive is true, additional entries will be provided for each identified child project, recursively.

@sdedic sdedic added the LSP [ci] enable Language Server Protocol tests label Sep 7, 2022
@sdedic sdedic requested a review from dbalek September 7, 2022 09:36
@sdedic sdedic self-assigned this Sep 7, 2022
@sdedic
Copy link
Member Author

sdedic commented Sep 7, 2022

Note the LspProjectInfo.projectType will not be filled until #4594 is merged.

For Gradle projects, Micronaut GCN wizard generates multi-project that is not recognized by current Gradle module - #4594 should fix that as well. In the meantime, use empty build.gradle to fool the project factory.

Copy link
Contributor

@dbalek dbalek left a comment

Choose a reason for hiding this comment

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

Thanks.

@sdedic sdedic merged commit 099a506 into apache:master Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LSP [ci] enable Language Server Protocol tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants