Browse Source

Enables whitespace toggle when using ligatures

main
Eric Amodio 8 years ago
parent
commit
30248a7f97
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      src/blameAnnotationController.ts

+ 7
- 1
src/blameAnnotationController.ts View File

@ -36,7 +36,13 @@ export default class BlameAnnotationController extends Disposable {
}
private _onConfigure() {
const toggleWhitespace = workspace.getConfiguration('gitlens.advanced.toggleWhitespace').get<boolean>('enabled');
let toggleWhitespace = workspace.getConfiguration('gitlens.advanced.toggleWhitespace').get<boolean>('enabled');
if (!toggleWhitespace) {
// Until https://github.com/Microsoft/vscode/issues/11485 is fixed we need to toggle whitespace for non-monospace fonts and ligatures
// TODO: detect monospace font
toggleWhitespace = workspace.getConfiguration('editor').get<boolean>('fontLigatures');
}
if (toggleWhitespace && !this._whitespaceController) {
this._whitespaceController = new WhitespaceController();
}

Loading…
Cancel
Save