-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
117 lines (117 loc) · 3.47 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
{
"name": "vscode-coeditor",
"displayName": "Coeditor",
"description": "AI-powered Python code editing assistant.",
"publisher": "JiayiWei",
"version": "0.4.4",
"repository": {
"type": "git",
"url": "https://github.com/MrVPlusOne/vscode-coeditor"
},
"icon": "images/Coeditor-logo-1200.png",
"engines": {
"vscode": "^1.74.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:python"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "coeditor.suggestEditsForSelection",
"title": "Suggest edits for selection",
"category": "Coeditor"
},
{
"command": "coeditor.suggestEditsAgain",
"title": "Suggest edits again",
"category": "Coeditor"
},
{
"command": "coeditor.applySuggestionAndClose",
"title": "Apply suggested edits and close",
"category": "Coeditor"
}
],
"menus": {
"editor/context": [
{
"command": "coeditor.suggestEditsForSelection",
"when": "editorLangId == python",
"group": "1_modification"
}
]
},
"configuration": {
"title": "Coeditor",
"properties": {
"coeditor.serverURL": {
"type": "string",
"default": "http://localhost:5042",
"description": "The URL of the Coeditor inference service."
},
"coeditor.rerunOnSave": {
"type": "boolean",
"default": true,
"description": "Whether to rerun Coeditor on file save when suggestion panel is open."
},
"coeditor.backgroundRunOnSave": {
"type": "boolean",
"default": false,
"description": "Whether to run Coeditor in the background on file save."
},
"coeditor.scoreThreshold": {
"type": "number",
"default": 0.2,
"description": "When running in the background, results whose confidence score lower than this value will not be shown."
},
"coeditor.writeLogs": {
"type": "boolean",
"default": false,
"description": "Whether to write the model logs to `<project>/.coeditor_logs`."
},
"coeditor.requestTimeout": {
"type": "number",
"default": 10,
"description": "The timeout (in seconds) of requests to the Coeditor inference service."
}
}
}
},
"scripts": {
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"vscode:prepublish": "npm run esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"test-compile": "tsc -p ./"
},
"devDependencies": {
"@types/glob": "^8.0.0",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/vscode": "^1.74.0",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"@vscode/test-electron": "^2.2.0",
"esbuild": "^0.16.17",
"eslint": "^8.28.0",
"glob": "^8.0.3",
"mocha": "^10.1.0",
"prettier": "2.8.7",
"typescript": "^4.9.3"
},
"dependencies": {
"axios": "^1.2.1",
"got": "^12.5.3",
"node-fetch": "^2.6.7"
}
}