-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
324 lines (324 loc) · 11 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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
{
"name": "@tcx4c70/coc-csharp",
"version": "0.0.7",
"description": "C# extension for coc.nvim",
"author": "Adam Tao <[email protected]>",
"license": "MIT",
"main": "lib/index.js",
"keywords": [
"coc.nvim",
"vim",
"neovim",
"csharp",
"roslyn"
],
"engines": {
"coc": "^0.0.82"
},
"repository": {
"type": "git",
"url": "https://github.com/tcx4c70/coc-csharp.git"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"watch": "node esbuild.mjs --watch",
"build": "node esbuild.mjs",
"prepare": "node esbuild.mjs"
},
"devDependencies": {
"@types/node": "^22.9.0",
"@types/node-fetch": "^2.6.12",
"@types/uuid": "^10.0.0",
"coc.nvim": "0.0.83-next.18",
"esbuild": "^0.19.8",
"typescript": "^5.3.3"
},
"activationEvents": [
"onLanguage:csharp",
"onLanguage:cs",
"workspaceContains:**/*.{sln,csproj}"
],
"contributes": {
"rootPatterns": [
{
"filetype": "cs",
"patterns": [
"*.sln"
]
},
{
"filetype": "csharp",
"patterns": [
"*.sln"
]
}
],
"jsonValidation": [
{
"fileMatch": [
"appsettings.json",
"appsettings.*.json"
],
"url": "https://json.schemastore.org/appsettings.json"
},
{
"fileMatch": "global.json",
"url": "https://json.schemastore.org/global.json"
}
],
"configuration": {
"type": "object",
"title": "coc-csharp configuration",
"properties": {
"csharp.enabled": {
"type": "boolean",
"default": true,
"description": "Enable coc-csharp extension"
},
"csharp.server.path": {
"type": "string",
"default": "",
"description": "Path to roslyn language server (note: need to be the path of the dll file instead of the executable file), e.g.: ~/.roslyn/content/LanguageServer/osx-arm64/Microsoft.CodeAnalysis.LanguageServer.dll. If it's empty, the extension will download roslyn language server and use it."
},
"csharp.server.checkUpdateDuration": {
"type": "string",
"enum": [
"never",
"always",
"daily",
"weekly",
"monthly"
],
"default": "weekly",
"enumDescriptions": [
"Never check for updates",
"Always check for updates",
"Check for updates daily",
"Check for updates weekly",
"Check for updates monthly"
],
"description": "Duration to check for updates of roslyn language server (only work if coc.server.path is empty). Suggest not to set it to 'always' or 'daily' because the roslyn language server hasn't an official/stable release channel and it will release a new version frequently."
},
"dotnet.typeMembers.memberInsertionLocation": {
"type": "string",
"enum": [
"withOtherMembersOfTheSameKind",
"atTheEnd"
],
"default": "withOtherMembersOfTheSameKind",
"enumDescriptions": [
"Place them with other members of the same kind.",
"Place them at the end."
],
"description": "The insertion location of properties, events, and methods When implement interface or abstract class."
},
"dotnet.typeMembers.propertyGenerationBehavior": {
"type": "string",
"enum": [
"preferThrowingProperties",
"preferAutoProperties"
],
"default": "preferThrowingProperties",
"enumDescriptions": [
"Prefer throwing properties.",
"Prefer auto properties."
],
"description": "Generation behavior of properties when implement interface or abstract class."
},
"dotnet.codeLens.enableReferencesCodeLens": {
"type": "boolean",
"default": true,
"description": "Specifies whether the references CodeLens should be shown."
},
"dotnet.codeLens.enableTestsCodeLens": {
"type": "boolean",
"default": true,
"description": "Specifies whether the run and debug test CodeLens should be shown."
},
"dotnet.completion.showCompletionItemsFromUnimportedNamespaces": {
"type": "boolean",
"default": true,
"description": "Enables support for showing unimported types and unimported extension methods in completion lists. When committed, the appropriate using directive will be added at the top of the current file."
},
"dotnet.completion.showNameCompletionSuggestions": {
"type": "boolean",
"default": true,
"description": "Perform automatic object name completion for the members that you have recently selected."
},
"dotnet.completion.provideRegexCompletions": {
"type": "boolean",
"default": true,
"description": "Show regular expressions in completion list."
},
"dotnet.completion.triggerCompletionInArgumentLists": {
"type": "boolean",
"default": true,
"description": "Automatically show completion list in argument lists"
},
"dotnet.backgroundAnalysis.analyzerDiagnosticsScope": {
"type": "string",
"enum": [
"openFiles",
"fullSolution",
"none"
],
"default": "openFiles",
"enumDescriptions": [
"Open documents",
"Entire solution",
"None"
],
"description": "Run background code analysis for:"
},
"dotnet.backgroundAnalysis.compilerDiagnosticsScope": {
"type": "string",
"enum": [
"openFiles",
"fullSolution",
"none"
],
"default": "openFiles",
"enumDescriptions": [
"Open documents",
"Entire solution",
"None"
],
"description": "Show compiler errors and warnings for:"
},
"dotnet.highlighting.highlightRelatedRegexComponents": {
"type": "boolean",
"default": true,
"description": "Highlight related regular expression components under cursor."
},
"dotnet.highlighting.highlightRelatedJsonComponents": {
"type": "boolean",
"default": true,
"description": "Highlight related JSON components under cursor."
},
"csharp.inlayHints.enableInlayHintsForImplicitObjectCreation": {
"type": "boolean",
"default": false,
"description": "Show hints for implicit object creation"
},
"csharp.inlayHints.enableInlayHintsForImplicitVariableTypes": {
"type": "boolean",
"default": false,
"description": "Show hints for variables with inferred types"
},
"csharp.inlayHints.enableInlayHintsForLambdaParameterTypes": {
"type": "boolean",
"default": false,
"description": "Show hints for lambda parameter types"
},
"csharp.inlayHints.enableInlayHintsForTypes": {
"type": "boolean",
"default": false,
"description": "Display inline type hints"
},
"dotnet.inlayHints.enableInlayHintsForIndexerParameters": {
"type": "boolean",
"default": false,
"description": "Show hints for indexers"
},
"dotnet.inlayHints.enableInlayHintsForLiteralParameters": {
"type": "boolean",
"default": false,
"description": "Show hints for literals"
},
"dotnet.inlayHints.enableInlayHintsForObjectCreationParameters": {
"type": "boolean",
"default": false,
"description": "Show hints for 'new' expressions"
},
"dotnet.inlayHints.enableInlayHintsForOtherParameters": {
"type": "boolean",
"default": false,
"description": "Show hints for everything else"
},
"dotnet.inlayHints.enableInlayHintsForParameters": {
"type": "boolean",
"default": false,
"description": "Display inline parameter name hints"
},
"dotnet.inlayHints.suppressInlayHintsForParametersThatDifferOnlyBySuffix": {
"type": "boolean",
"default": false,
"description": "Suppress hints when parameter names differ only by suffix"
},
"dotnet.inlayHints.suppressInlayHintsForParametersThatMatchArgumentName": {
"type": "boolean",
"default": false,
"description": "Suppress hints when argument matches parameter name"
},
"dotnet.inlayHints.suppressInlayHintsForParametersThatMatchMethodIntent": {
"type": "boolean",
"default": false,
"description": "Suppress hints when parameter name matches the method's intent"
},
"dotnet.navigation.navigateToDecompiledSources": {
"type": "boolean",
"default": true,
"description": "Enable navigation to decomplied sources."
},
"dotnet.navigation.navigateToSourceLinkAndEmbeddedSources": {
"type": "boolean",
"default": true,
"description": "Enable navigation to source link and embedded sources."
},
"dotnet.quickInfo.showRemarksInQuickInfo": {
"type": "boolean",
"default": true,
"description": "Show remarks information when display symbol."
},
"dotnet.symbolSearch.searchReferenceAssemblies": {
"type": "boolean",
"default": true,
"description": "Search symbols in reference assemblies. It affects features requires symbol searching, such as add imports."
},
"dotnet.projects.binaryLogPath": {
"scope": "machine-overridable",
"type": "string",
"default": null,
"description": "Sets a path where MSBuild binary logs are written to when loading projects, to help diagnose loading errors."
},
"dotnet.projects.enableAutomaticRestore": {
"type": "boolean",
"default": true,
"description": "Enables automatic NuGet restore if the extension detects assets are missing."
}
}
},
"commands": [
{
"command": "dotnet.openSolution",
"title": "Open Solution",
"category": ".NET"
},
{
"command": "dotnet.restartServer",
"title": "Restart Language Server",
"category": ".NET"
},
{
"comamnd": "dotnet.restore.all",
"title": "Restore All Projects",
"category": ".NET"
},
{
"command": "dotnet.restore.project",
"title": "Restore Project",
"category": ".NET"
}
]
},
"dependencies": {
"coc-utils": "^0.0.17",
"detect-libc": "^2.0.3",
"node-fetch": "2.7.0",
"unzip-stream": "^0.3.4",
"uuid": "^11.0.3",
"vscode-languageserver-protocol": "^3.17.5"
}
}