diff --git a/packages/nodejs/.changesets/show-correct-language-version-in-diagnose.md b/packages/nodejs/.changesets/show-correct-language-version-in-diagnose.md new file mode 100644 index 00000000..16148c1c --- /dev/null +++ b/packages/nodejs/.changesets/show-correct-language-version-in-diagnose.md @@ -0,0 +1,5 @@ +--- +bump: "patch" +--- + +Show correct language version in diagnose's extension installation section. It did not show the language version used during install, but the current one used to run the diagnose tool. diff --git a/packages/nodejs/src/cli/diagnose.ts b/packages/nodejs/src/cli/diagnose.ts index bff69f1d..0ecad068 100644 --- a/packages/nodejs/src/cli/diagnose.ts +++ b/packages/nodejs/src/cli/diagnose.ts @@ -35,7 +35,9 @@ export class Diagnose { console.log(` Installation result`) console.log(` Status: success`) console.log(` Language details`) - console.log(` Node.js version: ${data["host"]["language_version"]}`) + console.log( + ` Node.js version: ${data["installation"]["language"]["version"]}` + ) console.log(` Download details`) console.log( ` Download URL: ${data["installation"]["download"]["download_url"]}` diff --git a/test/integration/diagnose b/test/integration/diagnose index 93cade7d..5257bec2 160000 --- a/test/integration/diagnose +++ b/test/integration/diagnose @@ -1 +1 @@ -Subproject commit 93cade7d7b1bdae32a402bbb18b01f422d13e89a +Subproject commit 5257bec2af21003b97558dab98106b5de1ee67e2