Skip to content

Commit

Permalink
不要使用本地文件的方式来通知运行时了
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Mar 14, 2024
1 parent e34df0a commit a5ef0f5
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,18 +194,7 @@ class Helper {
}

await this.env.waitReady();
const logUri = vscode.Uri.joinPath(this.env.scriptUri!, 'log');
const waitdbgUri = vscode.Uri.joinPath(logUri, 'waitdbg');
try {
await vscode.workspace.fs.createDirectory(logUri);
await vscode.workspace.fs.writeFile(waitdbgUri, new Uint8Array(0));
} catch (error) { }
await vscode.debug.startDebugging(vscode.workspace.workspaceFolders?.[0], "💡附加");
try {
if ((await vscode.workspace.fs.stat(waitdbgUri)).type === vscode.FileType.File) {
await vscode.workspace.fs.delete(waitdbgUri);
};
} catch (error) { }
});
});
}
Expand Down

0 comments on commit a5ef0f5

Please sign in to comment.