Comments (3)
I haven't written anything like that but maybe I should.
Off the top of my head I don't recall many situations where I felt that I needed to go back and redesign something but here are some general observations:
- prefer es6 features, enable strict null checking, etc.
- use promises/async everywhere right from the start
- avoid libraries that require deep integration throughout the entire extension
- make each feature as self-contained as possible; keep the overall design modular
- avoid premature optimization; decent algorithms are enough; latency is rarely a big problem here
- given a choice between jumps in complexity versus simplicity with some duplication, choose the latter
As for where to start, if you want to have a language server I think either the OCaml one or the Agda could serve as an example if you just stripped out the features you didn't need. If you take a look at the server capabilities it shouldn't be too hard to trace down to the individual features in the code base.
That's assuming you want to have it implemented in typescript though. If you already have a tool like merlin available, I would just implement the server in typescript because it will be much easier to get to something usable quickly. If you don't have that, there's less reason to use typescript, but then the whole package (client/server) becomes a lot more work.
from vscode-reasonml.
Thanks for the feedback. That's probably good enough for me for now. If you ever felt the motivation, I would certainly enjoy reading a write up on some more details of the work you've done on this extension and others. Thanks!
from vscode-reasonml.
No problem. By the way, if you decide to start working on your own extension or language server I would be happy to give some tips if you run into any difficulties.
from vscode-reasonml.
Related Issues (20)
- Error starting reason-vscode "expected string", fix error message for invalid bsconfig.json HOT 1
- Options for ReasonML formatting?
- BSC.exe: Wrong Argument. -bs-jsx expects an integer HOT 4
- Incorrect problem matcher for ocaml >= 4.09
- Wrong module for "go to definition" HOT 3
- merlin error reporting can be excessive
- [Feature] Completion on labelled arguments
- Unable to run first ocaml "hello world" program.
- Double error/warning dislayed
- WSL: opam local switch environment
- What does this highlighting of a whole function mean?
- Ternary Operators are Highlighted as bool
- Restart Merlin? HOT 1
- Why is the highlighting for OCaml so weird?
- Node module errors preventing extension from working
- Autocomplete not working HOT 1
- OCaml: Incorrect syntax highligthing if identifier starts with let
- Request textDocument/formatting failed
- VS Code: we have marked your extension as deprecated HOT 3
- Hijacking Markdown code block highlighting
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 vscode-reasonml.