LTeX: Grammar/spell checker :mag::heavy_check_mark: for VS Code using LanguageTool with support for LaTeX :mortar_board:, Markdown :pencil:, and others
Describe the bug
After the use of
$
\underset{\text {a}}{b}
$
spelling checking stops for the rest of the document
Steps to reproduce
Open a new tex-file with the sample document from below and note that "asdf" is not highlighted as a spelling mistake after \underset{\text {a}}{b}
Expected behavior
I expect, that language checking still works after \underset{\text {a}}{b}
```
[Info - 09:59:15] Starting ltex-ls...
Mar 04, 2024 9:59:16 AM org.bsplines.ltexls.server.LtexLanguageServer initialize
INFO: ltex-ls 15.2.0 - initializing...
Mar 04, 2024 9:59:16 AM org.bsplines.ltexls.tools.I18n setLocale
INFO: Setting locale to 'en'
Mar 04, 2024 9:59:16 AM org.bsplines.ltexls.settings.SettingsManager$Companion logDifferentSettings
FINE: Reinitializing LanguageTool due to different settings for language 'en-US': setting 'sentenceCacheSize', old '2000', new '50000'
Mar 04, 2024 9:59:16 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-US' via LanguageTool: " \n\nDummy0a Dummy1 "
Mar 04, 2024 9:59:18 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 0 rule matches
Mar 04, 2024 10:03:48 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-US' via LanguageTool: " \n\nasdf\n\n"
Mar 04, 2024 10:03:48 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 1 rule match
Mar 04, 2024 10:03:50 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-US' via LanguageTool: " \n\nDummy0a Dummy1 "
Mar 04, 2024 10:03:50 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 0 rule matches
Mar 04, 2024 10:04:51 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-US' via LanguageTool: " \n\nasdf Dummy0a Dummy1 "
Mar 04, 2024 10:04:51 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 1 rule match
Mar 04, 2024 10:04:53 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-US' via LanguageTool: " \n\nasdf\n\nDummy0a Dummy1 "
Mar 04, 2024 10:04:53 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 1 rule match
Mar 04, 2024 10:05:04 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-US' via LanguageTool: " \n\nasdf\n\nDummy0a Dummy1 "
Mar 04, 2024 10:05:04 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 1 rule match
Mar 04, 2024 10:05:07 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-US' via LanguageTool: " \n\nasdf\n\nDummy0a Dummy1 Dummy2 "
Mar 04, 2024 10:05:07 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 1 rule match
Mar 04, 2024 10:05:09 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-US' via LanguageTool: " \n\nasdf\n\nDummy0a Dummy1 "
Mar 04, 2024 10:05:09 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 1 rule match
Mar 04, 2024 10:05:11 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-US' via LanguageTool: " \n\nasdf\n\nDummy0a Dummy1 "
Mar 04, 2024 10:05:11 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 1 rule match
Mar 04, 2024 10:05:11 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-US' via LanguageTool: " \n\nasdf\n\nDummy0a Dummy1 "
Mar 04, 2024 10:05:11 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 1 rule match
Mar 04, 2024 10:05:19 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-US' via LanguageTool: " \n\nasdf\n\nDummy0a Dummy1 "
Mar 04, 2024 10:05:19 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 1 rule match
Mar 04, 2024 10:05:21 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-US' via LanguageTool: " \n\nasdf Dummy0 a b "
Mar 04, 2024 10:05:21 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 1 rule match
Mar 04, 2024 10:05:22 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-US' via LanguageTool: " \n\nasdf Dummy0 Dummy1a Dummy2 "
Mar 04, 2024 10:05:22 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 1 rule match
Mar 04, 2024 10:05:23 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-US' via LanguageTool: " \n\nasdf Dummy0 a b "
Mar 04, 2024 10:05:23 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 1 rule match
Mar 04, 2024 10:05:23 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-US' via LanguageTool: " \n\nasdf Dummy0a a b "
Mar 04, 2024 10:05:23 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 1 rule match
Mar 04, 2024 10:05:26 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-US' via LanguageTool: " \n\nasdf Dummy0a \n\nDummy1a Dummy2 "
Mar 04, 2024 10:05:26 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 1 rule match
Mar 04, 2024 10:05:27 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-US' via LanguageTool: " \n\nasdf Dummy0a \n\nDummy1a Dummy2 "
Mar 04, 2024 10:05:27 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 1 rule match
Mar 04, 2024 10:05:27 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-US' via LanguageTool: " \n\nasdf Dummy0a a\n\nDummy1a Dummy2 "
Mar 04, 2024 10:05:27 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 1 rule match
Mar 04, 2024 10:05:27 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-US' via LanguageTool: " \n\nasdf Dummy0a asdf\n\nDummy1a Dummy2 "
Mar 04, 2024 10:05:27 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 2 rule matches
Mar 04, 2024 10:05:38 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-US' via LanguageTool: " \n\nasdf Dummy0a asdf Dummy1a Dummy2 "
Mar 04, 2024 10:05:38 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 2 rule matches
Mar 04, 2024 10:05:45 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-US' via LanguageTool: " \n\nasdf Dummy0a asdf Dummy1a Dummy2 Dummy3 a b "
Mar 04, 2024 10:05:45 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 2 rule matches
Mar 04, 2024 10:05:48 AM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-US' via LanguageTool: " \n\nasdf Dummy0a asdf Dummy1 asdf Dummy2a Dummy3 "
Mar 04, 2024 10:05:48 AM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: Obtained 3 rule matches
```
Describe the bug After the use of $ \underset{\text {a}}{b} $ spelling checking stops for the rest of the document
Steps to reproduce Open a new tex-file with the sample document from below and note that "asdf" is not highlighted as a spelling mistake after \underset{\text {a}}{b}
Expected behavior I expect, that language checking still works after \underset{\text {a}}{b}
Sample document
LTeX configuration
"LTeX Language Server" log file
"LTeX Language Client" log file
Version information List here the version information of the relevant software.
Additional context/information None