Check the static line cache for markdown custom editors

Fixes #138161
This commit is contained in:
Matt Bierner
2022-03-17 16:05:34 -07:00
parent eb4d78d0cc
commit 307364a174
2 changed files with 6 additions and 1 deletions

View File

@@ -62,6 +62,11 @@ export class TopmostLineMonitor extends Disposable {
return scrollLoc?.line;
}
public getPreviousStaticTextEditorLineByUri(resource: vscode.Uri): number | undefined {
const state = this.previousStaticEditorInfo.get(resource.toString());
return state?.line;
}
public updateLine(
resource: vscode.Uri,
line: number