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

onTypeFormatting to replace tabs

Open
#862 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Yaml spec says that one shouldn't use tabs to indent a yaml file. So the LS should probably provide the feature that whenever someone idents with a tab, the LS replaces the tab by some spaces (amount computed according to other bits of the file, and if nothing can be inferred, use some usual default).

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

No files or tests are named in the issue. Start by locating the language server's onTypeFormatting entry point and existing indentation handling; done means tab indentation is replaced with spaces, using inferred indentation when available and a default otherwise.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.