1 module served.protoext;
2 
3 import served.protocol;
4 
5 import std.json;
6 import painlessjson;
7 
8 struct AddImportParams
9 {
10 	TextDocumentIdentifier textDocument;
11 	string name;
12 	int location;
13 	bool insertOutermost = true;
14 }
15 
16 struct SortImportsParams
17 {
18 	TextDocumentIdentifier textDocument;
19 	int location;
20 }
21 
22 struct ImplementMethodsParams
23 {
24 	TextDocumentIdentifier textDocument;
25 	int location;
26 }
27 
28 struct UpdateSettingParams
29 {
30 	string section;
31 	JSONValue value;
32 	bool global;
33 }
34 
35 struct DubDependency
36 {
37 	string name;
38 	@SerializedName("version")
39 	string version_;
40 	string path;
41 	string description;
42 	string homepage;
43 	const(string)[] authors;
44 	string copyright;
45 	string license;
46 	const(string)[] subPackages;
47 	bool hasDependencies;
48 	bool root;
49 }
50 
51 struct InstallRequest
52 {
53 	string name;
54 	@SerializedName("version")
55 	string version_;
56 }
57 
58 struct UpdateRequest
59 {
60 	string name;
61 	@SerializedName("version")
62 	string version_;
63 }
64 
65 struct UninstallRequest
66 {
67 	string name;
68 }