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

Snippets doesn't work #3021

Open
1 task done
oscarhandsome opened this issue Mar 21, 2024 · 0 comments
Open
1 task done

Snippets doesn't work #3021

oscarhandsome opened this issue Mar 21, 2024 · 0 comments

Comments

@oscarhandsome
Copy link

Describe the bug

I added snippets into "global" settings,
How it looks now:
{ // Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope // is left empty or omitted, the snippet gets applied to all languages. The prefix is what is // used to trigger the snippet and the body will be expanded and inserted. Possible variables are: // $1, $2 for tab stops, $0 for the final cursor position, and \${1:label}, \${2:another} for placeholders. // Placeholders with the same ids are connected. // Example: "Print to console": { "scope": "javascript,typescript", "prefix": "cl", "body": ["console.log('$1');", "$2"], "description": "Log output to console" }, "Create div tag": { "scope": "javascript,typescript", "prefix": "div", "body": ["<div>$0<div>"], "description": "Create div tag" }, "Create pre tag": { "scope": "javascript,typescript", "prefix": "pre", "body": ["<pre>$0<pre>"], "description": "Create pre tag" }, "Import from vue": { "scope": "javascript,typescript", "prefix": "vim", "body": ["import { $0 } from 'vue';"], "description": "Import some value from vue" } }

They are doesn't work.
Emmet also doesn't work.
might be i'm doing something incorrect? Help please

Link to the blitz that caused the error

https://stackblitz.com/edit/vitejs-vite-erjf5e?file=src%2FApp.vue

Steps to reproduce

Settings -> User snippets -> add snippets

Expected behavior

How i know after clicking tab it should work
for example i type
cl (then click "TAB") it should automatically add line console.log("")

Parity with Local

Screenshots

No response

Platform

Browser name  = Chrome
Full version  = 122.0.0.0
Major version = 122
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 124786627,
  "usedJSHeapSize": 108661987,
  "jsHeapSizeLimit": 4294705152
}
Hash = 810981ba

Additional context

No response

@kirjavascript kirjavascript transferred this issue from stackblitz/webcontainer-core Apr 5, 2024
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

No branches or pull requests

1 participant