mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
Make sure fenced code blocks properly get line numbers assigned
Fixes #51095
This commit is contained in:
@@ -18,7 +18,7 @@ export class MarkdownFileTopmostLineMonitor {
|
||||
vscode.window.onDidChangeTextEditorVisibleRanges(event => {
|
||||
if (isMarkdownFile(event.textEditor.document)) {
|
||||
const line = getVisibleLine(event.textEditor);
|
||||
if (line) {
|
||||
if (typeof line === 'number') {
|
||||
this.updateLine(event.textEditor.document.uri, line);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user