Skip to content

OpenSCAD Language Server #16

@Tomatower

Description

@Tomatower

I have started implementing the Language Server Protocol interface for OpenSCAD, and I would love to see it used in the already best vscode extension for openscad: openscad/openscad#3635
The Idea is, that we can start openscad --lsp-listen 23725, connect to port 23725, and vscode-languageclient takes care of all the fancyness.

I have created a super minimal extension for the basic support, which will grow with the openscad interface (for example "hover", autocomplete with defined module names, ...). I have already planned to add a bunch of features.
You can find my extension here: https://github.com/Tomatower/vscode-openscad

The biggest change to this extension would be openscad.render will change, and some logic that has to check if the currently running version does support LSP.

Do you want to have a PR for this upgrade?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions