@@ -2,7 +2,12 @@ import * as contentClassifier from '@antora/content-classifier'
22import fs from 'fs'
33import yaml from 'js-yaml'
44import { posix as posixpath } from 'path'
5- import vscode , { CancellationTokenSource , FileType , Memento , Uri } from 'vscode'
5+ import vscode , {
6+ CancellationTokenSource ,
7+ FileType ,
8+ Memento ,
9+ Uri ,
10+ } from 'vscode'
611import { dir , exists } from '../../util/file'
712import { findFiles } from '../../util/findFiles'
813import { getWorkspaceFolder } from '../../util/workspace'
@@ -20,7 +25,9 @@ const MAX_DEPTH_SEARCH_ANTORA_CONFIG = 100
2025export async function findAntoraConfigFile (
2126 textDocumentUri : Uri ,
2227) : Promise < Uri | undefined > {
28+ console . log ( 'findAntoraConfigFile(textDocumentUri)' , textDocumentUri )
2329 const asciidocFilePath = posixpath . normalize ( textDocumentUri . path )
30+ console . log ( 'asciidocFilePath' , asciidocFilePath )
2431 const cancellationToken = new CancellationTokenSource ( )
2532 cancellationToken . token . onCancellationRequested ( ( e ) => {
2633 console . log ( 'Cancellation requested, cause: ' + e )
@@ -35,6 +42,8 @@ export async function findAntoraConfigFile(
3542 const modulesDirPath = posixpath . normalize (
3643 `${ antoraConfigParentDirPath } /modules` ,
3744 )
45+ console . log ( 'modulesDirPath' , modulesDirPath )
46+ console . log ( 'antoraConfigParentDirPath' , antoraConfigParentDirPath )
3847 if (
3948 asciidocFilePath . startsWith ( modulesDirPath ) &&
4049 asciidocFilePath . slice ( modulesDirPath . length ) . match ( / ^ \/ [ ^ / ] + \/ p a g e s \/ .* / )
0 commit comments