Closed aharbii closed 1 month ago
Something like closing the actual binary editor, and open the CodeArt editor only? or you mean to not split the view?
On second thought, lets keep the current behavior. Please address the code comments and I will approve this PR and the first milestone.
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: @.***>
Resolved review findings.
To be resolved:
New features:
Configuring Extension package, and structure
Configuring required environment
Configuring vscode workspace, settings, tasks, and debugger.
Configuring extension icon
Configuring GTS [Google TypeScript] style guide, formatter, and linter.
Configuring ESLint to enforce style guide, and provide automated fixes
Configuring Prettier to re-format code
Configuring GitHub Actions:
Implementing:
Noticed UI/UX uncomfortable drawback - when the user opens an executable on vscode there's a warning page mentioning 'The file is not displayed in the text editor because it is either binary or uses an unsupported text encoding.'
vscode APIs cannot detect that the user opens a binary before the user selects 'Open Anyway' option, then the extension logic get fired.
Tested on: