Using the Language Server Protocol to improve Marko's developer experience. Server implementation can be found here.
- install
Marko VSCodefrom the marketplace (plugin source)
- install
eglot npm i -g @marko/language-server- add the
marko-language-serverexecutable toeglot-server-programs
- install coc.nvim
npm i -g @marko/language-server- follow the instructions using
marko-language-serveras the executable
- install LSP Support from the marketplace
npm i -g @marko/language-server- update the server definitions to include the
marko-language-serverexecutable for the.markoextension
- run
Package Control: Install Packagefrom the command palette, then select LSP npm i -g @marko/language-server- run
LSP: Enable Language Serverfrom the command palette and registermarko-language-server.
- install
language-markofrom the atom package registry (plugin source)
We include a .vscode directory that contains launch configurations for developers.
You can find three settings that will help you get started. The workflow will be
explained in the following items:
- Run
$ npm installinstalls dependencies for the extension and the server. - Run
$ npm run watchto compile and re-compile the client and server in the background on each change. - Open this folder in VS Code. In the Debug viewlet, run the 'All' task, this will open a new vscode instance and attach debuggers for the client and server code.
- Open your Marko project (You can use https://github.com/marko-js-samples/ui-components-playground to experiment as well)
- Now you can add breakpoints to the client and the server. If you change any code, you might want to restart the debug session so that all your changes get loaded.
Each project in this repository has different guidelines for contributing. Please check the CONTRIBUTING.md file in each project to learn more.
This project adheres to the eBay Code of Conduct. By participating in this project you agree to abide by its terms.
Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
- Diego Berrocal (@CestDiego)
- Manthan Doshi
