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

add LanguageServerWrapper#getProcessHandle() #755

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

sebthom
Copy link
Member

@sebthom sebthom commented Aug 10, 2023

This PR adds the LanguageServerWrapper#getProcessHandle() method and enriches the the LanguageServerWrapper#toString() info with the pid of the underlying LS process.

The LanguageServerWrapper#getProcessHandle() will also be useful when implementing a LanguageServers UI view to access information such as pid, working directory or command of the underlying LS process.

Copy link
Contributor

@vrubezhny vrubezhny left a comment

Choose a reason for hiding this comment

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

@sebthom How about making LoggingStreamConnectionProviderProxy to also implement IAdaptab;e? Otherwise its clients will not be able to obtain process handle, will they?

@angelozerr
Copy link
Contributor

angelozerr commented Aug 10, 2023

Same thing for LaunchConfigurationStreamProvider I think?

@vrubezhny
Copy link
Contributor

vrubezhny commented Aug 10, 2023

@sebthom sebthom force-pushed the lswrapp-processhandle branch from a82d9c6 to cf359f8 Compare August 10, 2023 18:41
@sebthom
Copy link
Member Author

sebthom commented Aug 10, 2023

How about making LoggingStreamConnectionProviderProxy to also implement IAdaptab;e? Otherwise its clients will not be able to obtain process handle, will they?

@vrubezhny I added it now

@vrubezhny
Copy link
Contributor

@sebthom Looks good to me. Having access to process handle is a good thing, so +1

@sebthom sebthom merged commit 5008989 into eclipse-lsp4e:master Aug 11, 2023
@sebthom sebthom deleted the lswrapp-processhandle branch August 11, 2023 13:29
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