Comments (5)
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.
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.
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.
Fixed in #23 LSP v0.2.8
from civet.
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)
- Ampersand bugs HOT 1
- `.#x` shorthand for private properties HOT 1
- Missing parens in `.-1` access in certain contexts
- Attempted pattern matching ternary HOT 1
- Finishing civetconfig
- `get #x` requires newline, not semicolon HOT 1
- coffeeDo bug
- Use `{}` instead of `;` for empty block
- `for`/`else` HOT 2
- Generator operators
- Cannot shadow operator with argument HOT 1
- Sourcemaps are off when used with @propName HOT 1
- Add source location to error nodes
- `-o dist/.js` errors if the `dist` folder doesn't already exist HOT 2
- `-version` with only one hyphen throws a ReferenceError HOT 1
- "Invalid command-line argument" error includes stack dump
- Splice assignment with loop
- Empty block following pattern in switch expression generates invalid JS
- hoistDec bug
- Pipeline placeholder ^^ etc. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from civet.