Skip to content

Commit

Permalink
Search path for included files (#618)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiswind authored Aug 20, 2022
1 parent 7439aec commit e30084b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/asciidoc.provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ async function provide (
}
}

const workspace = vscode.workspace.getWorkspaceFolder(context.document.uri)
const rootPath = workspace?.uri.fsPath
const documentPath = context.document.uri.fsPath
const rootPath = documentPath.substr(0, documentPath.lastIndexOf('/'))
const searchPath = getPathOfFolderToLookupFiles(
context.document.uri.fsPath,
path.join(rootPath, entryDir)
Expand Down

0 comments on commit e30084b

Please sign in to comment.