summaryrefslogtreecommitdiff
path: root/tools/vscode/package.json
blob: cb2c6db90f806626ae9b2db59ab2531515d1eb34 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
{
  "name": "astro-vscode",
  "displayName": "Astro",
  "description": "Language support for Astro",
  "icon": "assets/icon.png",
  "type": "commonjs",
  "galleryBanner": {
    "color": "#FFBE2D",
    "theme": "dark"
  },
  "version": "0.5.0",
  "author": "Astro",
  "license": "MIT",
  "publisher": "astro-build",
  "private": true,
  "scripts": {
    "vscode:prepublish": "yarn build",
    "vscode:publish": "node ./scripts/publish.mjs",
    "build": "astro-scripts build \"src/**/*.ts\" && tsc -p tsconfig.json",
    "dev": "astro-scripts dev \"src/**/*.ts\""
  },
  "engines": {
    "vscode": "^1.52.0"
  },
  "activationEvents": [
    "onLanguage:astro"
  ],
  "dependencies": {
    "@astrojs/language-server": "0.5.0",
    "vscode-emmet-helper": "2.1.2",
    "vscode-html-languageservice": "^3.0.3",
    "vscode-languageclient": "~7.0.0"
  },
  "devDependencies": {
    "@types/vscode": "^1.52.0",
    "astro-scripts": "file:../../scripts",
    "execa": "^5.0.0"
  },
  "main": "./dist/index.js",
  "files": [
    "dist/",
    "languages/",
    "syntaxes/"
  ],
  "repository": {
    "type": "git",
    "directory": "vscode",
    "url": "https://github.com/snowpackjs/astro"
  },
  "contributes": {
    "configuration": {
      "type": "object",
      "title": "Astro configuration",
      "properties": {
        "astro.trace.server": {
          "scope": "window",
          "type": "string",
          "enum": [
            "off",
            "messages",
            "verbose"
          ],
          "default": "off",
          "description": "Traces the communication between VS Code and the language server."
        }
      }
    },
    "languages": [
      {
        "id": "astro",
        "extensions": [
          ".astro"
        ],
        "aliases": [
          "Astro"
        ],
        "configuration": "./languages/astro-language-configuration.json"
      },
      {
        "id": "astro-markdown",
        "aliases": [
          "Astro Markdown"
        ],
        "configuration": "./languages/astro-markdown-language-configuration.json"
      }
    ],
    "grammars": [
      {
        "language": "astro",
        "scopeName": "text.html.astro",
        "path": "./syntaxes/astro.tmLanguage.json",
        "embeddedLanguages": {
          "text.html.astro": "astro",
          "text.html.markdown.astro": "astro-markdown",
          "text.html": "html",
          "source.css": "css",
          "source.scss": "scss",
          "source.sass": "sass",
          "source.tsx": "typescriptreact",
          "meta.embedded.block.frontmatter": "typescriptreact"
        }
      },
      {
        "language": "astro-markdown",
        "scopeName": "text.html.markdown.astro",
        "path": "./syntaxes/astro-markdown.tmLanguage.json",
        "injectTo": [
          "text.html.astro"
        ],
        "embeddedLanguages": {
          "text.html.astro": "astro",
          "text.html.markdown.astro": "astro-markdown",
          "text.html.markdown": "markdown",
          "source.tsx": "typescriptreact",
          "source.js": "javascript",
          "source.css": "css",
          "meta.embedded.block.css": "css",
          "meta.embedded.block.astro": "astro",
          "meta.embedded.block.ini": "ini",
          "meta.embedded.block.java": "java",
          "meta.embedded.block.lua": "lua",
          "meta.embedded.block.makefile": "makefile",
          "meta.embedded.block.perl": "perl",
          "meta.embedded.block.r": "r",
          "meta.embedded.block.ruby": "ruby",
          "meta.embedded.block.php": "php",
          "meta.embedded.block.sql": "sql",
          "meta.embedded.block.vs_net": "vs_net",
          "meta.embedded.block.xml": "xml",
          "meta.embedded.block.xsl": "xsl",
          "meta.embedded.block.yaml": "yaml",
          "meta.embedded.block.dosbatch": "dosbatch",
          "meta.embedded.block.clojure": "clojure",
          "meta.embedded.block.coffee": "coffee",
          "meta.embedded.block.c": "c",
          "meta.embedded.block.cpp": "cpp",
          "meta.embedded.block.diff": "diff",
          "meta.embedded.block.dockerfile": "dockerfile",
          "meta.embedded.block.go": "go",
          "meta.embedded.block.groovy": "groovy",
          "meta.embedded.block.pug": "jade",
          "meta.embedded.block.javascript": "javascript",
          "meta.embedded.block.json": "json",
          "meta.embedded.block.less": "less",
          "meta.embedded.block.objc": "objc",
          "meta.embedded.block.scss": "scss",
          "meta.embedded.block.perl6": "perl6",
          "meta.embedded.block.powershell": "powershell",
          "meta.embedded.block.python": "python",
          "meta.embedded.block.rust": "rust",
          "meta.embedded.block.scala": "scala",
          "meta.embedded.block.shellscript": "shellscript",
          "meta.embedded.block.typescript": "typescript",
          "meta.embedded.block.typescriptreact": "typescriptreact",
          "meta.embedded.block.csharp": "csharp",
          "meta.embedded.block.fsharp": "fsharp"
        }
      }
    ]
  }
}