forked from beyang/sourcegraph-OLD-2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathextension_stringdata.go
More file actions
95 lines (93 loc) · 3.29 KB
/
extension_stringdata.go
File metadata and controls
95 lines (93 loc) · 3.29 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
// Code generated by stringdata. DO NOT EDIT.
package schema
// ExtensionSchemaJSON is the content of the file "extension.schema.json".
const ExtensionSchemaJSON = `{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://sourcegraph.com/v1/extension.schema.json#",
"title": "Sourcegraph extension manifest",
"description": "The Sourcegraph extension manifest describes the extension and the features it provides.",
"type": "object",
"additionalProperties": false,
"required": ["url", "activationEvents"],
"properties": {
"title": {
"description": "The title of the extension. If not specified, the extension ID is used.",
"type": "string"
},
"description": {
"description":
"The extension's description, which summarizes the extension's purpose and features. It should not exceed a few sentences.",
"type": "string",
"maxLength": 280
},
"readme": {
"description":
"The extension's README, which should describe (in detail) the extension's purpose, features, and usage instructions. Markdown formatting is supported.",
"type": "string",
"format": "markdown"
},
"url": {
"description": "A URL to a file containing the bundled JavaScript source code of this extension.",
"type": "string",
"format": "uri"
},
"repository": {
"$ref": "#/definitions/ExtensionRepository"
},
"activationEvents": {
"description":
"A list of events that cause this extension to be activated. '*' means that it will always be activated.",
"type": "array",
"items": {
"type": "string",
"pattern": "^(\\*|onLanguage:\\w+)$",
"examples": ["onLanguage:javascript", "onLanguage:python", "*"]
}
},
"args": {
"description":
"Arguments provided to the extension upon initialization (in the ` + "`" + `initialize` + "`" + ` message's ` + "`" + `initializationOptions` + "`" + ` field).",
"type": "object",
"additionalProperties": true,
"!go": {
"pointer": true
}
},
"contributes": {
"$ref": "#/definitions/Contributions"
}
},
"definitions": {
"Contributions": {
"description":
"Features contributed by this extension. Extensions may also register certain types of contributions dynamically.",
"type": "object",
"additionalProperties": false,
"properties": {
"configuration": {
"description":
"The JSON Schema for the configuration settings used by this extension. This schema is merged with the Sourcegraph settings schema. The final schema for settings is the union of Sourcegraph settings and all added extensions' settings.",
"$ref": "http://json-schema.org/draft-07/schema#"
}
}
},
"ExtensionRepository": {
"description": "The location of the version control repository for this extension.",
"type": "object",
"additionalProperties": false,
"required": ["url"],
"properties": {
"type": {
"description": "The version control system (e.g. git).",
"type": "string"
},
"url": {
"description": "A URL to the source code for this extension.",
"type": "string",
"format": "uri"
}
}
}
}
}
`