uchen-ml / codeart-binexplore

VSCode extension for analyzing compiled binaries
MIT License
0 stars 1 forks source link

Initial Configuration for the Extension #2

Closed aharbii closed 1 month ago

aharbii commented 1 month ago
aharbii commented 1 month ago

Something like closing the actual binary editor, and open the CodeArt editor only? or you mean to not split the view?

eugeneo commented 1 month ago

On second thought, lets keep the current behavior. Please address the code comments and I will approve this PR and the first milestone.

eugeneo commented 1 month ago

That’s fine. Windows support is not a priority at this time. I expect supporting Windows will be a significant effort and most users use Visual Studio anyways.

On Sat, Aug 17, 2024 at 11:55 AM Ahmed Harbi @.***> wrote:

@.**** commented on this pull request.

In src/extension.ts https://github.com/uchen-ml/codeart-binexplore/pull/2#discussion_r1720818467 :

    • @param filePath The path to the file.
    • @returns True if the file is a binary executable, false otherwise.
  • */ +function isExecutable(filePath: string): boolean {
  • if (!fs.existsSync(filePath)) {
  • return false;
  • }
  • try {
  • const stats = fs.statSync(filePath);
  • const isExecutable = (stats.mode & 0o111) !== 0;
  • const isWinExecutable =
  • filePath.endsWith('.exe') && os.platform() === 'win32';
  • return isExecutable || isWinExecutable;

ok, I will remove isWinExecutable logic, but the extension will not be usable at all for any windows application

— Reply to this email directly, view it on GitHub https://github.com/uchen-ml/codeart-binexplore/pull/2#discussion_r1720818467, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACGJLOEPRAIG33BJVWEEF3ZR6MAXAVCNFSM6AAAAABMTVHRO6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDENBUGEZTMNRSGI . You are receiving this because you commented.Message ID: @.***>

aharbii commented 1 month ago

Resolved review findings.

To be resolved:

New features: