-
Notifications
You must be signed in to change notification settings - Fork 34k
Description
Issue Type: Bug
Steps to Reproduce:
- Open a .ts file;
- Type any code which relates to a JsDoc with
@link
.
In the doc of JsDoc, there are some way to create a link via @link
:
{@link namepathOrURL}
[link text]{@link namepathOrURL}
{@link namepathOrURL|link text}
{@link namepathOrURL link text (after the first space)}
And there is an example:
{@link https://api.jquery.com/jQuery.cssHooks/}
[jQuery.cssHooks]{@link https://api.jquery.com/jQuery.cssHooks/}
{@link https://api.jquery.com/jQuery.cssHooks/|jQuery.cssHooks}
{@link https://api.jquery.com/jQuery.cssHooks/ jQuery.cssHooks}
But when I typed $.cssHook
in a .ts file (with @types/jquery
installed), the popup window, which contains the jsdoc, shows a wrong link:
The right brace should not be parsed as a part of the link.
Then I tried the different type of the @link
:
[jQuery.cssHooks]{@link https://api.jquery.com/jQuery.cssHooks/}
:
{@link https://api.jquery.com/jQuery.cssHooks/|jQuery.cssHooks}
:
{@link https://api.jquery.com/jQuery.cssHooks/ jQuery.cssHooks}
:
So is it a bug from vscode? Or misunderstanding of the rules? Can anyone help to fix it?
(Please forgive my poor English)
VS Code version: Code 1.22.2 (3aeede7, 2018-04-12T16:38:45.278Z)
OS version: Windows_NT x64 10.0.17133
System Info
Item | Value |
---|---|
CPUs | Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz (4 x 2592) |
Memory (System) | 7.90GB (2.86GB free) |
Process Argv | C:\Program Files\Microsoft VS Code\Code.exe D:\Ann\FFXIV4.0Script |
Screen Reader | no |
VM | 0% |
Extensions (4)
Extension | Author (truncated) | Version |
---|---|---|
html-snippets | abu | 0.2.1 |
vscode-eslint | dba | 1.4.8 |
tslint | eg2 | 1.0.28 |
vetur | oct | 0.11.7 |