Skip to content
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

Markdown Snippet Prefix Does Not Trigger Snippet #28048

Closed
geekcyclist opened this issue Jun 5, 2017 · 2 comments
Closed

Markdown Snippet Prefix Does Not Trigger Snippet #28048

geekcyclist opened this issue Jun 5, 2017 · 2 comments
Assignees
Labels
info-needed Issue requires more information from poster markdown Markdown support issues

Comments

@geekcyclist
Copy link

  • VSCode Version: Code 1.12.2 (19222cd, 2017-05-10T13:20:36.315Z)
  • OS Version: Windows_NT ia32 10.0.14393
  • Extensions:
Extension Author Version
plsql casian 0.0.3
beautify HookyQR 1.1.1
csharp ms-vscode 1.10.0

Steps to Reproduce:

  1. Add the following to the markdown.json file:
    {
        "Start a New Day": {
            "prefix": "mdday",
            "body": [
                "## Date: 2017-$1",
                "### Tasks & Activities",
                "- Daily Planning (:30)",
                "- $2"
            ],
            "description": "Create template for new day's activities"
        }
    }
  1. Create a markdown file named "test.md"
  2. Verify that the Language Mode in the bottom right of the editor reads "Markdown"
  3. Type "mdday"

Expected behavior:

Type-ahead functionality would show the portion of the prefix typed, and hitting TAB would enter the code contained in the body of the prefix.

Actual behavior:

Nothing happens as "mdday" is typed, and no code is inserted. The snippet CAN be triggered by the menu path View > Command Palette > Insert Snippet and scrolling to the bottom of the list where the Prefix and Description are listed.

Additional Information:

I have a user snippet file for both HTML and JS files as well, and those snippet files appear to be working as designed. The code snippet shown above is now the only one in my markdown.json file.

@kieferrm kieferrm added the markdown Markdown support issues label Jun 5, 2017
@mjbvz
Copy link
Collaborator

mjbvz commented Jun 6, 2017

I'm unable to reproduce this. Perhaps it is a setting issue? Quick suggestions are disabled by default in markdown files. Can you try setting:

"[markdown]":  {
    "editor.quickSuggestions": true
  }

You may also want to set "editor.snippetSuggestions": "top" so that the snippet always shows up first in the suggestion list

@mjbvz mjbvz added the info-needed Issue requires more information from poster label Jun 6, 2017
@geekcyclist
Copy link
Author

geekcyclist commented Jun 9, 2017

The solution was to enable the Quick Suggestions as suggested by mjbvz. I didn't realize that at some point during an upgrade it had been disabled.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster markdown Markdown support issues
Projects
None yet
Development

No branches or pull requests

3 participants