Skip to content

The Learn More button of build-in NPM support for VS code extensions goes to a page that does not exist. #183889

@fuhan666

Description

@fuhan666

Does this issue occur when all extensions are disabled?: Yes/No
No, specify a build-in extension

  • VS Code Version: 1.78.2
  • OS Version: Windows_NT x64 10.0.19045

This is a bug about the build-in extension of NPM support for VS code

Steps to Reproduce:

  1. Make sure your TypeScript/JavaScript project folder has multiple lockfiles like package-lock.json and pnpm-lock.yaml.
  2. Make sure your @ext:vscode.npm extension is the default setting.
  3. Open package.json, mouse hover on one of any scripts, and click the "Run Script" button on the popup widget.
  4. Then you will have a notifications window like this :
    Snipaste_2023-05-31_09-33-10
  5. Click the "Learn More" button.
  6. Will automatically open an URL of https://nodejs.dev/learn/the-package-lock-json-file which is "PAGE NOT FOUND".

Found the code at line 143 in VSCODE/extensions/npm/src/task.ts:

window.showInformationMessage(multiplePMWarning, learnMore, neverShowAgain).then(result => {
switch (result) {
   case neverShowAgain: extensionContext.globalState.update(neverShowWarning, true); break;
   case learnMore: env.openExternal(Uri.parse('https://nodejs.dev/learn/the-package-lock-json-file'));
}
});

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bughelp wantedIssues identified as good community contribution opportunitiestasksTask system issuesverifiedVerification succeeded

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions