mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-15 01:25:42 -05:00
Fixes regression with code lens
This commit is contained in:
@@ -73,7 +73,7 @@ export class GitCodeLensProvider implements CodeLensProvider {
|
||||
let blame: GitBlame | undefined;
|
||||
if (languageLocations.locations.length === 1 && languageLocations.locations.includes(CodeLensLocations.Document)) {
|
||||
blame = await blamePromise;
|
||||
if (blame === undefined || !blame.lines.length) return lenses;
|
||||
if (blame === undefined || blame.lines.length === 0) return lenses;
|
||||
}
|
||||
else {
|
||||
const values = await Promise.all([
|
||||
@@ -82,7 +82,7 @@ export class GitCodeLensProvider implements CodeLensProvider {
|
||||
]);
|
||||
|
||||
blame = values[0] as GitBlame;
|
||||
if (blame === undefined || !blame.lines.length) return lenses;
|
||||
if (blame === undefined || blame.lines.length === 0) return lenses;
|
||||
|
||||
const symbols = values[1] as SymbolInformation[];
|
||||
Logger.log('GitCodeLensProvider.provideCodeLenses:', `${symbols.length} symbol(s) found`);
|
||||
|
||||
Reference in New Issue
Block a user