Skip to content

Commit c6cf251

Browse files
committed
wip: troubleshoot windows issue
1 parent 0fb9b23 commit c6cf251

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/features/antora/antoraDocument.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ import * as contentClassifier from '@antora/content-classifier'
22
import fs from 'fs'
33
import yaml from 'js-yaml'
44
import { 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'
611
import { dir, exists } from '../../util/file'
712
import { findFiles } from '../../util/findFiles'
813
import { getWorkspaceFolder } from '../../util/workspace'
@@ -20,7 +25,9 @@ const MAX_DEPTH_SEARCH_ANTORA_CONFIG = 100
2025
export 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(/^\/[^/]+\/pages\/.*/)

0 commit comments

Comments
 (0)