We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13e7ac5 commit dd4ab24Copy full SHA for dd4ab24
1 file changed
src/extension.ts
@@ -101,7 +101,7 @@ export function activate(context: vscode.ExtensionContext) {
101
102
const json_path = path.join(folders[0].uri.path, ".vscode/rdbg_autoattach.json");
103
if (fs.existsSync(json_path)) {
104
- const c: AttachConfiguration = require(json_path);
+ const c: AttachConfiguration = JSON.parse(fs.readFileSync(json_path, 'utf8'));
105
106
if (auto_attach_config_p(c)) {
107
fs.unlinkSync(json_path);
0 commit comments