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

Plugin ignores custom snippets from javacsript.json file #424

Open
mqklin opened this issue Apr 25, 2023 · 0 comments
Open

Plugin ignores custom snippets from javacsript.json file #424

mqklin opened this issue Apr 25, 2023 · 0 comments
Labels

Comments

@mqklin
Copy link

mqklin commented Apr 25, 2023

Describe the bug (including copyable syntax)
I have a snippet inside javascript.json file, and want to use it inside styled components:

  "medq": {
    "prefix": "medq",
    "body": [
      "@media (max-width: 767px) {",
      "  $0",
      "}",
    ],
  },

When I type medq inside styled backticks, I don't see any suggestions:
image

But if I type medq in raw backticks, I see what I want:
image

Expected behavior
I expect medq to show the same suggestion inside styled component.

Build environment

  • OS: macOS Monterey
  • VSCode Version: 1.73.1
  • Extension Version 1.7.8

Extensions
I've disabled all extensions except this one.

Additional context
My settings.json file:

{
  "files.autoSave": "onFocusChange",
  "explorer.confirmDelete": false,
  "editor.formatOnSave": true,
  // "editor.defaultFormatter": "esbenp.prettier-vscode",
  "[rescript]": {
    "editor.defaultFormatter": "chenglou92.rescript-vscode"
  },
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  "eslint.validate": ["javascript"],
  "explorer.sortOrder": "filesFirst",
  "explorer.confirmDragAndDrop": false,
  "workbench.sideBar.location": "right",
  "editor.detectIndentation": false,
  "editor.tabSize": 2,
  "editor.quickSuggestions": {
    "other": true,
    "comments": true,
    "strings": true
  },
  "editor.suggest.snippetsPreventQuickSuggestions": false,
  "editor.snippetSuggestions": "top",
  "typescript.suggest.autoImports": false,
  "javascript.suggest.autoImports": false,
  "editor.quickSuggestionsDelay": 0,
  "javascript.updateImportsOnFileMove.enabled": "never",
  "security.workspace.trust.untrustedFiles": "open",
  "tabnine.experimentalAutoImports": true
}
@mqklin mqklin added the bug label Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant