Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

LSP support for FeatureScript?

brennan_stehlingbrennan_stehling Member Posts: 4

Adding support for LSP and importing other scripts which are hosted remotely would allow for using tools like VS Code which supports LSP with many other languages. An extension for VS Code would also be very powerful. Any integrations which are currently supported by the web-based editor could be adapted to work through VS Code extensions. It would be possible to work with Onshape in a browser window and VS Code next to it as a rapid workflow which is able to get all of the IDE features from VS Code to compliment what Onshape does. A VS Code extension could also automatically import all of the dependencies needed for a script.

Has this been considered?

Comments

  • Caden_ArmstrongCaden_Armstrong Member Posts: 195 PRO

    This topic has come up before:
    https://forum.onshape.com/discussion/11453/external-editor

    Its technically possible to use an external editor, but I believe Onshape wants to prioritize making their own editor better.

    A helpful topic might be: what are you looking for in VS Code that the current fs IDE doesn't have?

    www.smartbenchsoftware.com --- fs.place --- Renaissance
    Custom FeatureScript and Onshape Integrated Applications
  • MichaelPascoeMichaelPascoe Member Posts: 2,012 PRO
    edited October 15

    Would love to use FS within VS.
    Not having AI powered IntelliSense is tedious.


    Learn more about the Gospel of Christ  ( Here )

    CADSharp  -  We make custom features and integrated Onshape apps!   Learn How to FeatureScript Here 🔴
  • brennan_stehlingbrennan_stehling Member Posts: 4

    There are a lot of features in VS Code which won't be supported in Onshape. Besides the many features it supports which developers expect and appreciate, it is just fast and lightweight. I have read in the forums that the FS editor can become quite slow.

    I saw the old discussion in 2019 and I expect a lot has changed since then. What we would get with LSP support for FS which any IDE that supports LSP offers. There are many tools which support LSP.

    https://microsoft.github.io/language-server-protocol/implementors/tools/

    I would expect the IDE to be able to reference the dependencies just like JS does with npm or even Deno which is even better. However the Onshape brings in dependencies would be supported by an extension. It would also be responsible for syncing changes. The LSP support would just be a major bonus to provide the rest of the features that developers expect. Then there are other extensions which are available in IDEs like VS Code which can be invaluable and would not require Onshape any investment to support.

  • ilya_baranilya_baran Onshape Employees, Developers, HDM Posts: 1,215

    This is a good idea, though it'll be a bit before we get to it — we have more urgent things on our plate. But I'd definitely like to track interest — please create an improvement request.

    Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
Sign In or Register to comment.