File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed
extensions/ql-vscode/scripts Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change 1
1
import { join , resolve } from "path" ;
2
2
import { execSync } from "child_process" ;
3
- import { outputFile , readFile , readJSON } from "fs-extra" ;
3
+ import { outputFile , readJSON } from "fs-extra" ;
4
4
import { getVersionInformation } from "./util/vscode-versions" ;
5
5
import { fetchJson } from "./util/fetch" ;
6
6
import { SemVer } from "semver" ;
@@ -47,19 +47,7 @@ async function updateNodeVersion() {
47
47
`VS Code ${ versionInformation . vscodeVersion } uses Electron ${ versionInformation . electronVersion } and Node ${ versionInformation . nodeVersion } ` ,
48
48
) ;
49
49
50
- let currentNodeVersion = (
51
- await readFile ( join ( extensionDirectory , ".nvmrc" ) , "utf8" )
52
- ) . trim ( ) ;
53
- if ( currentNodeVersion . startsWith ( "v" ) ) {
54
- currentNodeVersion = currentNodeVersion . slice ( 1 ) ;
55
- }
56
-
57
- if ( currentNodeVersion === versionInformation . nodeVersion ) {
58
- console . log ( "Node version is already up to date" ) ;
59
- return ;
60
- }
61
-
62
- console . log ( "Node version needs to be updated, updating now" ) ;
50
+ console . log ( "Updating files related to the Node version" ) ;
63
51
64
52
await outputFile (
65
53
join ( extensionDirectory , ".nvmrc" ) ,
You can’t perform that action at this time.
0 commit comments