-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
167 lines (167 loc) · 4.5 KB
/
Copy pathpackage.json
File metadata and controls
167 lines (167 loc) · 4.5 KB
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
{
"name": "source-doc",
"displayName": "Source Doc",
"description": "Explains source code line-by-line or block-by-block or full file via CodeLens markers, powered by GitHub Copilot.",
"version": "0.3.0",
"publisher": "moonolgerd",
"repository": {
"type": "git",
"url": "https://github.com/moonolgerd/source-doc.git"
},
"bugs": {
"url": "https://github.com/moonolgerd/source-doc/issues"
},
"homepage": "https://github.com/moonolgerd/source-doc#readme",
"icon": "images/icon.png",
"galleryBanner": {
"color": "#1e1e1e",
"theme": "dark"
},
"license": "MIT",
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"Programming Languages",
"Other"
],
"keywords": [
"codelens",
"explain",
"copilot",
"ai",
"documentation",
"inline",
"ghost text"
],
"activationEvents": [
"onStartupFinished",
"onLanguage:typescript",
"onLanguage:typescriptreact",
"onLanguage:javascript",
"onLanguage:javascriptreact",
"onLanguage:csharp",
"onLanguage:xaml",
"onLanguage:python",
"onLanguage:java",
"onLanguage:go",
"onLanguage:rust",
"onLanguage:cpp",
"onLanguage:c",
"onLanguage:kotlin",
"onLanguage:dart",
"onLanguage:swift"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "sourceDoc.explainLine",
"title": "Source Doc: Explain Line"
},
{
"command": "sourceDoc.explainBlock",
"title": "Source Doc: Explain Block"
},
{
"command": "sourceDoc.toggleMode",
"title": "Source Doc: Toggle Mode (line / block / both)"
},
{
"command": "sourceDoc.clearExplanations",
"title": "Source Doc: Clear All Explanations"
},
{
"command": "sourceDoc.refreshLenses",
"title": "Source Doc: Refresh CodeLenses"
},
{
"command": "sourceDoc.explainFile",
"title": "Source Doc: Explain File (all lines)"
}
],
"configuration": {
"title": "Source Doc",
"properties": {
"sourceDoc.enabled": {
"type": "boolean",
"default": true,
"description": "Enable or disable Source Doc CodeLens markers."
},
"sourceDoc.mode": {
"type": "string",
"enum": [
"line",
"block",
"both",
"file",
"none"
],
"enumDescriptions": [
"Show a CodeLens on every non-empty line.",
"Show a CodeLens on every function, class, and method.",
"Show both per-line and per-block CodeLens markers.",
"Show only the file-level 'Explain file' CodeLens at the top of the file.",
"Disable all CodeLens markers."
],
"default": "block",
"description": "Granularity at which CodeLens markers are displayed."
},
"sourceDoc.languages": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"typescript",
"typescriptreact",
"javascript",
"javascriptreact",
"csharp",
"xaml",
"python",
"java",
"go",
"kotlin",
"dart",
"swift",
"rust",
"c",
"cpp"
],
"description": "Language IDs for which Source Doc CodeLens markers are shown."
},
"sourceDoc.modelFamily": {
"type": "string",
"default": "gpt-4o",
"description": "GitHub Copilot model family to use for explanations (e.g. 'gpt-4o', 'gpt-4o-mini', 'claude-sonnet-4-5')."
},
"sourceDoc.maxExplanationLength": {
"type": "number",
"default": 160,
"minimum": 40,
"maximum": 400,
"description": "Maximum number of characters shown in the inline ghost text. Longer explanations are truncated with '…'."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "eslint src --ext ts",
"pretest": "npm run compile",
"test": "node ./out/test/runTests.js"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.10",
"@types/node": "^20.0.0",
"@types/vscode": "^1.90.0",
"@vscode/test-electron": "^2.5.2",
"glob": "^11.1.0",
"mocha": "^10.8.2",
"typescript": "^5.4.0"
}
}