ltex-plus / vscode-ltex-plus

LTeX+: Grammar/spell checker :mag::heavy_check_mark: for VS Code using LanguageTool with support for LaTeX :mortar_board:, Markdown :pencil:, and others
https://marketplace.visualstudio.com/items?itemName=ltex-plus.vscode-ltex-plus
Mozilla Public License 2.0
66 stars 1 forks source link

Command to close LTeX #73

Closed pierrebrd closed 2 days ago

pierrebrd commented 1 month ago

LTeX is automatically activated when editing a file that triggers it, and the list of files triggering it can't be edited (ltex.enabled allows us to edit the code languages that enable LTeX checking, but even when removing a code language, LTeX will still start)

An interesting feature would be a command to deactivate LTeX when it is not needed, in order to free some RAM (1GB is not insignificant!). Currently, the "LTeX Reset and Restart" command allows us to close LTeX, but it will automatically be started again.

spitzerd commented 5 days ago

Done. You can test starting from the next nightly release. The command is called LTeX: Close LTeX+

pierrebrd commented 3 days ago

Thank you, I tested it and it works great !

The only weird thing is that after closing LTeX, I still see the "LTeX ready" in the status bar (I have the setting ltex.statusBarItem set to true), and when I start LTeX again using the "Check Current Document" command, it doesn't show "starting ltex", i only see "LTeX Ready" while java is starting and then "LTeX is checking " when java is ready and it starts checking the document. It is a really minor bug since it doesn't affect the behaviour of LTeX, so I don't think it really needs a fix.

Screenshot From 2024-11-25 12-04-33

spitzerd commented 2 days ago

I have no clue how to fix the status bar. As you said, it's not real issue.

github-actions[bot] commented 2 days ago

This issue is now fixed on develop. The fix will be included in the next release of LTEX.

If you don't want to wait, you can try out the nightly pre-release tomorrow. Nightly pre-releases are published every morning at around 4am UTC.