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,18 +37,18 @@ export async function registerNoConfigDebug(
37
37
38
38
// create a temp directory for the noConfigDebugAdapterEndpoints
39
39
// file path format: extPath/.noConfigDebugAdapterEndpoints/endpoint-stableWorkspaceHash.txt
40
- let workspaceUri = workspace . workspaceFile ?. fsPath ;
41
- if ( ! workspaceUri ) {
42
- workspaceUri = workspace . workspaceFolders ?. map ( ( e ) => e . uri . fsPath ) . join ( ';' ) ;
40
+ let workspaceString = workspace . workspaceFile ?. fsPath ;
41
+ if ( ! workspaceString ) {
42
+ workspaceString = workspace . workspaceFolders ?. map ( ( e ) => e . uri . fsPath ) . join ( ';' ) ;
43
43
}
44
- if ( ! workspaceUri ) {
44
+ if ( ! workspaceString ) {
45
45
traceError ( 'No workspace folder found' ) ;
46
46
return Promise . resolve ( new Disposable ( ( ) => { } ) ) ;
47
47
}
48
48
49
49
// create a stable hash for the workspace folder, reduce terminal variable churn
50
50
const hash = crypto . createHash ( 'sha256' ) ;
51
- hash . update ( workspaceUri . toString ( ) ) ;
51
+ hash . update ( workspaceString . toString ( ) ) ;
52
52
const stableWorkspaceHash = hash . digest ( 'hex' ) . slice ( 0 , 16 ) ;
53
53
54
54
const tempDirPath = path . join ( extPath , '.noConfigDebugAdapterEndpoints' ) ;
You can’t perform that action at this time.
0 commit comments