-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Folding provider crashes with "tokens.filter is not a function" #154
Comments
Yes we are aware of the issue. It will be fixed once we update the extension to support outline tokens once again (atm the moment outline does not work with VSCode ^1.29). |
Seem to have run into this although we've been using VSCode ^ 1.29 successfully Now, unfortunately, the 'Preview' functionality doesn't work anymore 👎
What are 'outline tokens' in this context? Are they something we can do without in the asciidoc to avoid running into this? Thanks |
@robertiansweetman outline tokens are used to quickly navigate through your source. In markup languages they are usually the headers. You can see them if you open a Markdown file and open the tokens selector ( Thankfully that error does not cause any problem with the rest of the extension, it is limited to the editor and the only victims are the tokens. We are still investigating what is the cause of it, because the error does not pop up with the linter or during packaging, it only appears in the log. |
@MatteoCampinoti94 looks like whatever you did with fixing Bug #191 has resolved the issue at least as long as I open VSCode and then the Asciidoc extension, so this isn't an issue for me now :) If I have a preview window open, stop VSCode then open VSCode again it tries to load the preview window on startup but the preview doesn't render. Sadly I can't seem to capture the error for that! In that case if you close the preview window and open it again it works fine. I'm on VSCode 1.33.1 |
The preview not loading was caused by an error in the way the extension accessed the workspace folder, I misread the API documentation. ^^ That's expected behavior actually: the preview window displays a temporary content, converted from asciidoc to html and then fed to the previewer. When you close VSCode that temporary variable is lost and needs to be reassigned. In the future we will make it so the preview refreshes automatically at startup, but currently we are focusing on overhauling the whole extension code code so quality of life improvements beyond options are going to be postponed for a while. |
@MatteoCampinoti94 yep, your approach totally makes sense 👍 |
Whenever an AsciiDoc file is opened or modified, the following exception is logged to the dev console (even for empty files):
VSCode 1.30.1 and AsciiDoc 2.3.0.
The text was updated successfully, but these errors were encountered: