Skip to content
This repository has been archived by the owner on Jul 5, 2020. It is now read-only.

docConfig not initialised before detectReferenceListRange #5

Closed
jevakallio opened this issue Jun 26, 2020 · 1 comment
Closed

docConfig not initialised before detectReferenceListRange #5

jevakallio opened this issue Jun 26, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@jevakallio
Copy link
Contributor

Via @anku255 on Discord

I was trying to get familiar with the source code of foam-vscode and that's when I noticed that when the function detectReferenceListRange for the first time from here - https://github.com/foambubble/foam-vscode/blob/master/src/extension.ts#L203

The header and footer are calculated incorrectly because the loadDocConfig hasn't run yet and this means docConfig.eol is not correct

@jevakallio
Copy link
Contributor Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant