-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
package.json
261 lines (261 loc) · 9.05 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
{
"name": "coc-flutter",
"version": "1.9.10",
"description": "flutter support for (Neo)vim",
"author": "iamcco <[email protected]>",
"license": "MIT",
"main": "out/index.js",
"keywords": [
"coc.nvim",
"flutter",
"lsp",
"dart"
],
"engines": {
"coc": "^0.0.82"
},
"scripts": {
"clean": "rimraf ./out",
"watch": "cross-env NODE_ENV=development node esbuild.js --watch",
"build": "cross-env NODE_ENV=production node esbuild.js",
"lint": "eslint src",
"lint-fix": "eslint --fix src",
"prepare": "husky install && npm run clean && npm run build"
},
"activationEvents": [
"workspaceContains:pubspec.yaml",
"onLanguage:dart",
"onCommand:flutter.run",
"onCommand:flutter.doctor",
"onCommand:flutter.upgrade",
"onCommand:flutter.create",
"onCommand:flutter.pub.get",
"onCommand:flutter.devices",
"onCommand:flutter.emulators"
],
"contributes": {
"rootPatterns": [
{
"filetype": "dart",
"patterns": [
"pubspec.yaml"
]
}
],
"configuration": {
"type": "object",
"title": "flutter configuration",
"properties": {
"flutter.trace.server": {
"type": "string",
"default": "off",
"enum": [
"off",
"message",
"verbose"
],
"description": "Trace level of log"
},
"flutter.enabled": {
"type": "boolean",
"default": true,
"description": "Enable coc-flutter extension"
},
"flutter.closingLabelPrefix": {
"type": "string",
"default": "// ",
"description": "The prefix of closing labels"
},
"flutter.fvm.enabled": {
"type": "boolean",
"default": true,
"description": "Enable checking of fvm directories to find flutter install"
},
"flutter.sdk.path": {
"type": "string",
"default": [],
"description": "The path of the flutter sdk to use. (When using the `FlutterSDKs` list to change sdk this value will be updated)"
},
"flutter.sdk.searchPaths": {
"type": "array",
"default": [],
"item": "string",
"description": "The paths to search for flutter sdks, either directories where flutter is installed or directories which contain directories where flutter versions have been installed\neg. /path/to/flutter (command at /path/to/flutter/bin/flutter) \n~/flutter_versions (command at ~/flutter_versions/version/bin/flutter)."
},
"flutter.lsp.debug": {
"type": "boolean",
"default": false,
"description": "Enable debug for language server"
},
"flutter.lsp.initialization.onlyAnalyzeProjectsWithOpenFiles": {
"type": "boolean",
"default": false,
"description": "When set to true, workspace folders will be ignored and analysis will be performed based on the open files, as if no workspace was open at all. This allows opening large folders without causing them to be completely analyzed."
},
"flutter.lsp.initialization.suggestFromUnimportedLibraries": {
"type": "boolean",
"default": true,
"description": "When set to false, completion will not include synbols that are not already imported into the current file"
},
"flutter.lsp.initialization.closingLabels": {
"type": "boolean",
"default": true,
"description": "When set to true, dart/textDocument/publishClosingLabels notifications will be sent with information to render editor closing labels."
},
"flutter.sdk.dart-command": {
"type": "string",
"default": "",
"description": "dart command, leave empty should just work"
},
"flutter.sdk.dart-lookup": {
"type": "string",
"default": "",
"description": "command to find dart executable location, used to infer dart-sdk location"
},
"flutter.sdk.flutter-lookup": {
"type": "string",
"default": "",
"description": "command to find flutter executable location, used to infer location of dart-sdk in flutter cache"
},
"flutter.provider.hot-reload": {
"type": "boolean",
"default": true,
"description": "Enable hot reload after save"
},
"flutter.provider.enableSnippet": {
"type": "boolean",
"default": true,
"description": "Enable completion item snippet"
},
"flutter.openDevLogSplitCommand": {
"type": "string",
"default": "",
"description": "Vim command to open dev log window, like: `botright 10split`"
},
"flutter.workspaceFolder.ignore": {
"type": "array",
"default": [],
"item": "string",
"description": "Path start within the list will not treat as workspaceFolder"
},
"flutter.autoOpenDevLog": {
"type": "boolean",
"default": false,
"description": "Automatically open the dev log after calling flutter run"
},
"flutter.autoHideDevLog": {
"type": "boolean",
"default": false,
"description": "Automatically hide the dev log when the app stops running"
},
"flutter.runDevToolsAtStartup": {
"type": "boolean",
"default": false,
"description": "Automatically run the DevTools debugger in a web browser when running a project"
},
"flutter.commands.devicesTimeout": {
"type": "integer",
"default": 1,
"description": "Sets the `--device-timout` flag when running `flutter devices`"
},
"flutter.selectedDeviceId": {
"type": "string",
"default": null,
"description": "The id of the device that is selected and will be used by `flutter.run` if it is available."
},
"flutter.devicesDefaultAction": {
"type": "string",
"default": "workspaceState",
"enum": [
"workspaceState",
"workspaceConfig",
"currentSession",
"globalState",
"globalConfig",
"runOnce"
],
"description": "The default action to use when pressing enter in the `FlutterDevices` list.\nThe `state` options will store the selected device in coc's `memos.json` file.\nThe `config` options will store the selected device in the `coc-settings.json` file."
},
"dart.analysisExcludedFolders": {
"type": "array",
"default": [],
"item": "string",
"description": "An array of paths (absolute or relative to each workspace folder) that should be excluded from analysis."
},
"dart.enableSdkFormatter": {
"type": "boolean",
"default": true,
"description": "When set to false, prevents registration (or unregisters) the SDK formatter. When set to true or not supplied, will register/reregister the SDK formatter."
},
"dart.lineLength": {
"type": "number",
"default": 80,
"description": "The number of characters the formatter should wrap code at. If unspecified, code will be wrapped at 80 characters."
},
"dart.completeFunctionCalls": {
"type": "boolean",
"default": true,
"description": "Completes functions/methods with their required parameters."
},
"dart.showTodos": {
"type": "boolean",
"default": true,
"description": "Whether to generate diagnostics for TODO comments. If unspecified, diagnostics will not be generated."
}
}
},
"commands": [
{
"command": "flutter.run",
"title": "Run flutter server"
},
{
"command": "flutter.attach",
"title": "Attach running application"
},
{
"command": "flutter.create",
"title": "Create flutter project using: flutter create project-name"
},
{
"command": "flutter.doctor",
"title": "flutter doctor"
},
{
"command": "flutter.upgrade",
"title": "flutter upgrade"
},
{
"command": "flutter.pub.get",
"title": "flutter pub get"
},
{
"command": "flutter.devices",
"title": "open devices list"
},
{
"command": "flutter.emulators",
"title": "open emulators list"
}
]
},
"devDependencies": {
"@types/node": "^10.12.0",
"@typescript-eslint/eslint-plugin": "^4.16.1",
"@typescript-eslint/parser": "^4.16.1",
"coc.nvim": "^0.0.80",
"colors": "^1.4.0",
"cross-env": "^7.0.3",
"esbuild": "^0.9.0",
"eslint": "^7.21.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-prettier": "^3.3.1",
"fast-glob": "^3.2.5",
"husky": "^5.1.3",
"prettier": "^2.2.1",
"rimraf": "^3.0.2",
"typescript": "^4.2.2",
"vscode-languageserver-protocol": "^3.16.0",
"which": "^2.0.2"
}
}