Open mqklin opened 1 year ago
Describe the bug (including copyable syntax) I have a snippet inside javascript.json file, and want to use it inside styled components:
javascript.json
"medq": { "prefix": "medq", "body": [ "@media (max-width: 767px) {", " $0", "}", ], },
When I type medq inside styled backticks, I don't see any suggestions:
medq
But if I type medq in raw backticks, I see what I want:
Expected behavior I expect medq to show the same suggestion inside styled component.
Build environment
Extensions I've disabled all extensions except this one.
Additional context My settings.json file:
settings.json
{ "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 }
Describe the bug (including copyable syntax) I have a snippet inside
javascript.json
file, and want to use it inside styled components:When I type![image](https://user-images.githubusercontent.com/9456433/234336457-d1a0dc66-dd35-4269-af5c-582bffae596d.png)
medq
inside styled backticks, I don't see any suggestions:But if I type![image](https://user-images.githubusercontent.com/9456433/234336754-ac877560-6dc5-4a4b-9877-cdebb1bef9b2.png)
medq
in raw backticks, I see what I want:Expected behavior
I expect
medq
to show the same suggestion inside styled component.Build environment
Extensions
I've disabled all extensions except this one.
Additional context
My
settings.json
file: