Skip to content

【insiders.vscode.dev】Hold down ctrl and click the function name, two d.ts files with the same content but different paths will be displayed. #226939

Open

Description

Although the jQuery library has been installed locally via npm, if you hold down ctrl and click the function name, two d.ts files with the same content but different paths will be displayed.

Steps to Reproduce:

1.Create a jquery demo folder on my local computer,,
2.npm i @types/jquery
3.Open the URL https://insiders.vscode.dev/ through the latest Chrome browser, click open folder, and select the jquerydemo folder created in the first step above
4.Open the index.js file and holding down ctrl and clicking the ajax function name, the tow JQueryStatic.d.ts files with the same content but different paths will be displayed.

The paths of the two JQueryStatic.d.ts files displayed are as follows:
1.\frontend\node_modules@types\jquery\JQueryStatic.d.ts
2.\file\ts-nul-authority\frontend\node_modules@types\jquery\JQueryStatic.d.ts

The project already has the @types\jquery file, so I think there is no need to reload the https://registry.npmjs.org/@types/jquery/-/jquery-3.5.30.tgz library.

Thank you !

Please see the following figure:

CH}B3R@FB~NWLG3%)R@5DC9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugtypescriptTypescript support issueswebIssues related to running VSCode in the web

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions