Skip to content

Commit 14cacd5

Browse files
committed
limit to char length of 16
1 parent 5d082d1 commit 14cacd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension/noConfigDebugInit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export async function registerNoConfigDebug(
4646
// create a stable hash for the workspace folder, reduce terminal variable churn
4747
const hash = crypto.createHash('sha256');
4848
hash.update(workspaceUri.toString());
49-
const stableWorkspaceHash = hash.digest('hex');
49+
const stableWorkspaceHash = hash.digest('hex').slice(0, 16);
5050

5151
const tempDirPath = path.join(extPath, '.noConfigDebugAdapterEndpoints');
5252
const tempFilePath = path.join(tempDirPath, `endpoint-${stableWorkspaceHash}.txt`);

0 commit comments

Comments
 (0)