Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitlens shows codelens info in files with the jsonc language mode #241

Closed
acorderob opened this issue Jan 8, 2018 · 2 comments · May be fixed by jeremyrajan/vscode-gitlens#10
Closed

gitlens shows codelens info in files with the jsonc language mode #241

acorderob opened this issue Jan 8, 2018 · 2 comments · May be fixed by jeremyrajan/vscode-gitlens#10
Assignees
Labels
bug Something isn't working

Comments

@acorderob
Copy link

  • GitLens Version: 7.2.0
  • VSCode Version: 1.19.1
  • OS Version: Windows 7 32bit

Steps to Reproduce:

  1. Open a JSON file and change language mode to "jsonc".
  2. JSON object blocks show codelens info (which does not happen if language mode is just "json").
@eamodio eamodio self-assigned this Jan 8, 2018
@eamodio eamodio added the bug Something isn't working label Jan 8, 2018
@eamodio eamodio added this to the Soon™ milestone Jan 8, 2018
@eamodio
Copy link
Member

eamodio commented Jan 8, 2018

FYI, until this is resolved you can workaround it by setting the following setting:

"gitlens.codeLens.perLanguageLocations": [
        {
            "language": "css",
            "locations": [
                "document"
            ]
        },
        {
            "language": "html",
            "locations": [
                "document"
            ]
        },
        {
            "language": "json",
            "locations": [
                "document"
            ]
        },
        {
            "language": "jsonc",
            "locations": [
                "document"
            ]
        },
        {
            "language": "less",
            "locations": [
                "document"
            ]
        },
        {
            "language": "scss",
            "locations": [
                "document"
            ]
        },
        {
            "language": "vue",
            "locations": [
                "document"
            ]
        },
        {
            "language": "stylus",
            "locations": [
                "document"
            ]
        }
    ]

Hope that helps.

eamodio added a commit that referenced this issue Jan 9, 2018
@eamodio eamodio added the pending-release Resolved but not yet released to the stable edition label Jan 11, 2018
@eamodio eamodio removed the pending-release Resolved but not yet released to the stable edition label Jan 15, 2018
@eamodio eamodio removed this from the Soon™ milestone Jul 19, 2019
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants