package.json 18.0 KB
Newer Older
1 2
{
    "name": "emmet",
3 4 5
    "displayName": "Emmet",
    "description": "%description%",
    "version": "1.0.0",
P
Pine Wu 已提交
6 7
    "publisher": "vscode",
    "license": "MIT",
8
    "engines": {
9
        "vscode": "^1.13.0"
10
    },
R
Ramya Achutha Rao 已提交
11
    "icon": "images/icon.png",
12 13 14 15 16 17 18 19
    "categories": [
        "Other"
    ],
    "repository": {
        "type": "git",
        "url": "https://github.com/Microsoft/vscode-emmet"
    },
    "activationEvents": [
20
        "*",
21
        "onCommand:emmet.expandAbbreviation",
22 23 24 25
        "onLanguage:html",
        "onLanguage:css",
        "onLanguage:scss",
        "onLanguage:less"
26 27 28 29 30
    ],
    "main": "./out/extension",
    "contributes": {
        "configuration": {
            "type": "object",
31
            "title": "Emmet",
32
            "properties": {
R
Ramya Achutha Rao 已提交
33
                "emmet.showExpandedAbbreviation": {
34 35 36
                    "type": [
                        "string"
                    ],
37 38 39
                    "enum": [
                        "never",
                        "always",
40
                        "inMarkupAndStylesheetFilesOnly"
41
                    ],
42
                    "default": "always",
43
                    "markdownDescription": "%emmetShowExpandedAbbreviation%"
44
                },
R
Ramya Achutha Rao 已提交
45
                "emmet.showAbbreviationSuggestions": {
46 47
                    "type": "boolean",
                    "default": true,
48
                    "markdownDescription": "%emmetShowAbbreviationSuggestions%"
49
                },
50 51
                "emmet.includeLanguages": {
                    "type": "object",
R
Ramya Achutha Rao 已提交
52
                    "default": {},
53
                    "markdownDescription": "%emmetIncludeLanguages%"
54
                },
55
                "emmet.variables": {
56 57 58 59 60 61 62 63 64 65 66
                    "type": "object",
                    "properties": {
                        "lang": {
                            "type": "string",
                            "default": "en"
                        },
                        "charset": {
                            "type": "string",
                            "default": "UTF-8"
                        }
                    },
67
                    "default": {},
68 69
                    "description": "%emmetVariables%"
                },
70
                "emmet.syntaxProfiles": {
71 72 73 74
                    "type": "object",
                    "default": {},
                    "description": "%emmetSyntaxProfiles%"
                },
75
                "emmet.excludeLanguages": {
76
                    "type": "array",
77 78 79
                    "default": [
                        "markdown"
                    ],
80 81 82
                    "description": "%emmetExclude%"
                },
                "emmet.extensionsPath": {
R
Rob Lourens 已提交
83 84 85 86
                    "type": [
                        "string",
                        "null"
                      ],
87 88
                    "default": null,
                    "description": "%emmetExtensionsPath%"
89 90 91 92 93
                },
                "emmet.triggerExpansionOnTab": {
                    "type": "boolean",
                    "default": false,
                    "description": "%emmetTriggerExpansionOnTab%"
94
                },
95
                "emmet.preferences": {
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
                    "type": "object",
                    "default": {},
                    "description": "%emmetPreferences%",
                    "properties": {
                        "css.intUnit": {
                            "type": "string",
                            "default": "px",
                            "description": "%emmetPreferencesIntUnit%"
                        },
                        "css.floatUnit": {
                            "type": "string",
                            "default": "em",
                            "description": "%emmetPreferencesFloatUnit%"
                        },
                        "css.propertyEnd": {
                            "type": "string",
                            "default": ";",
                            "description": "%emmetPreferencesCssAfter%"
                        },
                        "sass.propertyEnd": {
                            "type": "string",
                            "default": "",
                            "description": "%emmetPreferencesSassAfter%"
                        },
                        "stylus.propertyEnd": {
                            "type": "string",
                            "default": "",
                            "description": "%emmetPreferencesStylusAfter%"
                        },
                        "css.valueSeparator": {
                            "type": "string",
                            "default": ": ",
                            "description": "%emmetPreferencesCssBetween%"
                        },
                        "sass.valueSeparator": {
                            "type": "string",
                            "default": ": ",
                            "description": "%emmetPreferencesSassBetween%"
                        },
                        "stylus.valueSeparator": {
                            "type": "string",
                            "default": " ",
                            "description": "%emmetPreferencesStylusBetween%"
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
                        },
                        "bem.elementSeparator": {
                            "type": "string",
                            "default": "__",
                            "description": "%emmetPreferencesBemElementSeparator%"
                        },
                        "bem.modifierSeparator": {
                            "type": "string",
                            "default": "_",
                            "description": "%emmetPreferencesBemModifierSeparator%"
                        },
                        "filter.commentBefore": {
                            "type": "string",
                            "default": "",
                            "description": "%emmetPreferencesFilterCommentBefore%"
                        },
                        "filter.commentAfter": {
                            "type": "string",
                            "default": "\n<!-- /[#ID][.CLASS] -->",
                            "description": "%emmetPreferencesFilterCommentAfter%"
                        },
                        "filter.commentTrigger": {
                            "type": "array",
162 163 164 165
                            "default": [
                                "id",
                                "class"
                            ],
166
                            "description": "%emmetPreferencesFilterCommentTrigger%"
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185
                        },
                        "format.noIndentTags": {
                            "type": "array",
                            "default": [
                                "html"
                            ],
                            "description": "%emmetPreferencesFormatNoIndentTags%"
                        },
                        "format.forceIndentationForTags": {
                            "type": "array",
                            "default": [
                                "body"
                            ],
                            "description": "%emmetPreferencesFormatForceIndentTags%"
                        },
                        "profile.allowCompactBoolean": {
                            "type": "boolean",
                            "default": false,
                            "description": "%emmetPreferencesAllowCompactBoolean%"
186 187 188
                        },
                        "css.webkitProperties": {
                            "type": "string",
189
                            "default": null,
190
                            "markdownDescription": "%emmetPreferencesCssWebkitProperties%"
191 192 193
                        },
                        "css.mozProperties": {
                            "type": "string",
194
                            "default": null,
195
                            "markdownDescription": "%emmetPreferencesCssMozProperties%"
196 197 198
                        },
                        "css.oProperties": {
                            "type": "string",
199
                            "default": null,
200
                            "markdownDescription": "%emmetPreferencesCssOProperties%"
201 202 203
                        },
                        "css.msProperties": {
                            "type": "string",
204
                            "default": null,
205
                            "markdownDescription": "%emmetPreferencesCssMsProperties%"
206 207 208 209 210
                        },
                        "css.fuzzySearchMinScore": {
                            "type": "number",
                            "default": 0.3,
                            "description": "%emmetPreferencesCssFuzzySearchMinScore%"
211 212
                        }
                    }
213 214 215 216
                },
                "emmet.showSuggestionsAsSnippets": {
                    "type": "boolean",
                    "default": false,
217
                    "markdownDescription": "%emmetShowSuggestionsAsSnippets%"
218 219 220 221
                },
                "emmet.optimizeStylesheetParsing": {
                    "type": "boolean",
                    "default": true,
222
                    "markdownDescription": "%emmetOptimizeStylesheetParsing%"
223 224
                }
            }
225 226
        },
        "commands": [
227 228 229 230 231
            {
                "command": "editor.emmet.action.wrapIndividualLinesWithAbbreviation",
                "title": "%command.wrapIndividualLinesWithAbbreviation%",
                "category": "Emmet"
            },
232 233 234 235 236
            {
                "command": "editor.emmet.action.wrapWithAbbreviation",
                "title": "%command.wrapWithAbbreviation%",
                "category": "Emmet"
            },
237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341
            {
                "command": "editor.emmet.action.removeTag",
                "title": "%command.removeTag%",
                "category": "Emmet"
            },
            {
                "command": "editor.emmet.action.updateTag",
                "title": "%command.updateTag%",
                "category": "Emmet"
            },
            {
                "command": "editor.emmet.action.matchTag",
                "title": "%command.matchTag%",
                "category": "Emmet"
            },
            {
                "command": "editor.emmet.action.balanceIn",
                "title": "%command.balanceIn%",
                "category": "Emmet"
            },
            {
                "command": "editor.emmet.action.balanceOut",
                "title": "%command.balanceOut%",
                "category": "Emmet"
            },
            {
                "command": "editor.emmet.action.prevEditPoint",
                "title": "%command.prevEditPoint%",
                "category": "Emmet"
            },
            {
                "command": "editor.emmet.action.nextEditPoint",
                "title": "%command.nextEditPoint%",
                "category": "Emmet"
            },
            {
                "command": "editor.emmet.action.mergeLines",
                "title": "%command.mergeLines%",
                "category": "Emmet"
            },
            {
                "command": "editor.emmet.action.selectPrevItem",
                "title": "%command.selectPrevItem%",
                "category": "Emmet"
            },
            {
                "command": "editor.emmet.action.selectNextItem",
                "title": "%command.selectNextItem%",
                "category": "Emmet"
            },
            {
                "command": "editor.emmet.action.splitJoinTag",
                "title": "%command.splitJoinTag%",
                "category": "Emmet"
            },
            {
                "command": "editor.emmet.action.toggleComment",
                "title": "%command.toggleComment%",
                "category": "Emmet"
            },
            {
                "command": "editor.emmet.action.evaluateMathExpression",
                "title": "%command.evaluateMathExpression%",
                "category": "Emmet"
            },
            {
                "command": "editor.emmet.action.updateImageSize",
                "title": "%command.updateImageSize%",
                "category": "Emmet"
            },
            {
                "command": "editor.emmet.action.incrementNumberByOneTenth",
                "title": "%command.incrementNumberByOneTenth%",
                "category": "Emmet"
            },
            {
                "command": "editor.emmet.action.incrementNumberByOne",
                "title": "%command.incrementNumberByOne%",
                "category": "Emmet"
            },
            {
                "command": "editor.emmet.action.incrementNumberByTen",
                "title": "%command.incrementNumberByTen%",
                "category": "Emmet"
            },
            {
                "command": "editor.emmet.action.decrementNumberByOneTenth",
                "title": "%command.decrementNumberByOneTenth%",
                "category": "Emmet"
            },
            {
                "command": "editor.emmet.action.decrementNumberByOne",
                "title": "%command.decrementNumberByOne%",
                "category": "Emmet"
            },
            {
                "command": "editor.emmet.action.decrementNumberByTen",
                "title": "%command.decrementNumberByTen%",
                "category": "Emmet"
            },
            {
                "command": "editor.emmet.action.reflectCSSValue",
                "title": "%command.reflectCSSValue%",
                "category": "Emmet"
            }
342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438
        ],
        "menus": {
            "commandPalette": [
                {
                    "command": "editor.emmet.action.wrapIndividualLinesWithAbbreviation",
                    "when": "resourceScheme =~ /^untitled$|^file$/"
                },
                {
                    "command": "editor.emmet.action.wrapWithAbbreviation",
                    "when": "resourceScheme =~ /^untitled$|^file$/"
                },
                {
                    "command": "editor.emmet.action.removeTag",
                    "when": "resourceScheme =~ /^untitled$|^file$/"
                },
                {
                    "command": "editor.emmet.action.updateTag",
                    "when": "resourceScheme =~ /^untitled$|^file$/"
                },
                {
                    "command": "editor.emmet.action.matchTag",
                    "when": "resourceScheme =~ /^untitled$|^file$/"
                },
                {
                    "command": "editor.emmet.action.balanceIn",
                    "when": "resourceScheme =~ /^untitled$|^file$/"
                },
                {
                    "command": "editor.emmet.action.balanceOut",
                    "when": "resourceScheme =~ /^untitled$|^file$/"
                },
                {
                    "command": "editor.emmet.action.prevEditPoint",
                    "when": "resourceScheme =~ /^untitled$|^file$/"
                },
                {
                    "command": "editor.emmet.action.nextEditPoint",
                    "when": "resourceScheme =~ /^untitled$|^file$/"
                },
                {
                    "command": "editor.emmet.action.mergeLines",
                    "when": "resourceScheme =~ /^untitled$|^file$/"
                },
                {
                    "command": "editor.emmet.action.selectPrevItem",
                    "when": "resourceScheme =~ /^untitled$|^file$/"
                },
                {
                    "command": "editor.emmet.action.selectNextItem",
                    "when": "resourceScheme =~ /^untitled$|^file$/"
                },
                {
                    "command": "editor.emmet.action.splitJoinTag",
                    "when": "resourceScheme =~ /^untitled$|^file$/"
                },
                {
                    "command": "editor.emmet.action.toggleComment",
                    "when": "resourceScheme =~ /^untitled$|^file$/"
                },
                {
                    "command": "editor.emmet.action.evaluateMathExpression",
                    "when": "resourceScheme =~ /^untitled$|^file$/"
                },
                {
                    "command": "editor.emmet.action.updateImageSize",
                    "when": "resourceScheme =~ /^untitled$|^file$/"
                },
                {
                    "command": "editor.emmet.action.incrementNumberByOneTenth",
                    "when": "resourceScheme =~ /^untitled$|^file$/"
                },
                {
                    "command": "editor.emmet.action.incrementNumberByOne",
                    "when": "resourceScheme =~ /^untitled$|^file$/"
                },
                {
                    "command": "editor.emmet.action.incrementNumberByTen",
                    "when": "resourceScheme =~ /^untitled$|^file$/"
                },
                {
                    "command": "editor.emmet.action.decrementNumberByOneTenth",
                    "when": "resourceScheme =~ /^untitled$|^file$/"
                },
                {
                    "command": "editor.emmet.action.decrementNumberByOne",
                    "when": "resourceScheme =~ /^untitled$|^file$/"
                },
                {
                    "command": "editor.emmet.action.decrementNumberByTen",
                    "when": "resourceScheme =~ /^untitled$|^file$/"
                },
                {
                    "command": "editor.emmet.action.reflectCSSValue",
                    "when": "resourceScheme =~ /^untitled$|^file$/"
                }
            ]
        }
439 440
    },
    "scripts": {
441
        "watch": "gulp watch-extension:emmet",
P
Pine Wu 已提交
442 443
        "compile": "gulp compile-extension:emmet",
        "deps": "yarn add vscode-emmet-helper"
444 445
    },
    "devDependencies": {
446
        "@types/node": "^12.11.7",
J
Joao Moreno 已提交
447 448
        "mocha-junit-reporter": "^1.17.0",
        "mocha-multi-reporters": "^1.1.7",
449
        "vscode": "1.0.1"
450 451
    },
    "dependencies": {
452
        "@emmetio/css-parser": "ramya-rao-a/css-parser#vscode",
J
Joao Moreno 已提交
453
        "@emmetio/html-matcher": "^0.3.3",
454
        "@emmetio/math-expression": "^0.1.1",
J
Joao Moreno 已提交
455
        "image-size": "^0.5.2",
P
Pine Wu 已提交
456
        "vscode-emmet-helper": "^1.2.16",
P
Pine Wu 已提交
457
        "vscode-html-languageservice": "^3.0.3"
458
    }
J
Joao Moreno 已提交
459
}