JacquesLucke / blender_vscode

Visual Studio Code extension for Blender development.
MIT License
580 stars 75 forks source link

Support running `Blender: Start` with single button 🔥🔥🔥 #199

Open Mateusz-Grzelinski opened 2 months ago

Mateusz-Grzelinski commented 2 months ago

This is low effor support for running blender with one button - it was surprisingly easy to support keybindings. This is not ideal, but the goal was to have something useful quickly. Thats all I can deliver for now.

Other good option, that require dedicated support

launch.json support - not implemented

See example usage of debug: https://github.com/microsoft/vscode-python-debugger/blob/main/src/extension/extensionInit.ts#L156

vscode.debug.registerDebugAdapterTrackerFactory

tasks.json support - not implemented

Tasks docs: https://code.visualstudio.com/docs/editor/tasks#_customizing-autodetected-tasks

tasks.registerTaskProvider

Tasks have option to pass args but it works completely different from keybinding - I did not have time to write a complete provider (first tried in #102).

References #102 #82 #114.

Remeber to squash merge.