Skip to content

Conversation

@junron
Copy link
Contributor

@junron junron commented Jul 20, 2025

The idacode/src/extension.ts file pollutes the global JavaScript object prototype:

Object.prototype.toBuffer = function(this: Object): Buffer {
    return Buffer.from(JSON.stringify(this));
};

This causes some vscode extensions (eg GitHub Copilot) to malfunction.

I have rewritten this method as a regular function, which allows both extensions to be used at the same time with no change in behavior.

junron added 2 commits July 20, 2025 14:45
The pollution of Object.prototype.toBuffer breaks other vscode extensions
@mrexodia mrexodia merged commit 0fa074f into ioncodes:master Jul 20, 2025
@mrexodia
Copy link
Collaborator

Awesome, thanks!

@junron
Copy link
Contributor Author

junron commented Jul 20, 2025

Thanks for the fast merge @mrexodia! Could you update the extension on vscode marketplace too?

@mrexodia
Copy link
Collaborator

mrexodia commented Jul 20, 2025

Unfortunately I do not have access to the extension store CC @ioncodes

@ioncodes
Copy link
Owner

ioncodes commented Jul 21, 2025

I'll update it today, thanks!

EDIT: Looks like this might take a while. Something seems to be wrong with my Microsoft account, sent support an email.

@ioncodes
Copy link
Owner

Done! Huge thanks to the both of you <3 Just made an official release both as GitHub Release and VSIX update on the VS Code marketplace!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants