Skip to content

Jsdoc https @link text not parsed properly #46734

@NorthBlue333

Description

@NorthBlue333

TS Template added by @mjbvz

TypeScript Version: 4.6.0-dev.20211108

Search Terms

  • jsdoc
  • quick info

Does this issue occur when all extensions are disabled?: Yes

After searching the issues, I have found relevant ones :

They are closed since v1.58.0 with this commit microsoft/vscode@7339e94. I don't know if they are related or not.


sandbox-jsdoc-vscode-4.4.3
Using VSCode v1.62 shipped with TypeScript v4.4.3, the url gets splitted after https?.

sandbox-jsdoc-vscode-4.2.4
Using TypeScript v4.2.4 only URLs work, not symbols.

sandbox-jsdoc-vscode-4.3.5
Using TypeScript v4.3.5, everything works fine.

I do not understand why the JSDoc implementation on VSCode is dependent of TypeScript version even in pure JS files. I apologize if TypeScript version older than v4.3 are not supported, and I think they are not by reading the issues about implementing @link.

There is still an issue with the latest version.

I currently do not have the time to investigate more, sorry for that. Thanks for reading me!

Here is the sample of code I used :

class MyClass {
  foo;
}

/**
 * See {@link MyClass} and {@link MyClass.foo foo}.
 * Also, check out {@link http://www.google.com} and
 * {@link https://github.com GitHub}.
 * 
 * 
 * 
 */
function myFunction() {}

VSCode About section :

Version: 1.62.0
Commit: b3318bc0524af3d74034b8bb8a64df0ccf35549a
Date: 2021-11-03T15:18:44.904Z
Electron: 13.5.1
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Linux x64 5.4.0-89-generic

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions