File tree 2 files changed +12
-1
lines changed
src/targets/node/bootloader
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ This changelog records changes to stable releases since 1.50.2. "TBA" changes he
7
7
- feat: improve display of HTML elements in the debugger
8
8
- feat: add node tool picker completion for launch.json ([ #1997 ] ( https://github.com/microsoft/vscode-js-debug/issues/1997 ) )
9
9
- fix: process attachment with ` --inspect=:1234 ` style ([ #2063 ] ( https://github.com/microsoft/vscode-js-debug/issues/2063 ) )
10
+ - fix: running new npm scripts in internal terminal ([ vscode #227285 ] ( https://github.com/microsoft/vscode/issues/227285 ) )
10
11
11
12
## v1.93 (August 2024)
12
13
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export const checkProcessFilter = (env: IBootloaderInfo) => {
68
68
* session and cause us to think it's over before it actually is.
69
69
* @see https://github.com/microsoft/vscode-js-debug/issues/645
70
70
*/
71
- export const checkNotNpmPrefixCheckOnWindows = ( ) => {
71
+ const checkNotNpmPrefixCheckOnWindows = ( ) => {
72
72
const argv = process . argv ;
73
73
return ! (
74
74
argv . length === 4
@@ -78,6 +78,15 @@ export const checkNotNpmPrefixCheckOnWindows = () => {
78
78
) ;
79
79
} ;
80
80
81
+ /**
82
+ * Similar as above for more recent versions of npm
83
+ * @see https://github.com/microsoft/vscode-js-debug/issues/645
84
+ */
85
+ const checkNotNpmPrefixCheckOnWindows2 = ( ) => {
86
+ const argv = process . argv ;
87
+ return ! ( argv . length === 2 && basename ( argv [ 1 ] ) === 'npm-prefix.js' ) ;
88
+ } ;
89
+
81
90
/**
82
91
* Disable attaching to the node-gyp tree, otherwise some checks it does fails
83
92
* since Node writes debugger information to stderr.
@@ -103,6 +112,7 @@ const allChecks = [
103
112
checkNotElectron ,
104
113
checkProcessFilter ,
105
114
checkNotNpmPrefixCheckOnWindows ,
115
+ checkNotNpmPrefixCheckOnWindows2 ,
106
116
] ;
107
117
108
118
/**
You can’t perform that action at this time.
0 commit comments