Skip to content

Commit

Permalink
Better logger
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie committed Oct 3, 2023
1 parent 3a7db76 commit 05679fd
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/features/antora/antoraSupport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,6 @@ export class AntoraSupportManager implements vscode.Disposable {
return false
}

public async getAntoraDocumentContext (textDocumentUri: Uri): Promise<AntoraDocumentContext | undefined> {
const antoraEnabled = this.isEnabled()
if (antoraEnabled) {
return getAntoraDocumentContext(textDocumentUri, AntoraSupportManager.workspaceState)
}
return undefined
}

private registerFeatures (): void {
const attributesCompletionProvider = vscode.languages.registerCompletionItemProvider({
language: 'asciidoc',
Expand Down Expand Up @@ -185,7 +177,8 @@ export async function findAntoraConfigFile (textDocumentUri: Uri): Promise<Uri |
return antoraConfigUri
}
}
console.log(`Unable to find an applicable Antora configuration file in [${antoraConfigUris.join(', ')}] for the AsciiDoc document ${asciidocFilePath}`)
const antoraConfigPaths = antoraConfigUris.map((uri) => uri.path)
console.log(`Unable to find an applicable Antora configuration file in [${antoraConfigPaths.join(', ')}] for the AsciiDoc document ${asciidocFilePath}`)
return undefined
}

Expand Down

0 comments on commit 05679fd

Please sign in to comment.