Skip to content

False positive when using microtype: "Don't put a space before the full stop." #109

@HMegh

Description

@HMegh

Describe the bug
In the example shown below, the extension reports Don't put a space before the full stop. when no full stops exist.

2024-12-26T13:51:17,168865166-05:00

Steps to reproduce
Steps to reproduce the behavior:

  1. Copy my source code from below to a .tex document
  2. Perform spellcheck
  3. lines 2 through six show the warning.

Expected behavior
No warning should be reported.

Sample document

Details
\documentclass{article}
\usepackage{microtype}

\makeatletter
\patchcmd{\@settitle}{\uppercasenonmath\@title}{}{}{}
\patchcmd{\section}{\scshape}{}{}{}
\makeatother

\begin{document}
Test
\end{document}

LTeX+ configuration
Default config.

"LTeX+ Language Server" log file

Details
[Info  - 2:35:55 PM] Starting ltex-ls...
Dec 26, 2024 2:36:00 PM org.bsplines.ltexls.server.LtexLanguageServer initialize
INFO: ltex-ls 18.4.0 - initializing...
Dec 26, 2024 2:36:00 PM org.bsplines.ltexls.tools.I18n setLocale
INFO: Setting locale to 'en'
Dec 26, 2024 2:36:00 PM org.bsplines.ltexls.server.LtexTextDocumentItem raiseExceptionIfCanceled
FINE: Canceling check due to incoming check request...
Dec 26, 2024 2:36:00 PM org.bsplines.ltexls.server.DocumentChecker logTextToBeChecked
FINE: Checking the following text in language 'en-US' via LanguageTool: " \n\n    . . \n\nTest "
Dec 26, 2024 2:36:01 PM org.bsplines.ltexls.server.DocumentChecker checkAnnotatedTextFragment
FINE: 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 ViewOutput and select LTeX Language Client in the drop-down list. Paste this log here (note: it will contain your checked document):

Details
2024-12-26T19:35:55.138Z Info: Setting LTeX UI language to 'en-us'.
2024-12-26T19:35:55.138Z Info: Loading i18n messages...
2024-12-26T19:35:55.138Z Info: Loading default i18n messages...
2024-12-26T19:35:55.140Z Info: 
2024-12-26T19:35:55.140Z Info: ltex.ltex-ls.path not set.
2024-12-26T19:35:55.140Z Info: Searching for ltex-ls in '/home/haroun/.vscode/extensions/ltex-plus.vscode-ltex-plus-15.4.0/lib'...
2024-12-26T19:35:55.140Z Info: ltex-ls found in '/home/haroun/.vscode/extensions/ltex-plus.vscode-ltex-plus-15.4.0/lib/ltex-ls-plus-18.4.0'.
2024-12-26T19:35:55.140Z Info: 
2024-12-26T19:35:55.140Z Info: Using ltex-ls from '/home/haroun/.vscode/extensions/ltex-plus.vscode-ltex-plus-15.4.0/lib/ltex-ls-plus-18.4.0'.
2024-12-26T19:35:55.140Z Info: Using Java bundled with ltex-ls as ltex.java.path is not set.
2024-12-26T19:35:55.141Z Info: Testing ltex-ls...
2024-12-26T19:35:55.141Z Info:   Command: "/home/haroun/.vscode/extensions/ltex-plus.vscode-ltex-plus-15.4.0/lib/ltex-ls-plus-18.4.0/bin/ltex-ls-plus"
2024-12-26T19:35:55.141Z Info:   Arguments: ["--version"]
2024-12-26T19:35:55.141Z Info:   env['JAVA_HOME']: undefined
2024-12-26T19:35:55.141Z Info:   env['JAVA_OPTS']: "-Xms64m -Xmx2048m"
2024-12-26T19:35:55.384Z Info: Test successful!
2024-12-26T19:35:55.384Z Info: 
2024-12-26T19:35:55.387Z Info: Starting ltex-ls...
2024-12-26T19:35:55.387Z Info:   Command: "/home/haroun/.vscode/extensions/ltex-plus.vscode-ltex-plus-15.4.0/lib/ltex-ls-plus-18.4.0/bin/ltex-ls-plus"
2024-12-26T19:35:55.387Z Info:   Arguments: []
2024-12-26T19:35:55.387Z Info:   env['JAVA_HOME']: undefined
2024-12-26T19:35:55.387Z Info:   env['JAVA_OPTS']: "-Xms64m -Xmx2048m"
2024-12-26T19:35:55.387Z Info: 
[Trace - 2:35:55 PM] Sending request 'initialize - (0)'.
Params: {
    "processId": 25908,
    "clientInfo": {
        "name": "Visual Studio Code",
        "version": "1.96.2"
    },
    "locale": "en",
    "rootPath": "/home/haroun/VAR/tex/rand",
    "rootUri": "file:///home/haroun/VAR/tex/rand",
    "capabilities": {
        "workspace": {
            "applyEdit": true,
            "workspaceEdit": {
                "documentChanges": true,
                "resourceOperations": [
                    "create",
                    "rename",
                    "delete"
                ],
                "failureHandling": "textOnlyTransactional",
                "normalizesLineEndings": true,
                "changeAnnotationSupport": {
                    "groupsOnLabel": true
                }
            },
            "configuration": true,
            "didChangeWatchedFiles": {
                "dynamicRegistration": true,
                "relativePatternSupport": 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
                    ]
                },
                "resolveSupport": {
                    "properties": [
                        "location.range"
                    ]
                }
            },
            "codeLens": {
                "refreshSupport": true
            },
            "executeCommand": {
                "dynamicRegistration": true
            },
            "didChangeConfiguration": {
                "dynamicRegistration": true
            },
            "workspaceFolders": true,
            "foldingRange": {
                "refreshSupport": true
            },
            "semanticTokens": {
                "refreshSupport": true
            },
            "fileOperations": {
                "dynamicRegistration": true,
                "didCreate": true,
                "didRename": true,
                "didDelete": true,
                "willCreate": true,
                "willRename": true,
                "willDelete": true
            },
            "inlineValue": {
                "refreshSupport": true
            },
            "inlayHint": {
                "refreshSupport": true
            },
            "diagnostics": {
                "refreshSupport": 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
                        ]
                    },
                    "labelDetailsSupport": true
                },
                "insertTextMode": 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
                    ]
                },
                "completionList": {
                    "itemDefaults": [
                        "commitCharacters",
                        "editRange",
                        "insertTextFormat",
                        "insertTextMode",
                        "data"
                    ]
                }
            },
            "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": true
            },
            "codeLens": {
                "dynamicRegistration": true
            },
            "formatting": {
                "dynamicRegistration": true
            },
            "rangeFormatting": {
                "dynamicRegistration": true,
                "rangesSupport": 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,
                "foldingRangeKind": {
                    "valueSet": [
                        "comment",
                        "imports",
                        "region"
                    ]
                },
                "foldingRange": {
                    "collapsedText": false
                }
            },
            "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",
                    "decorator"
                ],
                "tokenModifiers": [
                    "declaration",
                    "definition",
                    "readonly",
                    "static",
                    "deprecated",
                    "abstract",
                    "async",
                    "modification",
                    "documentation",
                    "defaultLibrary"
                ],
                "formats": [
                    "relative"
                ],
                "requests": {
                    "range": true,
                    "full": {
                        "delta": true
                    }
                },
                "multilineTokenSupport": false,
                "overlappingTokenSupport": false,
                "serverCancelSupport": true,
                "augmentsSyntaxTokens": true
            },
            "linkedEditingRange": {
                "dynamicRegistration": true
            },
            "typeHierarchy": {
                "dynamicRegistration": true
            },
            "inlineValue": {
                "dynamicRegistration": true
            },
            "inlayHint": {
                "dynamicRegistration": true,
                "resolveSupport": {
                    "properties": [
                        "tooltip",
                        "textEdits",
                        "label.tooltip",
                        "label.location",
                        "label.command"
                    ]
                }
            },
            "diagnostic": {
                "dynamicRegistration": true,
                "relatedDocumentSupport": false
            }
        },
        "window": {
            "showMessage": {
                "messageActionItem": {
                    "additionalPropertiesSupport": true
                }
            },
            "showDocument": {
                "support": true
            },
            "workDoneProgress": true
        },
        "general": {
            "staleRequestSupport": {
                "cancel": true,
                "retryOnContentModified": [
                    "textDocument/semanticTokens/full",
                    "textDocument/semanticTokens/range",
                    "textDocument/semanticTokens/full/delta"
                ]
            },
            "regularExpressions": {
                "engine": "ECMAScript",
                "version": "ES2020"
            },
            "markdown": {
                "parser": "marked",
                "version": "1.1.0"
            },
            "positionEncodings": [
                "utf-16"
            ]
        },
        "notebookDocument": {
            "synchronization": {
                "dynamicRegistration": true,
                "executionSummarySupport": true
            }
        }
    },
    "initializationOptions": {
        "customCapabilities": {
            "workspaceSpecificConfiguration": true
        }
    },
    "trace": "verbose",
    "workspaceFolders": [
        {
            "uri": "file:///home/haroun/VAR/tex/rand",
            "name": "rand"
        }
    ]
}


[Trace - 2:36:00 PM] Received response 'initialize - (0)' in 4893ms.
Result: {
    "capabilities": {
        "textDocumentSync": 1,
        "completionProvider": {},
        "codeActionProvider": {
            "codeActionKinds": [
                "quickfix.ltex.acceptSuggestions"
            ]
        },
        "executeCommandProvider": {
            "commands": [
                "_ltex.checkDocument",
                "_ltex.getServerStatus"
            ]
        }
    }
}


[Trace - 2:36:00 PM] Sending notification 'initialized'.
Params: {}


[Trace - 2:36:00 PM] Sending notification 'textDocument/didOpen'.
Params: {
    "textDocument": {
        "uri": "file:///home/haroun/VAR/tex/rand/red_3d.tex",
        "languageId": "latex",
        "version": 1,
        "text": "\\documentclass{article}\n\\usepackage{microtype}\n\n\\makeatletter\n\\patchcmd{\\@settitle}{\\uppercasenonmath\\@title}{}{}{}\n\\patchcmd{\\section}{\\scshape}{}{}{}\n\\makeatother\n\n\\begin{document}\nTest\n\\end{document}\n"
    }
}


[Trace - 2:36:00 PM] Sending notification 'workspace/didChangeConfiguration'.
Params: {
    "settings": {
        "ltex": {
            "enabled": [
                "bibtex",
                "context",
                "context.tex",
                "html",
                "latex",
                "markdown",
                "mdx",
                "typst",
                "org",
                "quarto",
                "restructuredtext",
                "rsweave"
            ],
            "language": "en-US",
            "dictionary": {},
            "disabledRules": {},
            "enabledRules": {},
            "hiddenFalsePositives": {},
            "bibtex": {
                "fields": {}
            },
            "latex": {
                "commands": {},
                "environments": {}
            },
            "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": "",
                "initialHeapSize": 64,
                "maximumHeapSize": 2048
            },
            "sentenceCacheSize": 2000,
            "completionEnabled": false,
            "diagnosticSeverity": "information",
            "checkFrequency": "edit",
            "clearDiagnosticsWhenClosingFile": true,
            "statusBarItem": false,
            "trace": {
                "server": "verbose"
            }
        }
    }
}


[Trace - 2:36:00 PM] Sending request 'textDocument/codeAction - (1)'.
Params: {
    "textDocument": {
        "uri": "file:///home/haroun/VAR/tex/rand/red_3d.tex"
    },
    "range": {
        "start": {
            "line": 8,
            "character": 16
        },
        "end": {
            "line": 8,
            "character": 16
        }
    },
    "context": {
        "diagnostics": [],
        "triggerKind": 2
    }
}


[Trace - 2:36:00 PM] Received request 'window/workDoneProgress/create - (1)'.
Params: {
    "token": "{\"uri\":\"file:///home/haroun/VAR/tex/rand/red_3d.tex\",\"operation\":\"checkDocument\",\"uuid\":\"681d459f-6e88-9146-c85a-271f0c00e069\"}"
}


[Trace - 2:36:00 PM] Sending response 'window/workDoneProgress/create - (1)'. Processing request took 0ms
No result returned.


[Trace - 2:36:00 PM] Received response 'textDocument/codeAction - (1)' in 5ms.
Result: []


[Trace - 2:36:00 PM] Received notification '$/progress'.
Params: {
    "token": "{\"uri\":\"file:///home/haroun/VAR/tex/rand/red_3d.tex\",\"operation\":\"checkDocument\",\"uuid\":\"681d459f-6e88-9146-c85a-271f0c00e069\"}",
    "value": {
        "kind": "end"
    }
}


[Trace - 2:36:00 PM] Received request 'window/workDoneProgress/create - (2)'.
Params: {
    "token": "{\"uri\":\"file:///home/haroun/VAR/tex/rand/red_3d.tex\",\"operation\":\"checkDocument\",\"uuid\":\"5f9fb906-382a-5075-1037-ef32d9fe950d\"}"
}


[Trace - 2:36:00 PM] Sending response 'window/workDoneProgress/create - (2)'. Processing request took 0ms
No result returned.


[Trace - 2:36:00 PM] Received notification '$/progress'.
Params: {
    "token": "{\"uri\":\"file:///home/haroun/VAR/tex/rand/red_3d.tex\",\"operation\":\"checkDocument\",\"uuid\":\"5f9fb906-382a-5075-1037-ef32d9fe950d\"}",
    "value": {
        "kind": "begin",
        "title": "Checking document",
        "cancellable": false,
        "message": "file:///home/haroun/VAR/tex/rand/red_3d.tex"
    }
}


[Trace - 2:36:00 PM] Received request 'workspace/configuration - (3)'.
Params: {
    "items": [
        {
            "scopeUri": "file:///home/haroun/VAR/tex/rand/red_3d.tex",
            "section": "ltex"
        }
    ]
}


[Trace - 2:36:00 PM] Sending response 'workspace/configuration - (3)'. Processing request took 0ms
Result: [
    {
        "enabled": [
            "bibtex",
            "context",
            "context.tex",
            "html",
            "latex",
            "markdown",
            "mdx",
            "typst",
            "org",
            "quarto",
            "restructuredtext",
            "rsweave"
        ],
        "language": "en-US",
        "dictionary": {},
        "disabledRules": {},
        "enabledRules": {},
        "hiddenFalsePositives": {},
        "bibtex": {
            "fields": {}
        },
        "latex": {
            "commands": {},
            "environments": {}
        },
        "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": "",
            "initialHeapSize": 64,
            "maximumHeapSize": 2048
        },
        "sentenceCacheSize": 2000,
        "completionEnabled": false,
        "diagnosticSeverity": "information",
        "checkFrequency": "edit",
        "clearDiagnosticsWhenClosingFile": true,
        "statusBarItem": false,
        "trace": {
            "server": "verbose"
        }
    }
]


[Trace - 2:36:00 PM] Received request 'ltex/workspaceSpecificConfiguration - (4)'.
Params: {
    "items": [
        {
            "scopeUri": "file:///home/haroun/VAR/tex/rand/red_3d.tex",
            "section": "ltex"
        }
    ]
}


2024-12-26T19:36:00.327Z Info: Started watching external setting file '/home/haroun/VAR/tex/rand/.vscode/ltex.hiddenFalsePositives.en-US.txt'.
[Trace - 2:36:00 PM] Sending response 'ltex/workspaceSpecificConfiguration - (4)'. Processing request took 15ms
Result: [
    {
        "dictionary": {
            "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": []
        },
        "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": [],
            "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": [],
            "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": [
                "{\"rule\":\"WHITESPACE_RULE\",\"sentence\":\"^$\"}"
            ],
            "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 - 2:36:01 PM] Received notification '$/progress'.
Params: {
    "token": "{\"uri\":\"file:///home/haroun/VAR/tex/rand/red_3d.tex\",\"operation\":\"checkDocument\",\"uuid\":\"5f9fb906-382a-5075-1037-ef32d9fe950d\"}",
    "value": {
        "kind": "end"
    }
}


[Trace - 2:36:01 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
    "uri": "file:///home/haroun/VAR/tex/rand/red_3d.tex",
    "diagnostics": [
        {
            "range": {
                "start": {
                    "line": 1,
                    "character": 0
                },
                "end": {
                    "line": 5,
                    "character": 33
                }
            },
            "severity": 3,
            "code": "COMMA_PARENTHESIS_WHITESPACE",
            "codeDescription": {
                "href": "https://community.languagetool.org/rule/show/COMMA_PARENTHESIS_WHITESPACE?lang=en-US"
            },
            "source": "LTeX",
            "message": "Don't put a space before the full stop."
        }
    ]
}


[Trace - 2:36:01 PM] Sending request 'textDocument/codeAction - (2)'.
Params: {
    "textDocument": {
        "uri": "file:///home/haroun/VAR/tex/rand/red_3d.tex"
    },
    "range": {
        "start": {
            "line": 8,
            "character": 16
        },
        "end": {
            "line": 8,
            "character": 16
        }
    },
    "context": {
        "diagnostics": [],
        "triggerKind": 2
    }
}


[Trace - 2:36:01 PM] Received response 'textDocument/codeAction - (2)' in 1ms.
Result: []

Version information
List here the version information of the relevant software.

  • Operating system: ArchLinux x86_64 (kernel 6.12.6-arch1-1)
  • CPU manufacturer: Intel I9-12900H
  • VS Code: 1.96.2
  • vscode-ltex-plus: 15.4.0
  • ltex-ls-plus: not installed manually.
  • Java: not installed manually

Additional context/information
The warning can be removed by using Hide false positive.

Metadata

Metadata

Assignees

Labels

1-bug 🐛Issue type: Bug report (something isn't working as expected)2-confirmedIssue status: Confirmed, reproducible bug in LTeX+

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions