generated from microsoft/vscode-python-tools-extension-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
196 lines (196 loc) · 7.14 KB
/
package.json
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
{
"name": "codecarbon",
"displayName": "Codecarbon",
"description": "Estimate and track carbon emissions from your computer, quantify and analyze their impact.",
"version": "0.1.0",
"preview": true,
"serverInfo": {
"name": "Codecarbon",
"module": "codecarbon"
},
"publisher": "codecarbon",
"license": "MIT",
"homepage": "https://github.com/inimaz/vscode-extension-codecarbon",
"repository": {
"type": "git",
"url": "https://github.com/inimaz/vscode-extension-codecarbon.git"
},
"bugs": {
"url": "https://github.com/inimaz/vscode-extension-codecarbon/issues"
},
"galleryBanner": {
"color": "#1e415e",
"theme": "dark"
},
"icon": "images/logo-round.png",
"keywords": [
"python",
"codecarbon",
"carbon",
"emissions",
"environment",
"sustainability",
"climate",
"impact"
],
"engines": {
"vscode": "^1.78.0"
},
"categories": [
"Programming Languages",
"Machine Learning",
"Other",
"Data Science",
"Visualization",
"Education"
],
"extensionDependencies": [
"ms-python.python"
],
"capabilities": {
"virtualWorkspaces": {
"supported": false,
"description": "Virtual Workspaces are not supported with Codecarbon."
}
},
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool source-map --config ./webpack.config.js",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"format-check": "prettier --check 'src/**/*.ts' 'build/**/*.yml' '.github/**/*.yml'",
"test": "jest ./out/test",
"vsce-package": "vsce package -o codecarbon.vsix"
},
"contributes": {
"configuration": {
"properties": {
"codecarbon.args": {
"default": [],
"description": "Arguments passed in. Each argument is a separate item in the array.",
"items": {
"type": "string"
},
"scope": "resource",
"type": "array"
},
"codecarbon.path": {
"default": [],
"description": "When set to a path to codecarbon binary, extension will use that. NOTE: Using this option may slowdown server response time.",
"scope": "resource",
"items": {
"type": "string"
},
"type": "array"
},
"codecarbon.importStrategy": {
"default": "useBundled",
"description": "Defines where `codecarbon` is imported from. This setting may be ignored if `codecarbon.path` is set.",
"enum": [
"useBundled",
"fromEnvironment"
],
"enumDescriptions": [
"Always use the bundled version of `codecarbon`.",
"Use `codecarbon` from environment, fallback to bundled version only if `codecarbon` not available in the environment."
],
"scope": "window",
"type": "string"
},
"codecarbon.interpreter": {
"default": [],
"description": "When set to a path to python executable, extension will use that to launch the server and any subprocess.",
"scope": "resource",
"items": {
"type": "string"
},
"type": "array"
},
"codecarbon.showNotifications": {
"default": "always",
"description": "Controls when notifications are shown by this extension.",
"enum": [
"off",
"onError",
"onWarning",
"always"
],
"enumDescriptions": [
"All notifications are turned off, any errors or warning are still available in the logs.",
"Notifications are shown only in the case of an error.",
"Notifications are shown for errors and warnings.",
"Notifications are show for anything that the server chooses to show."
],
"scope": "machine",
"type": "string"
},
"codecarbon.outputFileDir": {
"default": "userHome",
"description": "Where should codecarbon save the csv file containing the emissions.",
"enum": [
"userHome",
"workspaceDirectory",
"tmpDirectory"
],
"enumDescriptions": [
"The file will be saved in the user's home directory.",
"The file will be saved in the workspace directory.",
"The file will be saved in the temporary directory."
],
"scope": "machine",
"type": "string"
},
"codecarbon.launchOnStartup": {
"default": true,
"description": "Launch the codecarbon tracker on startup.",
"scope": "machine",
"type": "boolean"
}
}
},
"commands": [
{
"title": "Start tracking emissions",
"category": "Codecarbon",
"command": "codecarbon.start"
},
{
"title": "Stop tracking emissions",
"category": "Codecarbon",
"command": "codecarbon.stop"
}
]
},
"dependencies": {
"@vscode/python-extension": "1.0.2",
"fs-extra": "^11.1.1",
"vscode-languageclient": "^8.1.0"
},
"devDependencies": {
"@types/fs-extra": "^11.0.1",
"@types/glob": "^8.1.0",
"@types/jest": "^29.5.12",
"@types/node": "16.x",
"@types/vscode": "1.78.0",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^8.3.0",
"@vscode/test-electron": "^2.3.3",
"@vscode/vsce": "^2.22.0",
"eslint": "^9.9.1",
"glob": "^10.3.10",
"jest": "^29.7.0",
"prettier": "^3.0.0",
"ts-loader": "^9.4.4",
"typescript": "^5.1.6",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4"
}
}