bernhard-42 / vscode-ocp-cad-viewer

A viewer for OCP based Code-CAD (CadQuery, build123d) integrated into VS Code
Apache License 2.0
96 stars 10 forks source link

Add initial tcp port to settings.json #37

Closed diesphink closed 9 months ago

diesphink commented 10 months ago

At the moment, ocp-cad-viewer starts trying ports at 3939, if that is not available it starts incrementing until an available port is found.

The extensions could lookup at settings.json to determine the first port to try, instead of 3939. This would benefit scenarios where multiple workspaces want to be opened side-by-side, so the code can have a fixed set_port(X), that won't be changing all the time, as it will also be set on the settings.json of that workspace.

bernhard-42 commented 9 months ago

Added in 2.0.13 as Ocp Cad Viewer › Advanced: Initial Port of the workspace config