Skip to content

Commit dd4ab24

Browse files
committed
use JSON.parse
1 parent 13e7ac5 commit dd4ab24

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export function activate(context: vscode.ExtensionContext) {
101101

102102
const json_path = path.join(folders[0].uri.path, ".vscode/rdbg_autoattach.json");
103103
if (fs.existsSync(json_path)) {
104-
const c: AttachConfiguration = require(json_path);
104+
const c: AttachConfiguration = JSON.parse(fs.readFileSync(json_path, 'utf8'));
105105

106106
if (auto_attach_config_p(c)) {
107107
fs.unlinkSync(json_path);

0 commit comments

Comments
 (0)