When rightClicking on a FileBox there is the option "run code ${filePath}" this opens the file in Visual Studio Code, but this only works on the Electron desktop version.
Acceptance Criteria / Task:
Make it work for browser version as well.
Approach:
Implement BrowserProcessingAdapter.ts and initialize it in src/browserApp/index.ts
The implementation for the desktop version src/electronApp/NodeJsProcessingAdapter.ts can be used as inspiration.
It works the way that src/core/contextMenu.ts calls runShellCommand(command: string) of the ProcessingAdapter, maybe there also have to be made some adjustments.
When rightClicking on a
FileBox
there is the option "run code ${filePath}" this opens the file in Visual Studio Code, but this only works on the Electron desktop version.Acceptance Criteria / Task:
Make it work for browser version as well.
Approach: Implement
The implementation for the desktop version
BrowserProcessingAdapter.ts
and initialize it insrc/browserApp/index.ts
src/electronApp/NodeJsProcessingAdapter.ts
can be used as inspiration.It works the way that
src/core/contextMenu.ts
callsrunShellCommand(command: string)
of theProcessingAdapter
, maybe there also have to be made some adjustments.Follow-up: https://github.com/MichiSpebach/mammutmap/issues/19