mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-19 17:25:57 -05:00
Defaults toggleWhitespace.enabled to true
Turns off whitespace toggling if already 'none'
This commit is contained in:
@@ -60,10 +60,11 @@ import { WhitespaceController } from './whitespaceController';
|
||||
this.whitespaceController && await this.whitespaceController.restore();
|
||||
}
|
||||
|
||||
async reset() {
|
||||
async reset(whitespaceController: WhitespaceController | undefined) {
|
||||
await this.clear();
|
||||
|
||||
this._config = workspace.getConfiguration().get<IConfig>(ExtensionKey)!;
|
||||
this.whitespaceController = whitespaceController;
|
||||
|
||||
await this.provideAnnotation(this.editor === undefined ? undefined : this.editor.selection.active.line);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user