-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
131 lines (131 loc) · 2.85 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
{
"name": "openai-translate",
"displayName": "OpenAI Translate",
"description": "Translate your code using OpenAI API.",
"version": "1.0.1",
"publisher": "Starkme",
"repository": {
"type": "git",
"url": "https://github.com/stark-eth/openai-translate-vscode.git"
},
"bugs": {
"url": "https://github.com/stark-eth/openai-translate-vscode/issues"
},
"icon": "assets/icons/icon.ico",
"engines": {
"vscode": "^1.42.0"
},
"categories": [
"Other"
],
"activationEvents": [
"*"
],
"main": "./out/extension.js",
"contributes": {
"configuration": [
{
"type": "object",
"title": "OpenAI Translate configuration",
"properties": {
"openaiTranslate.apiKey": {
"type": "string"
},
"openaiTranslate.apiURL": {
"type": "string",
"default": "https://api.openai.com"
},
"openaiTranslate.replaceText": {
"type": "boolean",
"default": true,
"description": "Set to true in order to replace selected text with the translated text."
},
"openaiTranslate.languages": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"en-US",
"zh-CN",
"jp-JP"
],
"description": "An array of the languages that your would like to translate the selected text to."
},
"openaiTranslate.codeLanguages": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"TypeScript",
"JavaScript",
"Python",
"GoLang",
"Rust",
"C++",
"C",
"Java"
],
"description": "An array of the code languages that your would like to operate the selected text to."
}
}
}
],
"commands": [
{
"command": "extension.translate",
"title": "Translate"
},
{
"command": "extension.comment",
"title": "Comment"
},
{
"command": "extension.complete",
"title": "Complete"
}
],
"keybindings": [
{
"command": "extension.translate",
"key": "ctrl+alt+t"
},
{
"command": "extension.comment",
"key": "ctrl+alt+c"
},
{
"command": "extension.complete",
"key": "ctrl+alt+f"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile",
"test": "node ./out/test/runTest.js",
"lint": "eslint src --fix --ext ts"
},
"devDependencies": {
"@types/glob": "^8.0.0",
"@types/mocha": "^10.0.1",
"@types/node": "18.14.2",
"@types/vscode": "^1.42.0",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"@vscode/test-electron": "^2.2.0",
"eslint": "^8.28.0",
"glob": "^8.0.3",
"mocha": "^10.1.0",
"ts-loader": "^9.4.1",
"typescript": "^4.9.3",
"vscode-test": "^1.3.0"
},
"dependencies": {
"axios": "^1.3.4",
"eventsource-parser": "^0.1.0"
}
}