Language checking stops after \underset{\text {a}}{b}
Opened this issue · 0 comments
Anticommutator commented
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
\documentclass{article}
\usepackage{amsmath}
\begin{document}
asdf
$\text{a}$
asdf
$
\underset{a}{b}
$
asdf
$
\underset{\text {a}}{b}
$
asdf
\end{document}
LTeX configuration
{
"enabled": [
"bibtex",
"context",
"context.tex",
"html",
"latex",
"markdown",
"org",
"restructuredtext",
"rsweave"
],
"language": "en-US",
"dictionary": {},
"disabledRules": {},
"enabledRules": {},
"hiddenFalsePositives": {},
"bibtex": {
"fields": {}
},
"latex": {
"commands": {},
"environments": {
"lstlisting": "ignore",
"verbatim": "ignore",
"align": "ignore"
}
},
"markdown": {
"nodes": {}
},
"configurationTarget": {
"dictionary": "workspaceFolderExternalFile",
"disabledRules": "workspaceFolderExternalFile",
"hiddenFalsePositives": "workspaceFolderExternalFile"
},
"additionalRules": {
"enablePickyRules": false,
"motherTongue": "",
"languageModel": "",
"neuralNetworkModel": "",
"word2VecModel": ""
},
"languageToolHttpServerUri": "",
"languageToolOrg": {
"username": "",
"apiKey": ""
},
"ltex-ls": {
"path": "",
"logLevel": "fine",
"languageToolHttpServerUri": "",
"languageToolOrgUsername": "",
"languageToolOrgApiKey": ""
},
"java": {
"path": "/opt/homebrew/Cellar/openjdk/21.0.2/libexec/openjdk.jdk/Contents/Home",
"initialHeapSize": 64,
"maximumHeapSize": 8192
},
"sentenceCacheSize": 50000,
"completionEnabled": false,
"diagnosticSeverity": "information",
"checkFrequency": "edit",
"clearDiagnosticsWhenClosingFile": true,
"statusBarItem": false,
"trace": {
"server": "verbose"
}
}
"LTeX Language Server" log file
[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
"LTeX Language Client" log file
[... truncated]
"range": {
"start": {
"line": 10,
"character": 0
},
"end": {
"line": 10,
"character": 4
}
},
"severity": 3,
"code": "MORFOLOGIK_RULE_EN_US",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
},
"source": "LTeX",
"message": "'asdf': Possible spelling mistake found."
}
],
"edit": {
"documentChanges": [
{
"textDocument": {
"version": 36,
"uri": "file:///Users/user/Documents/phd-documents/test/test.tex"
},
"edits": [
{
"range": {
"start": {
"line": 6,
"character": 0
},
"end": {
"line": 6,
"character": 4
}
},
"newText": "ASD"
}
]
},
{
"textDocument": {
"version": 36,
"uri": "file:///Users/user/Documents/phd-documents/test/test.tex"
},
"edits": [
{
"range": {
"start": {
"line": 10,
"character": 0
},
"end": {
"line": 10,
"character": 4
}
},
"newText": "ASD"
}
]
}
]
}
},
{
"title": "Use 'ADF' (all selected matches)",
"kind": "quickfix.ltex.acceptSuggestions",
"diagnostics": [
{
"range": {
"start": {
"line": 6,
"character": 0
},
"end": {
"line": 6,
"character": 4
}
},
"severity": 3,
"code": "MORFOLOGIK_RULE_EN_US",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
},
"source": "LTeX",
"message": "'asdf': Possible spelling mistake found."
},
{
"range": {
"start": {
"line": 10,
"character": 0
},
"end": {
"line": 10,
"character": 4
}
},
"severity": 3,
"code": "MORFOLOGIK_RULE_EN_US",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
},
"source": "LTeX",
"message": "'asdf': Possible spelling mistake found."
}
],
"edit": {
"documentChanges": [
{
"textDocument": {
"version": 36,
"uri": "file:///Users/user/Documents/phd-documents/test/test.tex"
},
"edits": [
{
"range": {
"start": {
"line": 6,
"character": 0
},
"end": {
"line": 6,
"character": 4
}
},
"newText": "ADF"
}
]
},
{
"textDocument": {
"version": 36,
"uri": "file:///Users/user/Documents/phd-documents/test/test.tex"
},
"edits": [
{
"range": {
"start": {
"line": 10,
"character": 0
},
"end": {
"line": 10,
"character": 4
}
},
"newText": "ADF"
}
]
}
]
}
},
{
"title": "Use 'ASF' (all selected matches)",
"kind": "quickfix.ltex.acceptSuggestions",
"diagnostics": [
{
"range": {
"start": {
"line": 6,
"character": 0
},
"end": {
"line": 6,
"character": 4
}
},
"severity": 3,
"code": "MORFOLOGIK_RULE_EN_US",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
},
"source": "LTeX",
"message": "'asdf': Possible spelling mistake found."
},
{
"range": {
"start": {
"line": 10,
"character": 0
},
"end": {
"line": 10,
"character": 4
}
},
"severity": 3,
"code": "MORFOLOGIK_RULE_EN_US",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
},
"source": "LTeX",
"message": "'asdf': Possible spelling mistake found."
}
],
"edit": {
"documentChanges": [
{
"textDocument": {
"version": 36,
"uri": "file:///Users/user/Documents/phd-documents/test/test.tex"
},
"edits": [
{
"range": {
"start": {
"line": 6,
"character": 0
},
"end": {
"line": 6,
"character": 4
}
},
"newText": "ASF"
}
]
},
{
"textDocument": {
"version": 36,
"uri": "file:///Users/user/Documents/phd-documents/test/test.tex"
},
"edits": [
{
"range": {
"start": {
"line": 10,
"character": 0
},
"end": {
"line": 10,
"character": 4
}
},
"newText": "ASF"
}
]
}
]
}
},
{
"title": "Use 'JASDF' (all selected matches)",
"kind": "quickfix.ltex.acceptSuggestions",
"diagnostics": [
{
"range": {
"start": {
"line": 6,
"character": 0
},
"end": {
"line": 6,
"character": 4
}
},
"severity": 3,
"code": "MORFOLOGIK_RULE_EN_US",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
},
"source": "LTeX",
"message": "'asdf': Possible spelling mistake found."
},
{
"range": {
"start": {
"line": 10,
"character": 0
},
"end": {
"line": 10,
"character": 4
}
},
"severity": 3,
"code": "MORFOLOGIK_RULE_EN_US",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
},
"source": "LTeX",
"message": "'asdf': Possible spelling mistake found."
}
],
"edit": {
"documentChanges": [
{
"textDocument": {
"version": 36,
"uri": "file:///Users/user/Documents/phd-documents/test/test.tex"
},
"edits": [
{
"range": {
"start": {
"line": 6,
"character": 0
},
"end": {
"line": 6,
"character": 4
}
},
"newText": "JASDF"
}
]
},
{
"textDocument": {
"version": 36,
"uri": "file:///Users/user/Documents/phd-documents/test/test.tex"
},
"edits": [
{
"range": {
"start": {
"line": 10,
"character": 0
},
"end": {
"line": 10,
"character": 4
}
},
"newText": "JASDF"
}
]
}
]
}
},
{
"title": "Add 'asdf' to dictionary",
"kind": "quickfix.ltex.addToDictionary",
"diagnostics": [
{
"range": {
"start": {
"line": 6,
"character": 0
},
"end": {
"line": 6,
"character": 4
}
},
"severity": 3,
"code": "MORFOLOGIK_RULE_EN_US",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
},
"source": "LTeX",
"message": "'asdf': Possible spelling mistake found."
},
{
"range": {
"start": {
"line": 10,
"character": 0
},
"end": {
"line": 10,
"character": 4
}
},
"severity": 3,
"code": "MORFOLOGIK_RULE_EN_US",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
},
"source": "LTeX",
"message": "'asdf': Possible spelling mistake found."
}
],
"command": {
"title": "Add 'asdf' to dictionary",
"command": "_ltex.addToDictionary",
"arguments": [
{
"uri": "file:///Users/user/Documents/phd-documents/test/test.tex",
"words": {
"en-US": [
"asdf"
]
}
}
]
}
},
{
"title": "Hide all false positives in the selected sentences",
"kind": "quickfix.ltex.hideFalsePositives",
"diagnostics": [
{
"range": {
"start": {
"line": 4,
"character": 0
},
"end": {
"line": 4,
"character": 4
}
},
"severity": 3,
"code": "UPPERCASE_SENTENCE_START",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/UPPERCASE_SENTENCE_START?lang=en-US"
},
"source": "LTeX",
"message": "This sentence does not start with an uppercase letter."
},
{
"range": {
"start": {
"line": 6,
"character": 0
},
"end": {
"line": 6,
"character": 4
}
},
"severity": 3,
"code": "MORFOLOGIK_RULE_EN_US",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
},
"source": "LTeX",
"message": "'asdf': Possible spelling mistake found."
},
{
"range": {
"start": {
"line": 10,
"character": 0
},
"end": {
"line": 10,
"character": 4
}
},
"severity": 3,
"code": "MORFOLOGIK_RULE_EN_US",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
},
"source": "LTeX",
"message": "'asdf': Possible spelling mistake found."
}
],
"command": {
"title": "Hide all false positives in the selected sentences",
"command": "_ltex.hideFalsePositives",
"arguments": [
{
"uri": "file:///Users/user/Documents/phd-documents/test/test.tex",
"falsePositives": {
"en-US": [
"{\"rule\":\"UPPERCASE_SENTENCE_START\",\"sentence\":\"^\\\\Qasdf \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Qa asdf \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q asdf \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Qa \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+$\"}",
"{\"rule\":\"MORFOLOGIK_RULE_EN_US\",\"sentence\":\"^\\\\Qasdf \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Qa asdf \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q asdf \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Qa \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+$\"}"
]
}
}
]
}
},
{
"title": "Disable all rules with matches in selection",
"kind": "quickfix.ltex.disableRules",
"diagnostics": [
{
"range": {
"start": {
"line": 4,
"character": 0
},
"end": {
"line": 4,
"character": 4
}
},
"severity": 3,
"code": "UPPERCASE_SENTENCE_START",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/UPPERCASE_SENTENCE_START?lang=en-US"
},
"source": "LTeX",
"message": "This sentence does not start with an uppercase letter."
},
{
"range": {
"start": {
"line": 6,
"character": 0
},
"end": {
"line": 6,
"character": 4
}
},
"severity": 3,
"code": "MORFOLOGIK_RULE_EN_US",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
},
"source": "LTeX",
"message": "'asdf': Possible spelling mistake found."
},
{
"range": {
"start": {
"line": 10,
"character": 0
},
"end": {
"line": 10,
"character": 4
}
},
"severity": 3,
"code": "MORFOLOGIK_RULE_EN_US",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
},
"source": "LTeX",
"message": "'asdf': Possible spelling mistake found."
}
],
"command": {
"title": "Disable all rules with matches in selection",
"command": "_ltex.disableRules",
"arguments": [
{
"uri": "file:///Users/user/Documents/phd-documents/test/test.tex",
"ruleIds": {
"en-US": [
"UPPERCASE_SENTENCE_START",
"MORFOLOGIK_RULE_EN_US"
]
}
}
]
}
}
]
[Trace - 10:07:36] Sending request 'textDocument/codeAction - (50)'.
Params: {
"textDocument": {
"uri": "file:///Users/user/Documents/phd-documents/test/test.tex"
},
"range": {
"start": {
"line": 11,
"character": 2
},
"end": {
"line": 11,
"character": 2
}
},
"context": {
"diagnostics": []
}
}
[Trace - 10:07:36] Received response 'textDocument/codeAction - (50)' in 2ms.
Result: []
[Trace - 10:07:40] Sending request 'textDocument/codeAction - (51)'.
Params: {
"textDocument": {
"uri": "file:///Users/user/Documents/phd-documents/test/test.tex"
},
"range": {
"start": {
"line": 6,
"character": 4
},
"end": {
"line": 6,
"character": 4
}
},
"context": {
"diagnostics": [
{
"range": {
"start": {
"line": 6,
"character": 0
},
"end": {
"line": 6,
"character": 4
}
},
"message": "'asdf': Possible spelling mistake found.",
"code": "MORFOLOGIK_RULE_EN_US",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang%3Den-US"
},
"severity": 3,
"source": "LTeX"
}
]
}
}
[Trace - 10:07:40] Received response 'textDocument/codeAction - (51)' in 4ms.
Result: [
{
"title": "Use 'ASD'",
"kind": "quickfix.ltex.acceptSuggestions",
"diagnostics": [
{
"range": {
"start": {
"line": 6,
"character": 0
},
"end": {
"line": 6,
"character": 4
}
},
"severity": 3,
"code": "MORFOLOGIK_RULE_EN_US",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
},
"source": "LTeX",
"message": "'asdf': Possible spelling mistake found."
}
],
"edit": {
"documentChanges": [
{
"textDocument": {
"version": 36,
"uri": "file:///Users/user/Documents/phd-documents/test/test.tex"
},
"edits": [
{
"range": {
"start": {
"line": 6,
"character": 0
},
"end": {
"line": 6,
"character": 4
}
},
"newText": "ASD"
}
]
}
]
}
},
{
"title": "Use 'ADF'",
"kind": "quickfix.ltex.acceptSuggestions",
"diagnostics": [
{
"range": {
"start": {
"line": 6,
"character": 0
},
"end": {
"line": 6,
"character": 4
}
},
"severity": 3,
"code": "MORFOLOGIK_RULE_EN_US",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
},
"source": "LTeX",
"message": "'asdf': Possible spelling mistake found."
}
],
"edit": {
"documentChanges": [
{
"textDocument": {
"version": 36,
"uri": "file:///Users/user/Documents/phd-documents/test/test.tex"
},
"edits": [
{
"range": {
"start": {
"line": 6,
"character": 0
},
"end": {
"line": 6,
"character": 4
}
},
"newText": "ADF"
}
]
}
]
}
},
{
"title": "Use 'ASF'",
"kind": "quickfix.ltex.acceptSuggestions",
"diagnostics": [
{
"range": {
"start": {
"line": 6,
"character": 0
},
"end": {
"line": 6,
"character": 4
}
},
"severity": 3,
"code": "MORFOLOGIK_RULE_EN_US",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
},
"source": "LTeX",
"message": "'asdf': Possible spelling mistake found."
}
],
"edit": {
"documentChanges": [
{
"textDocument": {
"version": 36,
"uri": "file:///Users/user/Documents/phd-documents/test/test.tex"
},
"edits": [
{
"range": {
"start": {
"line": 6,
"character": 0
},
"end": {
"line": 6,
"character": 4
}
},
"newText": "ASF"
}
]
}
]
}
},
{
"title": "Use 'JASDF'",
"kind": "quickfix.ltex.acceptSuggestions",
"diagnostics": [
{
"range": {
"start": {
"line": 6,
"character": 0
},
"end": {
"line": 6,
"character": 4
}
},
"severity": 3,
"code": "MORFOLOGIK_RULE_EN_US",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
},
"source": "LTeX",
"message": "'asdf': Possible spelling mistake found."
}
],
"edit": {
"documentChanges": [
{
"textDocument": {
"version": 36,
"uri": "file:///Users/user/Documents/phd-documents/test/test.tex"
},
"edits": [
{
"range": {
"start": {
"line": 6,
"character": 0
},
"end": {
"line": 6,
"character": 4
}
},
"newText": "JASDF"
}
]
}
]
}
},
{
"title": "Use 'SDF'",
"kind": "quickfix.ltex.acceptSuggestions",
"diagnostics": [
{
"range": {
"start": {
"line": 6,
"character": 0
},
"end": {
"line": 6,
"character": 4
}
},
"severity": 3,
"code": "MORFOLOGIK_RULE_EN_US",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
},
"source": "LTeX",
"message": "'asdf': Possible spelling mistake found."
}
],
"edit": {
"documentChanges": [
{
"textDocument": {
"version": 36,
"uri": "file:///Users/user/Documents/phd-documents/test/test.tex"
},
"edits": [
{
"range": {
"start": {
"line": 6,
"character": 0
},
"end": {
"line": 6,
"character": 4
}
},
"newText": "SDF"
}
]
}
]
}
},
{
"title": "Add 'asdf' to dictionary",
"kind": "quickfix.ltex.addToDictionary",
"diagnostics": [
{
"range": {
"start": {
"line": 6,
"character": 0
},
"end": {
"line": 6,
"character": 4
}
},
"severity": 3,
"code": "MORFOLOGIK_RULE_EN_US",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
},
"source": "LTeX",
"message": "'asdf': Possible spelling mistake found."
}
],
"command": {
"title": "Add 'asdf' to dictionary",
"command": "_ltex.addToDictionary",
"arguments": [
{
"uri": "file:///Users/user/Documents/phd-documents/test/test.tex",
"words": {
"en-US": [
"asdf"
]
}
}
]
}
},
{
"title": "Hide false positive",
"kind": "quickfix.ltex.hideFalsePositives",
"diagnostics": [
{
"range": {
"start": {
"line": 6,
"character": 0
},
"end": {
"line": 6,
"character": 4
}
},
"severity": 3,
"code": "MORFOLOGIK_RULE_EN_US",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
},
"source": "LTeX",
"message": "'asdf': Possible spelling mistake found."
}
],
"command": {
"title": "Hide false positive",
"command": "_ltex.hideFalsePositives",
"arguments": [
{
"uri": "file:///Users/user/Documents/phd-documents/test/test.tex",
"falsePositives": {
"en-US": [
"{\"rule\":\"MORFOLOGIK_RULE_EN_US\",\"sentence\":\"^\\\\Qasdf \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Qa asdf \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Q asdf \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\\\Qa \\\\E(?:Dummy|Ina|Jimmy-)[0-9]+$\"}"
]
}
}
]
}
},
{
"title": "Disable rule",
"kind": "quickfix.ltex.disableRules",
"diagnostics": [
{
"range": {
"start": {
"line": 6,
"character": 0
},
"end": {
"line": 6,
"character": 4
}
},
"severity": 3,
"code": "MORFOLOGIK_RULE_EN_US",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_US?lang=en-US"
},
"source": "LTeX",
"message": "'asdf': Possible spelling mistake found."
}
],
"command": {
"title": "Disable rule",
"command": "_ltex.disableRules",
"arguments": [
{
"uri": "file:///Users/user/Documents/phd-documents/test/test.tex",
"ruleIds": {
"en-US": [
"MORFOLOGIK_RULE_EN_US"
]
}
}
]
}
}
]
2024-03-04T09:07:43.879Z Info: Creating bug report...
[Trace - 10:07:43] Sending request 'workspace/executeCommand - (52)'.
Params: {
"command": "_ltex.getServerStatus",
"arguments": []
}
Version information
List here the version information of the relevant software.
- Operating system: Darwin (darwin), arm64, 23.2.0
- VS Code: 1.86.2
- vscode-ltex: x.xx
- ltex-ls: 15.2.0
- Java: 21.0.2
Additional context/information
None