redhat-developer / redhat-developer/yaml-language-server

Option to disable/ignore modelineschema

Open
#1,039 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.5k
Forks
352
Avg merge
2d 7h
Merged PRs (30d)
11

Description

Is your enhancement related to a problem? Please describe.

We use monaco-editor with monaco-yaml in our project:
Editor needs custom validation for specific files, however these files may include modeline schema and we can't ignore fetching it (we do not need to download it at all, but need use our schema)

Describe the solution you would like

Some option here, that will be used in monaco-yaml to ignore modeline schema

Describe alternatives you have considered

Any other way to ignore modeline schema

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the referenced modeline-schema handling in src/languageservice/services/yamlSchemaService.ts and trace how that option would be exposed to monaco-yaml. Confirm how custom validation schemas are supplied. Done means callers can disable modeline schema fetching while continuing to use their own schema.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.