vscode-ltex
vscode-ltex copied to clipboard
Equations containing `\text T` disable spell checking of remaining document
Describe the bug
Upon occurrence of the string \text T
or similar (used, e.g., to denote matrix transposition) LTeX disables spell checking for the rest of the document.
Steps to reproduce
See the example document below: LTeX does not detect spelling mistakes after an equation containing $A = B^{\text T}$
.
No such problems arise if \text T
is replaced by \text{T}
.
Expected behavior
Both strings \text{T}
and \text T
should be treated identically and do not switch off spell-checking for the remainder of the document.
Sample document See the example document below.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
A = B^{\text{T}}
\end{equation}
This sntence contains a typo. % LTeX marks a spelling mistake
\begin{equation}
A = B^{\text T}
\end{equation}
This sntence contains a typo. % LTeX does not mark a spelling mistake
\end{document}
LTeX configuration
Please paste all configuration settings starting with ltex.
from your settings.json
. You can help us by temporarily removing some irrelevant settings from your settings.json
and see if the bug still occurs.
{
"enabled": [
"bibtex",
"latex"
],
"language": "en-GB",
"dictionary": {},
"disabledRules": {},
"enabledRules": {
"en-GB": [
"OXFORD_SPELLING_NOUNS"
]
},
"hiddenFalsePositives": {},
"bibtex": {
"fields": {}
},
"latex": {
"commands": {},
"environments": {}
},
"markdown": {
"nodes": {}
},
"configurationTarget": {
"dictionary": "workspaceFolderExternalFile",
"disabledRules": "workspaceFolderExternalFile",
"hiddenFalsePositives": "workspaceFolderExternalFile"
},
"additionalRules": {
"enablePickyRules": true,
"motherTongue": "",
"languageModel": "",
"neuralNetworkModel": "",
"word2VecModel": ""
},
"languageToolHttpServerUri": "",
"languageToolOrg": {
"username": "",
"apiKey": ""
},
"ltex-ls": {
"path": "",
"logLevel": "fine",
"languageToolHttpServerUri": "",
"languageToolOrgUsername": "",
"languageToolOrgApiKey": ""
},
"java": {
"path": "",
"initialHeapSize": 64,
"maximumHeapSize": 512
},
"sentenceCacheSize": 2000,
"completionEnabled": false,
"diagnosticSeverity": {
"PASSIVE_VOICE": "hint",
"default": "information"
},
"checkFrequency": "edit",
"clearDiagnosticsWhenClosingFile": true,
"statusBarItem": false,
"trace": {
"server": "verbose"
}
}
"LTeX Language Server" log file
First, reproduce the bug. Then, go to View
→ Output
and select LTeX Language Server
in the drop-down list. Paste this log here:
[Info - 13:56:02] Starte ltex-ls ...
Juli 11, 2022 1:56:07 NACHM. org.bsplines.ltexls.server.LtexLanguageServer initialize
INFORMATION: ltex-ls 15.2.0 - initializing...
Juli 11, 2022 1:56:07 NACHM. org.bsplines.ltexls.tools.I18n setLocale
INFORMATION: Setting locale to 'en'
Juli 11, 2022 1:56:07 NACHM. org.bsplines.ltexls.settings.SettingsManager$Companion logDifferentSettings
FEIN: Reinitializing LanguageTool due to different settings for language 'en-GB': setting 'settings', old 'null', new 'non-null'
Juli 11, 2022 1:56:08 NACHM. org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FEIN: Checking the following text in language 'en-GB' via LanguageTool: " Dummy0T This sntence contains a typo. Dummy1T "
Juli 11, 2022 1:56:13 NACHM. org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FEIN: Obtained 1 rule match
"LTeX Language Client" log file
First, set the ltex.trace.server
setting in your settings.json
to "verbose"
. Then, reload the VS Code window and reproduce the bug. Go to View
→ Output
and select LTeX Language Client
in the drop-down list. Paste this log here (note: it will contain your checked document):
2022-07-11T11:56:00.911Z Info: Setting LTeX UI language to 'de'.
2022-07-11T11:56:00.911Z Info: Loading i18n messages...
2022-07-11T11:56:00.912Z Info: Loading default i18n messages...
2022-07-11T11:56:00.915Z Info:
2022-07-11T11:56:00.915Z Info: ltex.ltex-ls.path not set.
2022-07-11T11:56:00.915Z Info: Searching for ltex-ls in '/Users/Thomas/.vscode/extensions/valentjn.vscode-ltex-13.1.0/lib'...
2022-07-11T11:56:00.917Z Info: ltex-ls found in '/Users/Thomas/.vscode/extensions/valentjn.vscode-ltex-13.1.0/lib/ltex-ls-15.2.0'.
2022-07-11T11:56:00.917Z Info:
2022-07-11T11:56:00.917Z Info: Using ltex-ls from '/Users/Thomas/.vscode/extensions/valentjn.vscode-ltex-13.1.0/lib/ltex-ls-15.2.0'.
2022-07-11T11:56:00.917Z Info: Using Java bundled with ltex-ls as ltex.java.path is not set.
2022-07-11T11:56:00.923Z Info: Testing ltex-ls...
2022-07-11T11:56:00.923Z Info: Command: "/Users/Thomas/.vscode/extensions/valentjn.vscode-ltex-13.1.0/lib/ltex-ls-15.2.0/bin/ltex-ls"
2022-07-11T11:56:00.923Z Info: Arguments: ["--version"]
2022-07-11T11:56:00.923Z Info: env['JAVA_HOME']: undefined
2022-07-11T11:56:00.923Z Info: env['JAVA_OPTS']: "-Xms64m -Xmx512m"
2022-07-11T11:56:02.292Z Info: Test successful!
2022-07-11T11:56:02.298Z Info:
2022-07-11T11:56:02.308Z Info: Starte ltex-ls ...
2022-07-11T11:56:02.308Z Info: Command: "/Users/Thomas/.vscode/extensions/valentjn.vscode-ltex-13.1.0/lib/ltex-ls-15.2.0/bin/ltex-ls"
2022-07-11T11:56:02.308Z Info: Arguments: []
2022-07-11T11:56:02.308Z Info: env['JAVA_HOME']: undefined
2022-07-11T11:56:02.308Z Info: env['JAVA_OPTS']: "-Xms64m -Xmx512m"
2022-07-11T11:56:02.308Z Info:
[Trace - 13:56:02] Sending request 'initialize - (0)'.
Params: {
"processId": 3852,
"clientInfo": {
"name": "Visual Studio Code",
"version": "1.69.0"
},
"locale": "de",
"rootPath": "/Users/Thomas/Documents/Ablage/ltex",
"rootUri": "file:///Users/Thomas/Documents/Ablage/ltex",
"capabilities": {
"workspace": {
"applyEdit": true,
"workspaceEdit": {
"documentChanges": true,
"resourceOperations": [
"create",
"rename",
"delete"
],
"failureHandling": "textOnlyTransactional",
"normalizesLineEndings": true,
"changeAnnotationSupport": {
"groupsOnLabel": true
}
},
"didChangeConfiguration": {
"dynamicRegistration": true
},
"didChangeWatchedFiles": {
"dynamicRegistration": true
},
"symbol": {
"dynamicRegistration": true,
"symbolKind": {
"valueSet": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26
]
},
"tagSupport": {
"valueSet": [
1
]
}
},
"codeLens": {
"refreshSupport": true
},
"executeCommand": {
"dynamicRegistration": true
},
"configuration": true,
"workspaceFolders": true,
"semanticTokens": {
"refreshSupport": true
},
"fileOperations": {
"dynamicRegistration": true,
"didCreate": true,
"didRename": true,
"didDelete": true,
"willCreate": true,
"willRename": true,
"willDelete": true
}
},
"textDocument": {
"publishDiagnostics": {
"relatedInformation": true,
"versionSupport": false,
"tagSupport": {
"valueSet": [
1,
2
]
},
"codeDescriptionSupport": true,
"dataSupport": true
},
"synchronization": {
"dynamicRegistration": true,
"willSave": true,
"willSaveWaitUntil": true,
"didSave": true
},
"completion": {
"dynamicRegistration": true,
"contextSupport": true,
"completionItem": {
"snippetSupport": true,
"commitCharactersSupport": true,
"documentationFormat": [
"markdown",
"plaintext"
],
"deprecatedSupport": true,
"preselectSupport": true,
"tagSupport": {
"valueSet": [
1
]
},
"insertReplaceSupport": true,
"resolveSupport": {
"properties": [
"documentation",
"detail",
"additionalTextEdits"
]
},
"insertTextModeSupport": {
"valueSet": [
1,
2
]
}
},
"completionItemKind": {
"valueSet": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25
]
}
},
"hover": {
"dynamicRegistration": true,
"contentFormat": [
"markdown",
"plaintext"
]
},
"signatureHelp": {
"dynamicRegistration": true,
"signatureInformation": {
"documentationFormat": [
"markdown",
"plaintext"
],
"parameterInformation": {
"labelOffsetSupport": true
},
"activeParameterSupport": true
},
"contextSupport": true
},
"definition": {
"dynamicRegistration": true,
"linkSupport": true
},
"references": {
"dynamicRegistration": true
},
"documentHighlight": {
"dynamicRegistration": true
},
"documentSymbol": {
"dynamicRegistration": true,
"symbolKind": {
"valueSet": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26
]
},
"hierarchicalDocumentSymbolSupport": true,
"tagSupport": {
"valueSet": [
1
]
},
"labelSupport": true
},
"codeAction": {
"dynamicRegistration": true,
"isPreferredSupport": true,
"disabledSupport": true,
"dataSupport": true,
"resolveSupport": {
"properties": [
"edit"
]
},
"codeActionLiteralSupport": {
"codeActionKind": {
"valueSet": [
"",
"quickfix",
"refactor",
"refactor.extract",
"refactor.inline",
"refactor.rewrite",
"source",
"source.organizeImports"
]
}
},
"honorsChangeAnnotations": false
},
"codeLens": {
"dynamicRegistration": true
},
"formatting": {
"dynamicRegistration": true
},
"rangeFormatting": {
"dynamicRegistration": true
},
"onTypeFormatting": {
"dynamicRegistration": true
},
"rename": {
"dynamicRegistration": true,
"prepareSupport": true,
"prepareSupportDefaultBehavior": 1,
"honorsChangeAnnotations": true
},
"documentLink": {
"dynamicRegistration": true,
"tooltipSupport": true
},
"typeDefinition": {
"dynamicRegistration": true,
"linkSupport": true
},
"implementation": {
"dynamicRegistration": true,
"linkSupport": true
},
"colorProvider": {
"dynamicRegistration": true
},
"foldingRange": {
"dynamicRegistration": true,
"rangeLimit": 5000,
"lineFoldingOnly": true
},
"declaration": {
"dynamicRegistration": true,
"linkSupport": true
},
"selectionRange": {
"dynamicRegistration": true
},
"callHierarchy": {
"dynamicRegistration": true
},
"semanticTokens": {
"dynamicRegistration": true,
"tokenTypes": [
"namespace",
"type",
"class",
"enum",
"interface",
"struct",
"typeParameter",
"parameter",
"variable",
"property",
"enumMember",
"event",
"function",
"method",
"macro",
"keyword",
"modifier",
"comment",
"string",
"number",
"regexp",
"operator"
],
"tokenModifiers": [
"declaration",
"definition",
"readonly",
"static",
"deprecated",
"abstract",
"async",
"modification",
"documentation",
"defaultLibrary"
],
"formats": [
"relative"
],
"requests": {
"range": true,
"full": {
"delta": true
}
},
"multilineTokenSupport": false,
"overlappingTokenSupport": false
},
"linkedEditingRange": {
"dynamicRegistration": true
}
},
"window": {
"showMessage": {
"messageActionItem": {
"additionalPropertiesSupport": true
}
},
"showDocument": {
"support": true
},
"workDoneProgress": true
},
"general": {
"regularExpressions": {
"engine": "ECMAScript",
"version": "ES2020"
},
"markdown": {
"parser": "marked",
"version": "1.1.0"
}
}
},
"initializationOptions": {
"locale": "en",
"customCapabilities": {
"workspaceSpecificConfiguration": true
}
},
"trace": "verbose",
"workspaceFolders": [
{
"uri": "file:///Users/Thomas/Documents/Ablage/ltex",
"name": "ltex"
}
]
}
[Trace - 13:56:07] Received response 'initialize - (0)' in 5255ms.
Result: {
"capabilities": {
"textDocumentSync": 1,
"completionProvider": {},
"codeActionProvider": {
"codeActionKinds": [
"quickfix.ltex.acceptSuggestions"
]
},
"executeCommandProvider": {
"commands": [
"_ltex.checkDocument",
"_ltex.getServerStatus"
]
}
}
}
[Trace - 13:56:07] Sending notification 'initialized'.
Params: {}
[Trace - 13:56:07] Sending notification 'workspace/didChangeConfiguration'.
Params: {
"settings": {
"ltex": {
"enabled": [
"bibtex",
"latex"
],
"language": "en-GB",
"dictionary": {},
"disabledRules": {},
"enabledRules": {
"en-GB": [
"OXFORD_SPELLING_NOUNS"
]
},
"hiddenFalsePositives": {},
"bibtex": {
"fields": {}
},
"latex": {
"commands": {},
"environments": {}
},
"markdown": {
"nodes": {}
},
"configurationTarget": {
"dictionary": "workspaceFolderExternalFile",
"disabledRules": "workspaceFolderExternalFile",
"hiddenFalsePositives": "workspaceFolderExternalFile"
},
"additionalRules": {
"enablePickyRules": true,
"motherTongue": "",
"languageModel": "",
"neuralNetworkModel": "",
"word2VecModel": ""
},
"languageToolHttpServerUri": "",
"languageToolOrg": {
"username": "",
"apiKey": ""
},
"ltex-ls": {
"path": "",
"logLevel": "fine",
"languageToolHttpServerUri": "",
"languageToolOrgUsername": "",
"languageToolOrgApiKey": ""
},
"java": {
"path": "",
"initialHeapSize": 64,
"maximumHeapSize": 512
},
"sentenceCacheSize": 2000,
"completionEnabled": false,
"diagnosticSeverity": {
"PASSIVE_VOICE": "hint",
"default": "information"
},
"checkFrequency": "edit",
"clearDiagnosticsWhenClosingFile": true,
"statusBarItem": false,
"trace": {
"server": "verbose"
}
}
}
}
[Trace - 13:56:07] Sending notification 'textDocument/didOpen'.
Params: {
"textDocument": {
"uri": "file:///Users/Thomas/Documents/Ablage/ltex/bug_text.tex",
"languageId": "latex",
"version": 1,
"text": "\\documentclass{article}\n\\usepackage{amsmath}\n\\begin{document}\n\\begin{equation}\n\tA = B^{\\text{T}}\n\\end{equation}\nThis sntence contains a typo.\n\\begin{equation}\n\tA = B^{\\text T}\n\\end{equation}\nThis sntence contains a typo.\n\\end{document}"
}
}
[Trace - 13:56:07] Sending request 'textDocument/codeAction - (1)'.
Params: {
"textDocument": {
"uri": "file:///Users/Thomas/Documents/Ablage/ltex/bug_text.tex"
},
"range": {
"start": {
"line": 11,
"character": 14
},
"end": {
"line": 11,
"character": 14
}
},
"context": {
"diagnostics": []
}
}
[Trace - 13:56:07] Received request 'window/workDoneProgress/create - (1)'.
Params: {
"token": "{\"uri\":\"file:///Users/Thomas/Documents/Ablage/ltex/bug_text.tex\",\"operation\":\"checkDocument\",\"uuid\":\"cff53cdd-1b4d-f097-fe4a-1b882ccf732d\"}"
}
[Trace - 13:56:07] Sending response 'window/workDoneProgress/create - (1)'. Processing request took 0ms
No result returned.
[Trace - 13:56:07] Received response 'textDocument/codeAction - (1)' in 15ms.
Result: []
[Trace - 13:56:07] Received notification '$/progress'.
Params: {
"token": "{\"uri\":\"file:///Users/Thomas/Documents/Ablage/ltex/bug_text.tex\",\"operation\":\"checkDocument\",\"uuid\":\"cff53cdd-1b4d-f097-fe4a-1b882ccf732d\"}",
"value": {
"kind": "begin",
"title": "Checking document",
"cancellable": false,
"message": "file:///Users/Thomas/Documents/Ablage/ltex/bug_text.tex"
}
}
[Trace - 13:56:07] Received request 'workspace/configuration - (2)'.
Params: {
"items": [
{
"scopeUri": "file:///Users/Thomas/Documents/Ablage/ltex/bug_text.tex",
"section": "ltex"
}
]
}
[Trace - 13:56:07] Sending response 'workspace/configuration - (2)'. Processing request took 1ms
Result: [
{
"enabled": [
"bibtex",
"latex"
],
"language": "en-GB",
"dictionary": {},
"disabledRules": {},
"enabledRules": {
"en-GB": [
"OXFORD_SPELLING_NOUNS"
]
},
"hiddenFalsePositives": {},
"bibtex": {
"fields": {}
},
"latex": {
"commands": {},
"environments": {}
},
"markdown": {
"nodes": {}
},
"configurationTarget": {
"dictionary": "workspaceFolderExternalFile",
"disabledRules": "workspaceFolderExternalFile",
"hiddenFalsePositives": "workspaceFolderExternalFile"
},
"additionalRules": {
"enablePickyRules": true,
"motherTongue": "",
"languageModel": "",
"neuralNetworkModel": "",
"word2VecModel": ""
},
"languageToolHttpServerUri": "",
"languageToolOrg": {
"username": "",
"apiKey": ""
},
"ltex-ls": {
"path": "",
"logLevel": "fine",
"languageToolHttpServerUri": "",
"languageToolOrgUsername": "",
"languageToolOrgApiKey": ""
},
"java": {
"path": "",
"initialHeapSize": 64,
"maximumHeapSize": 512
},
"sentenceCacheSize": 2000,
"completionEnabled": false,
"diagnosticSeverity": {
"PASSIVE_VOICE": "hint",
"default": "information"
},
"checkFrequency": "edit",
"clearDiagnosticsWhenClosingFile": true,
"statusBarItem": false,
"trace": {
"server": "verbose"
}
}
]
[Trace - 13:56:07] Received request 'ltex/workspaceSpecificConfiguration - (3)'.
Params: {
"items": [
{
"scopeUri": "file:///Users/Thomas/Documents/Ablage/ltex/bug_text.tex",
"section": "ltex"
}
]
}
2022-07-11T11:56:07.642Z Info: Started watching external setting file '/Users/Thomas/Library/Application Support/Code/User/globalStorage/valentjn.vscode-ltex/ltex.dictionary.de-DE.txt'.
2022-07-11T11:56:07.643Z Info: Started watching external setting file '/Users/Thomas/Library/Application Support/Code/User/globalStorage/valentjn.vscode-ltex/ltex.dictionary.en-GB.txt'.
2022-07-11T11:56:07.654Z Info: Started watching external setting file '/Users/Thomas/Library/Application Support/Code/User/globalStorage/valentjn.vscode-ltex/ltex.disabledRules.en-GB.txt'.
[Trace - 13:56:07] Sending response 'ltex/workspaceSpecificConfiguration - (3)'. Processing request took 41ms
Result: [
{
"dictionary": {
"auto": [],
"ar": [],
"ast-ES": [],
"be-BY": [],
"br-FR": [],
"ca-ES": [],
"ca-ES-valencia": [],
"da-DK": [],
"de": [],
"de-AT": [],
"de-CH": [],
"de-DE": [
"Jänner"
],
"de-DE-x-simple-language": [],
"el-GR": [],
"en": [],
"en-AU": [],
"en-CA": [],
"en-GB": [
"eikonal",
"homentropic",
"Levi-Civita"
],
"en-NZ": [],
"en-US": [],
"en-ZA": [],
"eo": [],
"es": [],
"es-AR": [],
"fa": [],
"fr": [],
"ga-IE": [],
"gl-ES": [],
"it": [],
"ja-JP": [],
"km-KH": [],
"nl": [],
"nl-BE": [],
"pl-PL": [],
"pt": [],
"pt-AO": [],
"pt-BR": [],
"pt-MZ": [],
"pt-PT": [],
"ro-RO": [],
"ru-RU": [],
"sk-SK": [],
"sl-SI": [],
"sv": [],
"ta-IN": [],
"tl-PH": [],
"uk-UA": [],
"zh-CN": []
},
"disabledRules": {
"auto": [],
"ar": [],
"ast-ES": [],
"be-BY": [],
"br-FR": [],
"ca-ES": [],
"ca-ES-valencia": [],
"da-DK": [],
"de": [],
"de-AT": [],
"de-CH": [],
"de-DE": [],
"de-DE-x-simple-language": [],
"el-GR": [],
"en": [],
"en-AU": [],
"en-CA": [],
"en-GB": [
"OXFORD_SPELLING_Z_NOT_S"
],
"en-NZ": [],
"en-US": [],
"en-ZA": [],
"eo": [],
"es": [],
"es-AR": [],
"fa": [],
"fr": [],
"ga-IE": [],
"gl-ES": [],
"it": [],
"ja-JP": [],
"km-KH": [],
"nl": [],
"nl-BE": [],
"pl-PL": [],
"pt": [],
"pt-AO": [],
"pt-BR": [],
"pt-MZ": [],
"pt-PT": [],
"ro-RO": [],
"ru-RU": [],
"sk-SK": [],
"sl-SI": [],
"sv": [],
"ta-IN": [],
"tl-PH": [],
"uk-UA": [],
"zh-CN": []
},
"enabledRules": {
"auto": [],
"ar": [],
"ast-ES": [],
"be-BY": [],
"br-FR": [],
"ca-ES": [],
"ca-ES-valencia": [],
"da-DK": [],
"de": [],
"de-AT": [],
"de-CH": [],
"de-DE": [],
"de-DE-x-simple-language": [],
"el-GR": [],
"en": [],
"en-AU": [],
"en-CA": [],
"en-GB": [
"OXFORD_SPELLING_NOUNS"
],
"en-NZ": [],
"en-US": [],
"en-ZA": [],
"eo": [],
"es": [],
"es-AR": [],
"fa": [],
"fr": [],
"ga-IE": [],
"gl-ES": [],
"it": [],
"ja-JP": [],
"km-KH": [],
"nl": [],
"nl-BE": [],
"pl-PL": [],
"pt": [],
"pt-AO": [],
"pt-BR": [],
"pt-MZ": [],
"pt-PT": [],
"ro-RO": [],
"ru-RU": [],
"sk-SK": [],
"sl-SI": [],
"sv": [],
"ta-IN": [],
"tl-PH": [],
"uk-UA": [],
"zh-CN": []
},
"hiddenFalsePositives": {
"auto": [],
"ar": [],
"ast-ES": [],
"be-BY": [],
"br-FR": [],
"ca-ES": [],
"ca-ES-valencia": [],
"da-DK": [],
"de": [],
"de-AT": [],
"de-CH": [],
"de-DE": [],
"de-DE-x-simple-language": [],
"el-GR": [],
"en": [],
"en-AU": [],
"en-CA": [],
"en-GB": [],
"en-NZ": [],
"en-US": [],
"en-ZA": [],
"eo": [],
"es": [],
"es-AR": [],
"fa": [],
"fr": [],
"ga-IE": [],
"gl-ES": [],
"it": [],
"ja-JP": [],
"km-KH": [],
"nl": [],
"nl-BE": [],
"pl-PL": [],
"pt": [],
"pt-AO": [],
"pt-BR": [],
"pt-MZ": [],
"pt-PT": [],
"ro-RO": [],
"ru-RU": [],
"sk-SK": [],
"sl-SI": [],
"sv": [],
"ta-IN": [],
"tl-PH": [],
"uk-UA": [],
"zh-CN": []
}
}
]
[Trace - 13:56:13] Received notification '$/progress'.
Params: {
"token": "{\"uri\":\"file:///Users/Thomas/Documents/Ablage/ltex/bug_text.tex\",\"operation\":\"checkDocument\",\"uuid\":\"cff53cdd-1b4d-f097-fe4a-1b882ccf732d\"}",
"value": {
"kind": "end"
}
}
[Trace - 13:56:13] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///Users/Thomas/Documents/Ablage/ltex/bug_text.tex",
"diagnostics": [
{
"range": {
"start": {
"line": 6,
"character": 5
},
"end": {
"line": 6,
"character": 12
}
},
"severity": 3,
"code": "MORFOLOGIK_RULE_EN_GB",
"codeDescription": {
"href": "https://community.languagetool.org/rule/show/MORFOLOGIK_RULE_EN_GB?lang=en-GB"
},
"source": "LTeX",
"message": "'sntence': Possible spelling mistake found."
}
]
}
[Trace - 13:56:13] Sending request 'textDocument/codeAction - (2)'.
Params: {
"textDocument": {
"uri": "file:///Users/Thomas/Documents/Ablage/ltex/bug_text.tex"
},
"range": {
"start": {
"line": 11,
"character": 14
},
"end": {
"line": 11,
"character": 14
}
},
"context": {
"diagnostics": []
}
}
[Trace - 13:56:13] Received response 'textDocument/codeAction - (2)' in 2ms.
Result: []
2022-07-11T11:57:41.338Z Info: Creating bug report...
[Trace - 13:57:41] Sending request 'workspace/executeCommand - (3)'.
Params: {
"command": "_ltex.getServerStatus",
"arguments": []
}
Version information List here the version information of the relevant software.
- Operating system: Darwin (darwin), x64, 19.6.0
- VS Code: 1.69.0
- vscode-ltex: 13.1.0
- ltex-ls: 15.2.0
- Java: 11.0.12
Additional context/information You can add any other context or information about the problem here.
I came across the same issue. In equations, \text{whatever} is fine, but \text {whatever} with a space between \text and the curly braces turn off spell checking for the rest of the document, but doesn't influence checking before it.