microsoft / microsoft/vscode-cpptools

Description hover do not process '//=====' template

Offen
#12,958 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

bug Feature: Doc comments Language Service Works in VS
Vorherrschende Sprache
TypeScript
Sterne
6.2k
Forks
1.7k
Ø Merge
14 Std. 46 Min.
Gemergte PRs (30 T.)
61

Beschreibung

Environment
  • OS and Version: Any
  • VS Code Version: 1.96
  • C/C++ Extension Version: 1.3.0
  • If using SSH remote, specify OS of remote machine:
Bug Summary and Steps to Reproduce

Bug Summary:
Incorrect processing of comment in the next template:

//=======================================================================
// function : Save
// purpose  :
//=======================================================================
TCollection_AsciiString DE_Wrapper::Save(const Standard_Boolean theIsRecursive,
                                         const TColStd_ListOfAsciiString& theFormats,
                                         const TColStd_ListOfAsciiString& theVendors)
{

The result:
Image

For example //~~~~~ or //------ working well
Image

Steps to reproduce:

  1. Go to any c++ code and write a function separator in //=== /n ... //==== format
  2. Click on method which are having new comment
  3. See incorrect markdown processing

Note:
C_Cpp: Markdown In Comments setting in case of "disable" helps to avoid scaling of the //=== template, but === still show in hover

Expected behavior:
No scaling of the hover and no ====== is visible in comment.

Configuration and Logs
{
    "configurations": [
        {
            "name": "Linux",
            "includePath": [
                "${workspaceFolder}/src/**"
            ],
            "defines": [],
            "cStandard": "c17",
            "cppStandard": "gnu++17",
            "intelliSenseMode": "linux-clang-x64",
            "mergeConfigurations": true,
            "browse": {
                "databaseFilename": "${workspaceFolder}/build/browse.vc.db",
                "limitSymbolsToIncludedHeaders": false
            },
            "compilerPath": "/usr/bin/clang++-20",
            "compileCommands": "${workspaceFolder}/build/compile_commands.json",
            "configurationProvider": "ms-vscode.cmake-tools"
        }
    ],
    "version": 4
}
Other Extensions

No response

Additional context

No response

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Reproduziere das Problem in einer C++-Datei mit dem //===== separator und untersuche die Hover-Markdown-Verarbeitung der C/C++ extension, einschließlich der Einstellung C_Cpp: Markdown In Comments. Als erledigt gilt, wenn der Hover weder den separator skaliert noch die Gleichheitszeichen als sichtbaren Markdown-Inhalt anzeigt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
cpp, typescript, vscode
Bereich
developer-experience, tooling
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.