package.json 17.4 KB
Newer Older
1 2
{
    "name": "emmet",
3 4 5
    "displayName": "Emmet",
    "description": "%description%",
    "version": "1.0.0",
6 7
    "publisher": "vscode",
    "engines": {
8
        "vscode": "^1.13.0"
9
    },
R
Ramya Achutha Rao 已提交
10
    "icon": "images/icon.png",
11 12 13 14 15 16 17 18
    "categories": [
        "Other"
    ],
    "repository": {
        "type": "git",
        "url": "https://github.com/Microsoft/vscode-emmet"
    },
    "activationEvents": [
19
        "*",
20
        "onCommand:emmet.expandAbbreviation",
21 22 23 24
        "onLanguage:html",
        "onLanguage:css",
        "onLanguage:scss",
        "onLanguage:less"
25 26 27 28 29
    ],
    "main": "./out/extension",
    "contributes": {
        "configuration": {
            "type": "object",
30
            "title": "Emmet",
31
            "properties": {
R
Ramya Achutha Rao 已提交
32
                "emmet.showExpandedAbbreviation": {
33 34 35
                    "type": [
                        "string"
                    ],
36 37 38
                    "enum": [
                        "never",
                        "always",
39
                        "inMarkupAndStylesheetFilesOnly"
40
                    ],
41
                    "default": "always",
42
                    "description": "%emmetShowExpandedAbbreviation%"
43
                },
R
Ramya Achutha Rao 已提交
44
                "emmet.showAbbreviationSuggestions": {
45 46
                    "type": "boolean",
                    "default": true,
47
                    "description": "%emmetShowAbbreviationSuggestions%"
48
                },
49 50
                "emmet.includeLanguages": {
                    "type": "object",
R
Ramya Achutha Rao 已提交
51
                    "default": {},
52
                    "description": "%emmetIncludeLanguages%"
53
                },
54
                "emmet.variables": {
55 56 57 58 59 60 61 62 63 64 65
                    "type": "object",
                    "properties": {
                        "lang": {
                            "type": "string",
                            "default": "en"
                        },
                        "charset": {
                            "type": "string",
                            "default": "UTF-8"
                        }
                    },
66
                    "default": {},
67 68
                    "description": "%emmetVariables%"
                },
69
                "emmet.syntaxProfiles": {
70 71 72 73
                    "type": "object",
                    "default": {},
                    "description": "%emmetSyntaxProfiles%"
                },
74
                "emmet.excludeLanguages": {
75
                    "type": "array",
76 77 78
                    "default": [
                        "markdown"
                    ],
79 80 81 82 83 84
                    "description": "%emmetExclude%"
                },
                "emmet.extensionsPath": {
                    "type": "string",
                    "default": null,
                    "description": "%emmetExtensionsPath%"
85 86 87 88 89
                },
                "emmet.triggerExpansionOnTab": {
                    "type": "boolean",
                    "default": false,
                    "description": "%emmetTriggerExpansionOnTab%"
90
                },
91
                "emmet.preferences": {
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
                    "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%"
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
                        },
                        "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",
158 159 160 161
                            "default": [
                                "id",
                                "class"
                            ],
162
                            "description": "%emmetPreferencesFilterCommentTrigger%"
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181
                        },
                        "format.noIndentTags": {
                            "type": "array",
                            "default": [
                                "html"
                            ],
                            "description": "%emmetPreferencesFormatNoIndentTags%"
                        },
                        "format.forceIndentationForTags": {
                            "type": "array",
                            "default": [
                                "body"
                            ],
                            "description": "%emmetPreferencesFormatForceIndentTags%"
                        },
                        "profile.allowCompactBoolean": {
                            "type": "boolean",
                            "default": false,
                            "description": "%emmetPreferencesAllowCompactBoolean%"
182 183 184
                        },
                        "css.webkitProperties": {
                            "type": "string",
185
                            "default": null,
186 187 188 189
                            "description": "%emmetPreferencesCssWebkitProperties%"
                        },
                        "css.mozProperties": {
                            "type": "string",
190
                            "default": null,
191 192 193 194
                            "description": "%emmetPreferencesCssMozProperties%"
                        },
                        "css.oProperties": {
                            "type": "string",
195
                            "default": null,
196 197 198 199
                            "description": "%emmetPreferencesCssOProperties%"
                        },
                        "css.msProperties": {
                            "type": "string",
200
                            "default": null,
201
                            "description": "%emmetPreferencesCssMsProperties%"
202 203 204 205 206
                        },
                        "css.fuzzySearchMinScore": {
                            "type": "number",
                            "default": 0.3,
                            "description": "%emmetPreferencesCssFuzzySearchMinScore%"
207 208
                        }
                    }
209 210 211 212 213
                },
                "emmet.showSuggestionsAsSnippets": {
                    "type": "boolean",
                    "default": false,
                    "description": "%emmetShowSuggestionsAsSnippets%"
214 215
                }
            }
216 217
        },
        "commands": [
218 219 220 221 222
            {
                "command": "editor.emmet.action.wrapIndividualLinesWithAbbreviation",
                "title": "%command.wrapIndividualLinesWithAbbreviation%",
                "category": "Emmet"
            },
223 224 225 226 227
            {
                "command": "editor.emmet.action.wrapWithAbbreviation",
                "title": "%command.wrapWithAbbreviation%",
                "category": "Emmet"
            },
228 229 230 231 232 233 234 235 236 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
            {
                "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"
            }
333 334 335 336 337 338 339 340 341 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
        ],
        "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$/"
                }
            ]
        }
430 431
    },
    "scripts": {
432
        "compile": "gulp compile-extension:emmet"
433 434
    },
    "devDependencies": {
435
        "@types/node": "8.0.33",
436
        "vscode": "1.0.1"
437 438
    },
    "dependencies": {
R
Ramya Achutha Rao 已提交
439
        "@emmetio/html-matcher": "^0.3.3",
440
        "@emmetio/css-parser": "ramya-rao-a/css-parser#vscode",
441
        "@emmetio/math-expression": "^0.1.1",
442
        "vscode-emmet-helper": "^1.2.4",
443
        "vscode-languageserver-types": "^3.5.0",
444
        "image-size": "^0.5.2",
445
        "vscode-nls": "3.2.1"
446
    }
R
Ramya Achutha Rao 已提交
447
}