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 deactivate function to clean up languageClient #758

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

nicholas-l
Copy link

@nicholas-l nicholas-l commented Nov 20, 2022

Description

Explain what problem you are trying to fix, and what your changes do in order to fix it.

Link related issues or pull requests.

A deactivate function should be defined for the extension, see here. This PR moves the api object to the module level and then defines a deactivate function to call the languageClient.stop which is similar to the example lsp-server.

I tried to see if this would solve #497 but running with debug in VSCode seems to remove the stray java process so couldn't confirm this change fixes it.

Checklist

  • Have you read the guidelines on contributing code to LTEX?
  • Have you filled in all missing information in this pull request template?
  • Have you written new tests for your changes, if applicable?
  • Do your changes pass all code checks such as linting and tests?

Copy link

@meneguzzi meneguzzi left a comment

Choose a reason for hiding this comment

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

Looks good to me.

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.

None yet

2 participants