File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -37,17 +37,17 @@ export async function registerNoConfigDebug(
3737
3838 // create a temp directory for the noConfigDebugAdapterEndpoints
3939 // file path format: extPath/.noConfigDebugAdapterEndpoints/endpoint-stableWorkspaceHash.txt
40- let workspaceFile = workspace . workspaceFile ?. fsPath ;
41- if ( ! workspaceFile ) {
42- workspaceFile = workspace . workspaceFolders ?. [ 0 ] . uri . fsPath ;
40+ let workspaceFileToHash = workspace . workspaceFile ?. fsPath ;
41+ if ( ! workspaceFileToHash ) {
42+ workspace . workspaceFolders ?. map ( ( e ) => e . uri . fsPath ) . join ( ';' ) ;
4343 }
44- if ( ! workspaceFile ) {
44+ if ( ! workspaceFileToHash ) {
4545 throw new Error ( 'No workspace folder detected. Please open a workspace.' ) ;
4646 }
4747
4848 // create a stable hash for the workspace folder, reduce terminal variable churn
4949 const hash = crypto . createHash ( 'sha256' ) ;
50- hash . update ( workspaceFile ) ;
50+ hash . update ( workspaceFileToHash ) ;
5151 const stableWorkspaceHash = hash . digest ( 'hex' ) . slice ( 0 , 16 ) ;
5252
5353 const tempDirPath = path . join ( extPath , '.noConfigDebugAdapterEndpoints' ) ;
You can’t perform that action at this time.
0 commit comments