/** */ Style comments in code examples don't convert correctly
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- Ein halber Tag
- Anfängerfreundlichkeit
- 55/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- documentation
Rechercherichtung
Start by tracing how TypeScript builds the documentation displayed in VS Code hover popups, then find the code that handles escaped characters in JavaDoc comments. Reproduce the reported case with the nested /** ... */ example and check whether \/ and \@ are displayed without their escape characters. Done when the popup output matches the expected example while ordinary comment parsing remains correct.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
🔎 Search Terms
I'm trying to put a code example in a JavaDoc comment. However, the escaped characters show up as escape characters instead of the regular characters I'm trying to display. For example;
/**
* \/** comment in comment *\/
*/
Turns into
\/** comment in comment *\/
But should turn into;
/** comment in comment */
🕗 Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about javadocs.
⏯ Playground Link
No response
💻 Code
The input code
/**
* @see {@link I_Trial}
* An API trial is a trial that should be used to test an API (expanded as an Application Programming Interface ).
* This could be an internal interface of a program, a public command-line interface between programs, or a RESTful or other web-based interface.
* In other words, this kind of trial is the catch-all when nother trial type does not seem appropriate for your tests use an ApiTrial.
* For example;
*
* ```
* import { I_Class} from '@ts.adligo.org/i_obj/dist/i_obj.mjs';
* import { I_AssertionContext } from '@ts.adligo.org/i_tests4ts/dist/i_assertions.mjs';
* import { I_Trial } from '@ts.adligo.org/i_tests4ts/dist/i_tests4ts.mjs';
* import { ApiTrial} from '@ts.adligo.org/tests4ts/dist/trials.mjs';
*
* export class FooApiTrial extends ApiTrial {
* public static readonly CLASS_NAME = 'FooApiTrial';
* public static readonly CLAZZ_NAME = PROC_TESTS_PACKAGE_DOT + FooApiTrial.CLASS_NAME;
*
*
* \/** \@see {\@link I_Class}
* * Also note this fulll package and class name allows (Hudson, Jenkins) or Travis CI (continuous integration) tools
* * the ability to group Trials and their tests by package and class name. Hudson, Jenkins and Travis all have
* * great JUnit results charts and drill down interfaces that tests4ts is integrated with.
* *\/
* getClass(): string { return FooApiTrial.CLAZZ_NAME; }
*
* testSomethingCool(ac: I_AssertionContext) {
* ac.isTrue(false);
* }
* }
* ```
*
* Note the example is copy and pasteable from the VSCode hover over (intellisence) javadoc popup.
*/
The expected output (intellisence popup in VS Code);
import { I_Class} from '@ts.adligo.org/i_obj/dist/i_obj.mjs';
import { I_AssertionContext } from '@ts.adligo.org/i_tests4ts/dist/i_assertions.mjs';
import { I_Trial } from '@ts.adligo.org/i_tests4ts/dist/i_tests4ts.mjs';
import { ApiTrial} from '@ts.adligo.org/tests4ts/dist/trials.mjs';
export class FooApiTrial extends ApiTrial {
public static readonly CLASS_NAME = 'FooApiTrial';
public static readonly CLAZZ_NAME = PROC_TESTS_PACKAGE_DOT + FooApiTrial.CLASS_NAME;
/** @see {@link I_Class}
* Also note this fulll package and class name allows (Hudson, Jenkins) or Travis CI (continuous integration) tools
* the ability to group Trials and their tests by package and class name. Hudson, Jenkins and Travis all have
* great JUnit results charts and drill down interfaces that tests4ts is integrated with.
*/
getClass(): string { return FooApiTrial.CLAZZ_NAME; }
testSomethingCool(ac: I_AssertionContext) {
ac.isTrue(false);
}
}
🙁 Actual behavior
The current output (intellisence popup in VS Code);
import { I_Class} from '@ts.adligo.org/i_obj/dist/i_obj.mjs';
import { I_AssertionContext } from '@ts.adligo.org/i_tests4ts/dist/i_assertions.mjs';
import { I_Trial } from '@ts.adligo.org/i_tests4ts/dist/i_tests4ts.mjs';
import { ApiTrial} from '@ts.adligo.org/tests4ts/dist/trials.mjs';
export class FooApiTrial extends ApiTrial {
public static readonly CLASS_NAME = 'FooApiTrial';
public static readonly CLAZZ_NAME = PROC_TESTS_PACKAGE_DOT + FooApiTrial.CLASS_NAME;
\/** \@see {\@link I_Class}
* Also note this fulll package and class name allows (Hudson, Jenkins) or Travis CI (continuous integration) tools
* the ability to group Trials and their tests by package and class name. Hudson, Jenkins and Travis all have
* great JUnit results charts and drill down interfaces that tests4ts is integrated with.
*\/
getClass(): string { return FooApiTrial.CLAZZ_NAME; }
testSomethingCool(ac: I_AssertionContext) {
ac.isTrue(false);
}
}
🙂 Expected behavior
I don't expect to see the escape characters in the JavaDoc pop-up menu, i.e. I'm seeing '/' or '@' and want to see '/' or '@' respectively.
Additional information about the issue
No response
- Vorherrschende Sprache
- Go
- Sterne
- 112k
- Forks
- 15.4k
- Ø Merge
- 2 T. 21 Std.
- Gemergte PRs (30 T.)
- 126
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus microsoft/TypeScript
-
Native API: formatDiagnosticsWithColorAndContext drops related information without a file locationEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
microsoft/TypeScript#65087 ·
Maintainer antworten meist innerhalb von 1 Tag
-
API: `tsc.exe` opens a visible console window on Windows when the parent process has no consoleOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
microsoft/TypeScript#65083 ·
Maintainer antworten meist innerhalb von 1 Tag
-
TS7 LSP: documentHighlight returns nothing when the file path contains '@'Evtl. wieder frei Ein Pull Request dazu wurde ohne Merge geschlossen. OffenBug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
microsoft/TypeScript#64758 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Language server (tsc --lsp) exits with code 1 after `shutdown` and `exit`Evtl. vergeben @rajnish-verma-22172 hat das vor 12 Tagen übernommen. OffenBug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
microsoft/TypeScript#64742 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Class names `eval` and `arguments` are not reported as invalid strict mode bindingsEvtl. vergeben @dmety hat das vor 25 Tagen übernommen. OffenBug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
microsoft/TypeScript#64661 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in microsoft/TypeScript
Ähnliche Issues
-
bug good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
-
[mesheryctl] design delete fails when passing file or URL as positional argumentEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offencomponent/mesheryctl kind/bug language/go
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
meshery/meshery#22772 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
backend security size:S
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
limitlessprojects/Go-Hybrid#3342 ·
Maintainer antworten meist innerhalb von 1 Tag
-
status/ready type/bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
buildpacks/pack#2733 ·
Maintainer antworten meist innerhalb von 1 Tag