Using the Language Server Protocol to improve Marko's developer experience. Server implementation can be found here.
- install
Marko VSCode
from the marketplace (plugin source)
- install
eglot
npm i -g @marko/language-server
- add the
marko-language-server
executable toeglot-server-programs
- install coc.nvim
npm i -g @marko/language-server
- follow the instructions using
marko-language-server
as the executable
- install LSP Support from the marketplace
npm i -g @marko/language-server
- update the server definitions to include the
marko-language-server
executable for the.marko
extension
- run
Package Control: Install Package
from the command palette, then select LSP npm i -g @marko/language-server
- run
LSP: Enable Language Server
from the command palette and registermarko-language-server
.
- install
language-marko
from 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 install
installs dependencies for the extension and the server. - Run
$ npm run watch
to 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