Pārlūkot izejas kodu

Fixes issues with hovers not showing up sometimes

main
Eric Amodio pirms 5 gadiem
vecāks
revīzija
193a4f8495
1 mainītis faili ar 7 papildinājumiem un 1 dzēšanām
  1. +7
    -1
      src/hovers/lineHoverController.ts

+ 7
- 1
src/hovers/lineHoverController.ts Parādīt failu

@ -55,7 +55,7 @@ export class LineHoverController implements Disposable {
}
private onActiveLinesChanged(e: LinesChangeEvent) {
if (e.pending || e.reason !== 'editor') return;
if (e.pending) return;
if (e.editor === undefined || e.lines === undefined) {
this.unregister();
@ -63,9 +63,15 @@ export class LineHoverController implements Disposable {
return;
}
if (e.reason !== 'editor' && this.registered) return;
this.register(e.editor);
}
get registered() {
return this._hoverProviderDisposable !== undefined;
}
async provideDetailsHover(
document: TextDocument,
position: Position,

Notiek ielāde…
Atcelt
Saglabāt