Paste JSON been detected as YAML

Open
#3 0 comments 0 reactions 1 assignee View on GitHub

@TylerLeonhardt is already working on this.

Since Dec 12, 2022.

Assessment

This issue has not been assessed yet.

Description

accuracy bug

I paste the following JSON below:

{
    "java.home": "/usr/lib/jvm/java-11-openjdk-amd64",
    "java.debug.settings.hotCodeReplace": "auto",
    "java.configuration.runtimes": [
        {
            "name": "JavaSE-1.8",
            "path": "/usr/lib/jvm/java-8-openjdk-amd64/",
            "sources": "/usr/lib/jvm/java-8-openjdk-amd64/src.zip",
        },
        {
            "name": "JavaSE-11",
            "path": "/usr/lib/jvm/java-11-openjdk-amd64",
            "sources": "/usr/lib/jvm/java-11-openjdk-amd64/lib/src.zip",
            "javadoc": "https://docs.oracle.com/en/java/javase/11/docs/api",
            "default": true
        }
    ],
    "maven.terminal.useJavaHome": true,
    "editor.foldingImportsByDefault": true
}

The language detection think it's an YAML.

image

Dominant language
TypeScript
Stars
169
Forks
19
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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.

More from microsoft/vscode-languagedetection

All issues in microsoft/vscode-languagedetection

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.