File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636### 0.3.0
3737
3838- Fixed Python 2 support (PR #17 )
39- - Fixed issue where debugpy would attempt to spawn the current process (Issue #23 )
39+ - Fixed issue where debugpy would attempt to spawn the current process (Issue #23 )
40+
41+ ### 0.3.1
42+
43+ - Fixed unnecessary global prototype pollution that broke other extensions (eg GitHub Copilot)
Original file line number Diff line number Diff line change @@ -73,4 +73,8 @@ IDACode doesn't support host to VM communication unless the VM uses a shared vol
7373### 0.3.0
7474
7575- Fixed Python 2 support (PR #17 )
76- - Fixed issue where debugpy would attempt to spawn the current process (Issue #23 )
76+ - Fixed issue where debugpy would attempt to spawn the current process (Issue #23 )
77+
78+ ### 0.3.1
79+
80+ - Fixed unnecessary global prototype pollution that broke other extensions (eg GitHub Copilot)
Original file line number Diff line number Diff line change 33 "displayName" : " IDACode" ,
44 "description" : " Run and debug your IDA scripts from VS Code" ,
55 "icon" : " images/icon.png" ,
6- "version" : " 0.3.0 " ,
6+ "version" : " 0.3.1 " ,
77 "publisher" : " Layle" ,
88 "license" : " SEE LICENSE IN LICENSE.md" ,
99 "preview" : true ,
Original file line number Diff line number Diff line change @@ -15,13 +15,17 @@ function getCurrentDocument(): string {
1515 return vscode . window . activeTextEditor ?. document . uri . fsPath as string ;
1616}
1717
18+ function toBuffer ( obj : Object ) : Buffer {
19+ return Buffer . from ( JSON . stringify ( obj ) ) ;
20+ }
21+
1822function executeScriptInIDA ( ) {
1923 const currentDocument = getCurrentDocument ( ) ;
2024 const name = path . parse ( currentDocument ) . base ;
21- socket . send ( {
25+ socket . send ( toBuffer ( {
2226 event : Event . ExecuteScript ,
2327 path : currentDocument
24- } . toBuffer ( ) ) ;
28+ } ) ) ;
2529 vscode . window . showInformationMessage ( `Sent ${ name } to IDA` ) ;
2630}
2731
@@ -47,10 +51,10 @@ function connectToIDA() {
4751 prompt : 'Enter the path to the folder containing the script' ,
4852 value : currentFolder
4953 } ) ;
50- socket . send ( {
54+ socket . send ( toBuffer ( {
5155 event : Event . SetWorkspace ,
5256 path : workspaceFolder
53- } . toBuffer ( ) ) ;
57+ } ) ) ;
5458 vscode . window . showInformationMessage ( `Set workspace folder to ${ workspaceFolder } ` ) ;
5559 resolve ( ) ;
5660 } ) ;
@@ -81,9 +85,9 @@ function connectToIDA() {
8185}
8286
8387function attachToIDA ( ) {
84- socket . send ( {
88+ socket . send ( toBuffer ( {
8589 event : Event . AttachDebugger
86- } . toBuffer ( ) ) ;
90+ } ) ) ;
8791}
8892
8993function connectAndAttachToIDA ( ) {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments