Giter Site home page Giter Site logo

VSC extension recheck about civet HOT 5 CLOSED

zolomatok avatar zolomatok commented on May 31, 2024
VSC extension recheck

from civet.

Comments (5)

STRd6 avatar STRd6 commented on May 31, 2024

There currently isn't a specific command to restart the Civet LSP. I should add that... it might make a great 1st contribution.

In the meantime I often use Ctrl+Shift+P then Developer: Restart Extension Host to restart all VSCode extensions.

from civet.

zolomatok avatar zolomatok commented on May 31, 2024

Ah, gotcha, thanks for the tip!
I'm happy to give implementing this a try.
Can you give me a couple pointers about what tools you use for plugin development?

from civet.

STRd6 avatar STRd6 commented on May 31, 2024

The LSP code is here: https://github.com/DanielXMoore/Civet/tree/master/lsp

Here's MS docs on extensions: https://code.visualstudio.com/api

To build:

cd Civet/lsp
yarn install
yarn build

That will create a civet-0.2.2.vsix file in the lsp directory. To test it right click on it in the VSCode file browser and choose "Install Extension VSIX"

For this feature there are two parts: adding a command to the extension package.json and then triggering the restart. Adding the command should be easy but I'm not sure off the top of my head how easy triggering the restart would be.

Let me know if you have any questions!

from civet.

STRd6 avatar STRd6 commented on May 31, 2024

Fixed in #23 LSP v0.2.8

from civet.

zolomatok avatar zolomatok commented on May 31, 2024

Thanks @STRd6!

I started looking into this after your post, then realised Developer: Restart Extension Host doesn't actually fix my problem, so I gave up on implementing it in the extension. Then promptly forgot about mentioning it, sorry about that!

from civet.

Related Issues (20)

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.