Vscode-gitlens: Issues with "renderWhitespace" option

Created on 9 Jun 2017  路  7Comments  路  Source: eamodio/vscode-gitlens

Setting editor.renderWhitespace to all or boundary causes the code to overlap the author/commit hash:

screenshot 2017-06-09 19 24 51

vscode

Most helpful comment

Yeah -- to workaround it please set "gitlens.advanced.toggleWhitespace.enabled": true to render the GitLens blame annotations properly. This issue is noted in the README here: https://github.com/eamodio/vscode-gitlens#known-issues

All 7 comments

After some more testing it seems to be a bit more complicated than that. It's a combination of the font I'm using (Inconsolata) and renderWhitespace. Using VSCode 1.13.0 on MacOS.

Here's my settings.json for reference:

{
    "editor.rulers": [
        80,
        100
    ],
    "editor.lineHeight": 14,
    "editor.fontSize": 14,
    "editor.fontFamily": "Consolas, Inconsolata",
    "editor.renderControlCharacters": true,
    "editor.renderWhitespace": "all",
    "editor.autoClosingBrackets": false,
    "editor.formatOnPaste": false,
    "editor.formatOnSave": true,
    "editor.wordWrap": "bounded",
    "editor.wordWrapColumn": 100,
    "editor.minimap.enabled": false,
    "window.zoomLevel": 0,
    "window.nativeTabs": true,
    "prettier.singleQuote": true,
    "prettier.printWidth": 80,
    "prettier.trailingComma": "es5",
    "javascript.implicitProjectConfig.checkJs": true,
    "typescript.check.tscVersion": false,
    "typescript.implementationsCodeLens.enabled": true,
    "workbench.iconTheme": "vs-seti",
    "workbench.editor.swipeToNavigate": true,
    "files.trimTrailingWhitespace": true,
    "files.insertFinalNewline": true,
    "files.exclude": {
        "**/.git": true,
        "**/node_modules": true,
        "ios": true,
        "android": true
    }
}

Wow I thought I was the only one. Yep also running Inconsolata and renderWhitespace and ran into this issue.

Talk about the timing.

Yeah -- to workaround it please set "gitlens.advanced.toggleWhitespace.enabled": true to render the GitLens blame annotations properly. This issue is noted in the README here: https://github.com/eamodio/vscode-gitlens#known-issues

FYI - in v4 (coming shortly) I've re-enabled "gitlens.advanced.toggleWhitespace.enabled": true as the default so it will no longer need to be set manually

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

derrickstolee picture derrickstolee  路  3Comments

robertzauner picture robertzauner  路  3Comments

DavidBabel picture DavidBabel  路  3Comments

carlleeswanson picture carlleeswanson  路  3Comments

roblourens picture roblourens  路  4Comments