File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
extensions/typescript-language-features/src/tsServer Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -110,9 +110,10 @@ export class TypeScriptServerSpawner {
110
110
111
111
private getForkOptions ( kind : ServerKind , configuration : TypeScriptServiceConfiguration ) {
112
112
const debugPort = TypeScriptServerSpawner . getDebugPort ( kind ) ;
113
+ const inspectFlag = process . env [ 'TSS_DEBUG_BRK' ] ? '--inspect-brk' : '--inspect' ;
113
114
const tsServerForkOptions : electron . ForkOptions = {
114
115
execArgv : [
115
- ...( debugPort ? [ `--inspect =${ debugPort } ` ] : [ ] ) ,
116
+ ...( debugPort ? [ `${ inspectFlag } =${ debugPort } ` ] : [ ] ) ,
116
117
...( configuration . maxTsServerMemory ? [ `--max-old-space-size=${ configuration . maxTsServerMemory } ` ] : [ ] )
117
118
]
118
119
} ;
@@ -200,7 +201,7 @@ export class TypeScriptServerSpawner {
200
201
// We typically only want to debug the main semantic server
201
202
return undefined ;
202
203
}
203
- const value = process . env [ 'TSS_DEBUG' ] ;
204
+ const value = process . env [ 'TSS_DEBUG_BRK' ] || process . env [ ' TSS_DEBUG'] ;
204
205
if ( value ) {
205
206
const port = parseInt ( value ) ;
206
207
if ( ! isNaN ( port ) ) {
You can’t perform that action at this time.
0 commit comments