Description
openedon Aug 28, 2024
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: