mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
eng - use esModuleInterop for extensions
This commit is contained in:
@@ -290,7 +290,7 @@ export class ExtensionLinter {
|
||||
|
||||
const text = document.getText();
|
||||
if (!this.markdownIt) {
|
||||
this.markdownIt = new (await import('markdown-it'));
|
||||
this.markdownIt = new ((await import('markdown-it')).default);
|
||||
}
|
||||
const tokens = this.markdownIt.parse(text, {});
|
||||
const tokensAndPositions: TokenAndPosition[] = (function toTokensAndPositions(this: ExtensionLinter, tokens: MarkdownItType.Token[], begin = 0, end = text.length): TokenAndPosition[] {
|
||||
|
||||
Reference in New Issue
Block a user