-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
122 lines (122 loc) · 4.01 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
{
"name": "refactoring-participant",
"publisher": "vscode-samples",
"displayName": "Refactoring Participant",
"description": "An participant for suggesting refactorings for the current selection.",
"version": "0.1.0",
"engines": {
"vscode": "^1.90.0"
},
"extensionDependencies": [
"github.copilot-chat"
],
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"chatParticipants": [
{
"id": "refactoring-participant",
"name": "refactoring",
"description": "Suggest refactorings",
"isSticky": true,
"commands": [
{
"name": "",
"description": ""
},
{
"name": "performance",
"description": "Suggest refacorings to improve performance"
},
{
"name": "duplication",
"description": "Suggest refacorings to remove code duplication"
},
{
"name": "understandability",
"description": "Suggest refacorings to improve understandability"
},
{
"name": "idiomatic",
"description": "Suggest refacorings to make the code more idiomatic"
},
{
"name": "smells",
"description": "Suggest refacorings to remove code smells"
},
{
"name": "errorHandling",
"description": "Suggest refacorings to improve error handling"
},
{
"name": "suggestAnotherRefactoring",
"description": "Suggest another refactoring"
}
]
}
],
"commands": [
{
"command": "refactoring-participant.apply-refactoring",
"title": "Apply Refactoring",
"category": "Refactoring Participant",
"icon": "$(check)"
},
{
"command": "refactoring-participant.suggestRefactoring",
"title": "Suggest Refactoring",
"category": "Refactoring Participant"
}
],
"menus": {
"editor/title": [
{
"command": "refactoring-participant.apply-refactoring",
"group": "navigation",
"when": "resourceScheme == 'refactoring-preview'"
}
],
"copilot": [
{
"command": "refactoring-participant.suggestRefactoring",
"when": "!github.copilot.interactiveSession.disabled && !editorReadonly",
"group": "copilotAction@20"
}
]
},
"configuration": {
"type": "object",
"properties": {
"refactoring.languageModel": {
"type": "string",
"enum": [
"gpt4",
"gpt3-5"
],
"default": "gpt4",
"description": "The language model to use for suggesting refactorings."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./"
},
"devDependencies": {
"@types/node": "^20.5.9",
"eslint": "^7.22.0",
"tslint": "^6.1.3",
"typescript": "^4.0.3"
},
"dependencies": {
"@types/vscode": "^1.93.0",
"tiktoken": "^1.0.14"
}
}