Code Monkey home page Code Monkey logo

openscad-language-server's People

Contributors

dzhu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

openscad-language-server's Issues

Great work!

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:

  • jumping to definition (textDocument/definition)
  • find references (textDocument/references)
  • detection of undefined variables/modules (the LSP PR does this, I'm not sure how easy it is to add to your server).

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.

Hover documentation for builtins

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:

image

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.