8000 Add support for AsciiDoc by slavos1 · Pull Request #43 · yzhang-gh/vscode-dic-completion · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add support for AsciiDoc #43

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

slavos1
Copy link
@slavos1 slavos1 commented Sep 17, 2023

Adding support for AsciiDoc since the extension comes handy when writing. Thanks!

Copy link
Owner
@yzhang-gh yzhang-gh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Just a few comments

@@ -3,7 +3,7 @@
"displayName": "Dictionary Completion",
"description": "Word Completion",
"icon": "images/dictionary.png",
"version": "1.2.2",
"version": "1.2.3",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We usually do not update the version number in a feature commit. Just leave it to me and I will publish a new version after this PR is merged in.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough, would leave it out, thanks.

@@ -214,6 +215,8 @@ class DictionaryCompletionItemProvider implements vscode.CompletionItemProvider
}

switch (this.fileType) {
case "asciidoc":
return this.completeByFirstLetter(firstLetter, addSpace);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. But I guess there are some cases where we do not want a completion (e.g. urls). You can use regex101 (select ECMAScript in the left panel) to help you write those rules.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, would need to test it more in that case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0