@opensumi/sumi 2.12.1-next-079c1930
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/build.ts +18 -0
- package/index.d.ts +5 -0
- package/manifest.json +414 -0
- package/package.json +18 -0
- package/sumi-browser.d.ts +273 -0
- package/sumi-worker/sumi-worker.d.ts +2788 -0
- package/sumi-worker/worker.command.d.ts +86 -0
- package/sumi-worker/worker.comments.d.ts +273 -0
- package/sumi-worker/worker.doc.d.ts +356 -0
- package/sumi-worker/worker.editor.d.ts +725 -0
- package/sumi-worker/worker.extensions.d.ts +63 -0
- package/sumi-worker/worker.language.d.ts +2220 -0
- package/sumi-worker/worker.window.d.ts +318 -0
- package/sumi-worker.d.ts +7 -0
- package/sumi.d.ts +822 -0
- package/vscode/typings/vscode.authentication.d.ts +231 -0
- package/vscode/typings/vscode.command.d.ts +86 -0
- package/vscode/typings/vscode.comments.d.ts +292 -0
- package/vscode/typings/vscode.d.ts +3789 -0
- package/vscode/typings/vscode.debug.d.ts +684 -0
- package/vscode/typings/vscode.doc.d.ts +272 -0
- package/vscode/typings/vscode.editor.d.ts +1017 -0
- package/vscode/typings/vscode.env.d.ts +153 -0
- package/vscode/typings/vscode.extension.d.ts +67 -0
- package/vscode/typings/vscode.language.d.ts +2630 -0
- package/vscode/typings/vscode.message.d.ts +195 -0
- package/vscode/typings/vscode.proposed.d.ts +662 -0
- package/vscode/typings/vscode.quickpick.d.ts +491 -0
- package/vscode/typings/vscode.scm.d.ts +254 -0
- package/vscode/typings/vscode.tasks.d.ts +676 -0
- package/vscode/typings/vscode.theme.d.ts +370 -0
- package/vscode/typings/vscode.window.d.ts +870 -0
- package/vscode/typings/vscode.workspace.d.ts +664 -0
- package/vscode/typings-pending/vscode.d.ts +27 -0
- package/vscode/typings-pending/vscode.proposed.d.ts +3 -0
- package/vscode.d.ts +23 -0
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API OWENR: 伊北
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
declare module 'vscode' {
|
|
6
|
+
/**
|
|
7
|
+
* Represents the input box in the Source Control viewlet.
|
|
8
|
+
*/
|
|
9
|
+
export interface SourceControlInputBox {
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Setter and getter for the contents of the input box.
|
|
13
|
+
*/
|
|
14
|
+
value: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A string to show as place holder in the input box to guide the user.
|
|
18
|
+
*/
|
|
19
|
+
placeholder: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* An source control is able to provide [resource states](#SourceControlResourceState)
|
|
24
|
+
* to the editor and interact with the editor in several source control related ways.
|
|
25
|
+
*/
|
|
26
|
+
export interface SourceControl {
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The id of this source control.
|
|
30
|
+
*/
|
|
31
|
+
readonly id: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The human-readable label of this source control.
|
|
35
|
+
*/
|
|
36
|
+
readonly label: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* The (optional) Uri of the root of this source control.
|
|
40
|
+
*/
|
|
41
|
+
readonly rootUri: Uri | undefined;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The [input box](#SourceControlInputBox) for this source control.
|
|
45
|
+
*/
|
|
46
|
+
readonly inputBox: SourceControlInputBox;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* The UI-visible count of [resource states](#SourceControlResourceState) of
|
|
50
|
+
* this source control.
|
|
51
|
+
*
|
|
52
|
+
* Equals to the total number of [resource state](#SourceControlResourceState)
|
|
53
|
+
* of this source control, if undefined.
|
|
54
|
+
*/
|
|
55
|
+
count?: number;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* An optional [quick diff provider](#QuickDiffProvider).
|
|
59
|
+
*/
|
|
60
|
+
quickDiffProvider?: QuickDiffProvider;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Optional commit template string.
|
|
64
|
+
*
|
|
65
|
+
* The Source Control viewlet will populate the Source Control
|
|
66
|
+
* input with this value when appropriate.
|
|
67
|
+
*/
|
|
68
|
+
commitTemplate?: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Optional accept input command.
|
|
72
|
+
*
|
|
73
|
+
* This command will be invoked when the user accepts the value
|
|
74
|
+
* in the Source Control input.
|
|
75
|
+
*/
|
|
76
|
+
acceptInputCommand?: Command;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Optional status bar commands.
|
|
80
|
+
*
|
|
81
|
+
* These commands will be displayed in the editor's status bar.
|
|
82
|
+
*/
|
|
83
|
+
statusBarCommands?: Command[];
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Create a new [resource group](#SourceControlResourceGroup).
|
|
87
|
+
*/
|
|
88
|
+
createResourceGroup(id: string, label: string): SourceControlResourceGroup;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Dispose this source control.
|
|
92
|
+
*/
|
|
93
|
+
dispose(): void;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export namespace scm {
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* ~~The [input box](#SourceControlInputBox) for the last source control
|
|
100
|
+
* created by the extension.~~
|
|
101
|
+
*
|
|
102
|
+
* @deprecated Use SourceControl.inputBox instead
|
|
103
|
+
*/
|
|
104
|
+
export const inputBox: SourceControlInputBox;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Creates a new [source control](#SourceControl) instance.
|
|
108
|
+
*
|
|
109
|
+
* @param id An `id` for the source control. Something short, e.g.: `git`.
|
|
110
|
+
* @param label A human-readable string for the source control. E.g.: `Git`.
|
|
111
|
+
* @param rootUri An optional Uri of the root of the source control. E.g.: `Uri.parse(workspaceRoot)`.
|
|
112
|
+
* @return An instance of [source control](#SourceControl).
|
|
113
|
+
*/
|
|
114
|
+
export function createSourceControl(id: string, label: string, rootUri?: Uri): SourceControl;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
interface QuickDiffProvider {
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Provide a [uri](#Uri) to the original resource of any given resource uri.
|
|
121
|
+
*
|
|
122
|
+
* @param uri The uri of the resource open in a text editor.
|
|
123
|
+
* @param token A cancellation token.
|
|
124
|
+
* @return A thenable that resolves to uri of the matching original resource.
|
|
125
|
+
*/
|
|
126
|
+
provideOriginalResource?(uri: Uri, token: CancellationToken): ProviderResult<Uri>;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* The theme-aware decorations for a
|
|
131
|
+
* [source control resource state](#SourceControlResourceState).
|
|
132
|
+
*/
|
|
133
|
+
export interface SourceControlResourceThemableDecorations {
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* The icon path for a specific
|
|
137
|
+
* [source control resource state](#SourceControlResourceState).
|
|
138
|
+
*/
|
|
139
|
+
readonly iconPath?: string | Uri;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* The decorations for a [source control resource state](#SourceControlResourceState).
|
|
144
|
+
* Can be independently specified for light and dark themes.
|
|
145
|
+
*/
|
|
146
|
+
export interface SourceControlResourceDecorations extends SourceControlResourceThemableDecorations {
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Whether the [source control resource state](#SourceControlResourceState) should
|
|
150
|
+
* be striked-through in the UI.
|
|
151
|
+
*/
|
|
152
|
+
readonly strikeThrough?: boolean;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Whether the [source control resource state](#SourceControlResourceState) should
|
|
156
|
+
* be faded in the UI.
|
|
157
|
+
*/
|
|
158
|
+
readonly faded?: boolean;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* The title for a specific
|
|
162
|
+
* [source control resource state](#SourceControlResourceState).
|
|
163
|
+
*/
|
|
164
|
+
readonly tooltip?: string;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* The light theme decorations.
|
|
168
|
+
*/
|
|
169
|
+
readonly light?: SourceControlResourceThemableDecorations;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* The dark theme decorations.
|
|
173
|
+
*/
|
|
174
|
+
readonly dark?: SourceControlResourceThemableDecorations;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* An source control resource state represents the state of an underlying workspace
|
|
179
|
+
* resource within a certain [source control group](#SourceControlResourceGroup).
|
|
180
|
+
*/
|
|
181
|
+
export interface SourceControlResourceState {
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* The [uri](#Uri) of the underlying resource inside the workspace.
|
|
185
|
+
*/
|
|
186
|
+
readonly resourceUri: Uri;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* The [command](#Command) which should be run when the resource
|
|
190
|
+
* state is open in the Source Control viewlet.
|
|
191
|
+
*/
|
|
192
|
+
readonly command?: Command;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* The [decorations](#SourceControlResourceDecorations) for this source control
|
|
196
|
+
* resource state.
|
|
197
|
+
*/
|
|
198
|
+
readonly decorations?: SourceControlResourceDecorations;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Context value of the resource state. This can be used to contribute resource specific actions.
|
|
202
|
+
* For example, if a resource is given a context value as `diffable`. When contributing actions to `scm/resourceState/context`
|
|
203
|
+
* using `menus` extension point, you can specify context value for key `scmResourceState` in `when` expressions, like `scmResourceState == diffable`.
|
|
204
|
+
* ```
|
|
205
|
+
* "contributes": {
|
|
206
|
+
* "menus": {
|
|
207
|
+
* "scm/resourceState/context": [
|
|
208
|
+
* {
|
|
209
|
+
* "command": "extension.diff",
|
|
210
|
+
* "when": "scmResourceState == diffable"
|
|
211
|
+
* }
|
|
212
|
+
* ]
|
|
213
|
+
* }
|
|
214
|
+
* }
|
|
215
|
+
* ```
|
|
216
|
+
* This will show action `extension.diff` only for resources with `contextValue` is `diffable`.
|
|
217
|
+
*/
|
|
218
|
+
readonly contextValue?: string;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* A source control resource group is a collection of
|
|
223
|
+
* [source control resource states](#SourceControlResourceState).
|
|
224
|
+
*/
|
|
225
|
+
export interface SourceControlResourceGroup {
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* The id of this source control resource group.
|
|
229
|
+
*/
|
|
230
|
+
readonly id: string;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* The label of this source control resource group.
|
|
234
|
+
*/
|
|
235
|
+
label: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Whether this source control resource group is hidden when it contains
|
|
239
|
+
* no [source control resource states](#SourceControlResourceState).
|
|
240
|
+
*/
|
|
241
|
+
hideWhenEmpty?: boolean;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* This group's collection of
|
|
245
|
+
* [source control resource states](#SourceControlResourceState).
|
|
246
|
+
*/
|
|
247
|
+
resourceStates: SourceControlResourceState[];
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Dispose this source control resource group.
|
|
251
|
+
*/
|
|
252
|
+
dispose(): void;
|
|
253
|
+
}
|
|
254
|
+
}
|