Skip to content

Markdown Snippet Prefix Does Not Trigger Snippet #28048

@geekcyclist

Description

@geekcyclist
  • 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.

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from postermarkdownMarkdown support issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions