mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-15 01:25:42 -05:00
Adds customizable code lens strings
This commit is contained in:
@@ -237,13 +237,13 @@ export class GitCodeLensProvider implements CodeLensProvider {
|
||||
let title: string;
|
||||
if (this._documentIsDirty) {
|
||||
if (this._config.codeLens.recentChange.enabled && this._config.codeLens.authors.enabled) {
|
||||
title = 'Cannot determine recent change or authors (unsaved changes)';
|
||||
title = this._config.strings.codeLens.unsavedChanges.recentChangeAndAuthors;
|
||||
}
|
||||
else if (this._config.codeLens.recentChange.enabled) {
|
||||
title = 'Cannot determine recent change (unsaved changes)';
|
||||
title = this._config.strings.codeLens.unsavedChanges.recentChangeOnly;
|
||||
}
|
||||
else {
|
||||
title = 'Cannot determine authors (unsaved changes)';
|
||||
title = this._config.strings.codeLens.unsavedChanges.authorsOnly;
|
||||
}
|
||||
|
||||
lens.command = { title: title } as Command;
|
||||
|
||||
Reference in New Issue
Block a user