-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
163 lines (163 loc) · 4.92 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
{
"name": "simon",
"displayName": "S.I.M.O.N.",
"description": "integrate your own java code prediction models in Vscode",
"publisher": "Matteo-Omenetti",
"repository": "https://github.com/Matteo-Omenetti/S.I.M.O.N.",
"version": "0.1.3",
"engines": {
"vscode": "^1.54.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:java",
"onCommand:simon.autocomplete"
],
"main": "./src/extension.js",
"contributes": {
"languages": [
{
"id": "java",
"extensions": [
".java"
],
"configuration": "./language-configuration.json"
}
],
"commands": [
{
"command": "simon.autocomplete",
"title": "Show the Suggestion"
},
{
"command": "simon.delete",
"title": "Delete the Suggestion"
},
{
"command": "simon.accept",
"title": "Accept the Suggestion"
}
],
"configuration": {
"title": "S.I.M.O.N.",
"properties": {
"simon.urlCode": {
"type": "array",
"default": [
{
"enable": true,
"url": "http://gym.si.usi.ch:45001/code/"
}
],
"description": "The server hosting the neural network that makes code recommendations. (If multiple objects are given with enable=true, the first one will be considered)"
},
"simon.urlComment": {
"type": "array",
"default": [
{
"enable": true,
"url": "http://gym.si.usi.ch:45001/comment/"
}
],
"description": "The server hosting the neural network that makes comment recommendations. (If multiple objects are given with enable=true, the first one will be considered)"
},
"simon.triggerChars": {
"type": "array",
"default": [
" ",
".",
",",
"("
],
"items": {
"type": "string"
},
"minItems": 1,
"uniqueItems": true,
"markdownDescription": "Specifies the characters for which the autocompletion will be triggered",
"scope": "window"
},
"simon.name": {
"type": "string",
"default": null,
"markdownDescription": "Insert your organization name when requesting a recommendation",
"scope": "window"
},
"simon.urlFeedback": {
"type": "string",
"default": "http://gym.si.usi.ch:45002/feedback/",
"markdownDescription": "The server hosting the feeback database",
"scope": "window"
},
"simon.suggestionColor": {
"type": "string",
"default": "#505050",
"markdownDescription": "Specify the color of the suggestion in hexadecimal. Depending on the color theme you are using the defualt one could not be visible.",
"scope": "window"
},
"simon.confidenceCode": {
"type": "number",
"default": 75,
"minimum": 0,
"maximum": 100,
"markdownDescription": "Specify the minimum confidence that the code neural network must have in order for a recommendation to be shown. If the confidence for the current prediction is below the specified number, it will not be shown",
"scope": "window"
},
"simon.confidenceComment": {
"type": "number",
"default": 75,
"minimum": 0,
"maximum": 100,
"markdownDescription": "Specify the minimum confidence that the comment neural network must have in order for a recommendation to be shown. If the confidence for the current prediction is below the specified number, it will not be shown",
"scope": "window"
},
"simon.singleLineComment": {
"type": "boolean",
"default": true,
"markdownDescription": "If a single line comment on the same line of some code is decteded, move the comment to a new line, when the code is sent to the neural network.",
"scope": "window"
}
}
},
"keybindings": [
{
"command": "simon.delete",
"key": "escape",
"mac": "escape",
"when": "myContext == true"
},
{
"command": "simon.accept",
"key": "tab",
"mac": "tab",
"when": "myContext == true"
},
{
"command": "simon.trigger",
"key": "ctrl+space",
"mac": "ctrl+space"
}
]
},
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"test": "node ./test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/mocha": "^8.0.4",
"@types/node": "^12.11.7",
"@types/vscode": "^1.54.0",
"eslint": "^7.19.0",
"glob": "^7.1.6",
"mocha": "^8.2.1",
"typescript": "^4.1.3",
"vscode-test": "^1.5.0"
},
"dependencies": {
"node-fetch": "^2.6.1"
}
}