|
3 | 3 | "displayName": "float-pigment-css-analyzer",
|
4 | 4 | "publisher": "wechat-miniprogram",
|
5 | 5 | "description": "float-pigment-css diagnostic information for Visual Studio Code",
|
6 |
| - "version": "0.3.0-alpha.1", |
| 6 | + "version": "0.1.0", |
7 | 7 | "license": "MIT",
|
8 | 8 | "engines": {
|
9 | 9 | "vscode": "^1.61.0"
|
|
26 | 26 | "onLanguage:css"
|
27 | 27 | ],
|
28 | 28 | "contributes": {
|
| 29 | + "commands": [ |
| 30 | + { |
| 31 | + "command": "float-pigment-css-analyzer.restart", |
| 32 | + "title": "Restart float-pigment-css-analyzer" |
| 33 | + } |
| 34 | + ], |
29 | 35 | "configuration": {
|
30 | 36 | "type": "object",
|
31 | 37 | "title": "float-pigment-css-analyzer",
|
32 | 38 | "properties": {
|
33 | 39 | "float-pigment-css-analyzer.enabled": {
|
34 | 40 | "scope": "window",
|
35 |
| - "type": "boolean", |
36 |
| - "default": true, |
37 |
| - "description": "Enable this language extension (can be set per workspace)." |
| 41 | + "enum": [ |
| 42 | + "renderer", |
| 43 | + "always", |
| 44 | + "never" |
| 45 | + ], |
| 46 | + "default": "renderer", |
| 47 | + "description": "When to enable the diagnostic information (can be set per workspace)." |
| 48 | + }, |
| 49 | + "float-pigment-css-analyzer.renderer": { |
| 50 | + "scope": "window", |
| 51 | + "type": "array", |
| 52 | + "default": [ |
| 53 | + "float-pigment", |
| 54 | + "skyline", |
| 55 | + "rect-palette" |
| 56 | + ], |
| 57 | + "description": "The \"renderer\" field in `app.json` or `[COMPONENT].json` that enables the diagnostic information." |
38 | 58 | },
|
39 | 59 | "float-pigment-css-analyzer.enabledForCSS": {
|
40 | 60 | "scope": "window",
|
|
46 | 66 | }
|
47 | 67 | },
|
48 | 68 | "scripts": {
|
49 |
| - "vscode:prepublish": "pnpm run package", |
| 69 | + "vscode:prepublish": "npm run package", |
50 | 70 | "compile": "webpack",
|
51 | 71 | "watch": "webpack --watch",
|
52 | 72 | "package": "webpack --mode production --devtool hidden-source-map",
|
53 | 73 | "compile-tests": "tsc -p . --outDir out",
|
54 | 74 | "watch-tests": "tsc -p . -w --outDir out",
|
55 |
| - "pretest": "cargo build && pnpm run compile-tests && pnpm run compile && pnpm run lint", |
| 75 | + "pretest": "npm run compile-tests && npm run compile && npm run lint", |
56 | 76 | "lint": "eslint src",
|
57 | 77 | "test": "vscode-test"
|
58 | 78 | },
|
59 | 79 | "devDependencies": {
|
60 |
| - "@vscode/test-cli": "^0.0.10", |
61 |
| - "@vscode/test-electron": "^2.4.1", |
62 | 80 | "@types/assert": "^1.5.11",
|
63 | 81 | "@types/diff": "^7.0.0",
|
64 | 82 | "@types/mocha": "^10.0.9",
|
65 | 83 | "@types/node": "~22.9.0",
|
66 | 84 | "@types/vscode": "^1.61.0",
|
67 | 85 | "@typescript-eslint/eslint-plugin": "^6.6.0",
|
68 | 86 | "@typescript-eslint/parser": "^6.6.0",
|
| 87 | + "@vscode/test-cli": "^0.0.10", |
| 88 | + "@vscode/test-electron": "^2.4.1", |
| 89 | + "assert": "^2.1.0", |
69 | 90 | "eslint": "^7.17.0",
|
70 | 91 | "eslint-config-airbnb-base": "^14.2.1",
|
71 | 92 | "eslint-config-prettier": "^8.6.0",
|
|
74 | 95 | "eslint-plugin-promise": "^4.2.1",
|
75 | 96 | "float-pigment-css": "^0.3.0",
|
76 | 97 | "prettier": "^2.8.3",
|
77 |
| - "pretty-format": "^29.7.0", |
78 | 98 | "ts-loader": "^9.5.1",
|
79 | 99 | "ts-node": "^10.9.2",
|
80 | 100 | "typescript": "~5.2.2",
|
|
0 commit comments