Skip to content

Commit

Permalink
resolves #899 replace dynamic import (unsupported by VS code)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie committed Sep 2, 2024
1 parent 076b687 commit 6a69acb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/features/antora/antoraSupport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import * as nls from 'vscode-nls'
import ContentCatalog from '@antora/content-classifier/content-catalog'
import { getWorkspaceFolder } from '../../util/workspace'
import { dir, exists } from '../../util/file'
import * as contentClassifier from '@antora/content-classifier'
const classifyContent = contentClassifier.default || contentClassifier

const MAX_DEPTH_SEARCH_ANTORA_CONFIG = 100
const localize = nls.loadMessageBundle()
Expand Down Expand Up @@ -316,10 +318,6 @@ export async function getAntoraDocumentContext (textDocumentUri: Uri, workspaceS
files,
}
})))
let classifyContent = await import('@antora/content-classifier')
if ('default' in classifyContent) {
classifyContent = classifyContent.default // default export
}
const contentCatalog = await classifyContent({
site: {},
}, contentAggregate)
Expand Down

0 comments on commit 6a69acb

Please sign in to comment.