dzhu / openscad-language-server Goto Github PK
View Code? Open in Web Editor NEWA Language Server Protocol server for OpenSCAD
License: Apache License 2.0
A Language Server Protocol server for OpenSCAD
License: Apache License 2.0
Hi there. I stumbled across this yesterday while searching to see if there was tree-sitter support for openscad (hoping for some structural editing support in emacs). I've previously been using the openscad LSP from the PR, so was keen to try yours out. I found it was very easy to get going, fast, and doesn't negatively interact with my normal openscad workflow. The main features I'm missing are support for:
As a side note, I also noticed that your (upstream) grammar wants a trailing semicolon on use/include lines such as:
use <Lenbok_Utils/utils.scad>
whereas openscad itself does not care.
Hi @dzhu
Are you interested in supporting hover documentation (at least for builtins)? I've built a proof of concept and it looks like this:
The documentation is stored in builtins.scad
as comments:
// Creates a cube in the first octant. When center is true, the cube is centered on the origin.
// Argument names are optional if given in the order shown here.
//
// Parameters:
// - size
// single value, cube with all sides this length
// 3 value array [x,y,z], cube with dimensions x, y and z.
// - center
// false (default), 1st (positive) octant, one corner at (0,0,0)
// true, cube is centered at (0,0,0)
module cube(size, center) {}
If you are interested, I can open a PR.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.