323: Needed different snippets for HTML and JS

This commit is contained in:
metacryst
2023-09-02 14:59:36 -05:00
parent cb70af8832
commit e2316ef857
4 changed files with 30 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
"name": "quill", "name": "quill",
"displayName": "Quill", "displayName": "Quill",
"description": "HTML/CSS Syntax highlighting, best used with the Quill framework", "description": "HTML/CSS Syntax highlighting, best used with the Quill framework",
"version": "1.0.1", "version": "1.0.2",
"publisher": "capturedsun", "publisher": "capturedsun",
"icon": "docs/Quill.png", "icon": "docs/Quill.png",
"engines": { "engines": {
@@ -51,7 +51,11 @@
"snippets": [ "snippets": [
{ {
"language": "javascript", "language": "javascript",
"path": "./snippets.json" "path": "./snippets-js.json"
},
{
"language": "html",
"path": "./snippets-html.json"
} }
], ],
"grammars": [ "grammars": [

BIN
VSCode/quill-1.0.2.vsix Normal file

Binary file not shown.

24
VSCode/snippets-html.json Normal file
View File

@@ -0,0 +1,24 @@
{
"*page": {
"prefix": "*page",
"body": [
"<!DOCTYPE html>",
"<html lang=\"en\">",
" <head>",
" <title>Index</title>",
" <script type=\"module\">",
" import * as quill from './Quill/quill.js';",
" window.quill = {};",
" Object.entries(quill).forEach(([name, exported]) => window[name] = exported);",
" </script>",
" <script type=\"module\" src=\"index.js\"></script>",
" </head>",
" <body>",
"",
"",
" </body>",
"</html>"
],
"description": "Use the DOM collection of functions"
}
}