question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extract YAML language service to another repo?

See original GitHub issue

As far as I know, yaml-language-server was invented to make a YAML plugin for code editors (especially vscode), and it is running as a standalone Node.js application in the extension.

To make it running inside of monaco-editor, the yaml language service has to be imported as a module dependency statically with UMD or ESM. What we are doing currently in monaco-yaml here is to copy /src/languageservice/* into our repo as a native module which then could be statically imported, and finally to be built with tsc/vscode bundle helpers. This is clearly not a clean solution. A better solution in my opinion is to extract the yaml language service into a new repo and publish it into vscode-yaml-language-service. Then both vscode-yaml-languageserver(this repo) and monaco-yaml could depend on it.

What do you think?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
fbriconcommented, Nov 20, 2018

ok so the npm module must also contain the ts type definitions. I don’t know how everything is published to npm, but I guess that’s irrelevant, as long as the build script includes those definitions that should be ok. @pengx17 feel free to provide a PR

0reactions
evidolobcommented, Feb 23, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

redhat-developer/yaml-language-server - GitHub
YAML Language Server. Supports JSON Schema 7 and below. Starting from 1.0.0 the language server uses eemeli/yaml as the new YAML parser, which...
Read more >
Create and Configure Jobs and Pipelines Using YAML
On your computer, clone the Git repository that has the YAML file, or where you want host it. · Create a file with...
Read more >
YAML schema reference for Azure Pipelines - Microsoft Learn
The YAML schema reference is a detailed reference guide to Azure Pipelines YAML pipelines. It includes a catalog of all supported YAML ......
Read more >
API | OpsLevel Docs - Opslevel.yml
yml, first ensure the service is already connected to a repo. When a service is connected to a repo, OpsLevel will know how...
Read more >
Language Server Extension Guide - Visual Studio Code
Note: The 'Server' implementation cloned from the GitHub repository has the final walkthrough implementation. To follow the walkthrough, you can create a new...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found