Skip to content

Commit 0e01d47

Browse files
committed
rename
1 parent 186bacc commit 0e01d47

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/extension/noConfigDebugInit.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ export async function registerNoConfigDebug(
3737

3838
// create a temp directory for the noConfigDebugAdapterEndpoints
3939
// 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(';');
4343
}
44-
if (!workspaceUri) {
44+
if (!workspaceString) {
4545
traceError('No workspace folder found');
4646
return Promise.resolve(new Disposable(() => {}));
4747
}
4848

4949
// create a stable hash for the workspace folder, reduce terminal variable churn
5050
const hash = crypto.createHash('sha256');
51-
hash.update(workspaceUri.toString());
51+
hash.update(workspaceString.toString());
5252
const stableWorkspaceHash = hash.digest('hex').slice(0, 16);
5353

5454
const tempDirPath = path.join(extPath, '.noConfigDebugAdapterEndpoints');

0 commit comments

Comments
 (0)