Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/features/antora/antoraDocument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ const MAX_DEPTH_SEARCH_ANTORA_CONFIG = 100
export async function findAntoraConfigFile(
textDocumentUri: Uri,
): Promise<Uri | undefined> {
console.log('findAntoraConfigFile(textDocumentUri)', textDocumentUri)
const asciidocFilePath = posixpath.normalize(textDocumentUri.path)
console.log('asciidocFilePath', asciidocFilePath)
const cancellationToken = new CancellationTokenSource()
cancellationToken.token.onCancellationRequested((e) => {
console.log('Cancellation requested, cause: ' + e)
Expand All @@ -35,6 +37,8 @@ export async function findAntoraConfigFile(
const modulesDirPath = posixpath.normalize(
`${antoraConfigParentDirPath}/modules`,
)
console.log('modulesDirPath', modulesDirPath)
console.log('antoraConfigParentDirPath', antoraConfigParentDirPath)
if (
asciidocFilePath.startsWith(modulesDirPath) &&
asciidocFilePath.slice(modulesDirPath.length).match(/^\/[^/]+\/pages\/.*/)
Expand Down