Skip to content

Commit

Permalink
fixing autocomplete for file names on include::[] within blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
ahus1 committed Jun 7, 2019
1 parent 73923a7 commit ae47e66
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ This document provides a high-level view of the changes introduced by release.
- support escaping with backslash ("\") in editor, avoiding highlighting
- move to released markdown-to-asciidoc version 1.1 to use proper dependency management (#268)
- support spell checking on more elements including quotes, examples and comments (#269)
- fixing autocomplete for file names on include::[] within blocks

=== 0.26.16 (preview, available from Github releases)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@

public class LanguageListCompletionContributor extends CompletionContributor {

@Override
public void beforeCompletion(@NotNull CompletionInitializationContext context) {
if (context.getFile() instanceof AsciiDocFile) {
context.setDummyIdentifier(CompletionInitializationContext.DUMMY_IDENTIFIER + "\n");
}
}

@Override
public boolean invokeAutoPopup(@NotNull PsiElement position, char typeChar) {
return typeChar == ',' && position.getNode().getElementType() == AsciiDocTokenTypes.BLOCK_ATTR_NAME
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ Therefore, JetBrains OpenJDK pre-bundled with your IDE is recommended.
<ul>
<li>0.26.17 support escaping with backslash ("\") in editor, avoiding highlighting<br>
move to released markdown-to-asciidoc version 1.1 to use proper dependency management (#268)<br>
support spell checking on more elements including quotes, examples and comments (#269)
support spell checking on more elements including quotes, examples and comments (#269)<br>
fixing autocomplete for file names on include::[] within blocks
<li>0.26.16 show includes and images in structure view, adding icon set for breadcrumbs and structure view, tuning contents (#267)
<li>0.26.15 fixing equals check for disabled injected languages (#266)
<li>0.26.14 fixing NullPointerException in settings processing (#266)<br>
Expand Down

0 comments on commit ae47e66

Please sign in to comment.