@theia/plugin 1.18.0-next.907a9c21 → 1.18.0-next.95

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.
Files changed (3) hide show
  1. package/LICENSE +642 -0
  2. package/package.json +8 -6
  3. package/src/theia.d.ts +175 -10
package/LICENSE ADDED
@@ -0,0 +1,642 @@
1
+ This program and the accompanying materials are made available under the
2
+ terms of the Eclipse Public License v. 2.0 which is available at
3
+ https://www.eclipse.org/legal/epl-2.0, or GNU General Public License, version 2
4
+ with the GNU Classpath Exception which is available at https://www.gnu.org/software/classpath/license.html.
5
+
6
+ # Eclipse Public License - v 2.0
7
+
8
+ THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE
9
+ PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION
10
+ OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
11
+
12
+ 1. DEFINITIONS
13
+
14
+ "Contribution" means:
15
+
16
+ a) in the case of the initial Contributor, the initial content
17
+ Distributed under this Agreement, and
18
+
19
+ b) in the case of each subsequent Contributor:
20
+ i) changes to the Program, and
21
+ ii) additions to the Program;
22
+ where such changes and/or additions to the Program originate from
23
+ and are Distributed by that particular Contributor. A Contribution
24
+ "originates" from a Contributor if it was added to the Program by
25
+ such Contributor itself or anyone acting on such Contributor's behalf.
26
+ Contributions do not include changes or additions to the Program that
27
+ are not Modified Works.
28
+
29
+ "Contributor" means any person or entity that Distributes the Program.
30
+
31
+ "Licensed Patents" mean patent claims licensable by a Contributor which
32
+ are necessarily infringed by the use or sale of its Contribution alone
33
+ or when combined with the Program.
34
+
35
+ "Program" means the Contributions Distributed in accordance with this
36
+ Agreement.
37
+
38
+ "Recipient" means anyone who receives the Program under this Agreement
39
+ or any Secondary License (as applicable), including Contributors.
40
+
41
+ "Derivative Works" shall mean any work, whether in Source Code or other
42
+ form, that is based on (or derived from) the Program and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship.
45
+
46
+ "Modified Works" shall mean any work in Source Code or other form that
47
+ results from an addition to, deletion from, or modification of the
48
+ contents of the Program, including, for purposes of clarity any new file
49
+ in Source Code form that contains any contents of the Program. Modified
50
+ Works shall not include works that contain only declarations,
51
+ interfaces, types, classes, structures, or files of the Program solely
52
+ in each case in order to link to, bind by name, or subclass the Program
53
+ or Modified Works thereof.
54
+
55
+ "Distribute" means the acts of a) distributing or b) making available
56
+ in any manner that enables the transfer of a copy.
57
+
58
+ "Source Code" means the form of a Program preferred for making
59
+ modifications, including but not limited to software source code,
60
+ documentation source, and configuration files.
61
+
62
+ "Secondary License" means either the GNU General Public License,
63
+ Version 2.0, or any later versions of that license, including any
64
+ exceptions or additional permissions as identified by the initial
65
+ Contributor.
66
+
67
+ 2. GRANT OF RIGHTS
68
+
69
+ a) Subject to the terms of this Agreement, each Contributor hereby
70
+ grants Recipient a non-exclusive, worldwide, royalty-free copyright
71
+ license to reproduce, prepare Derivative Works of, publicly display,
72
+ publicly perform, Distribute and sublicense the Contribution of such
73
+ Contributor, if any, and such Derivative Works.
74
+
75
+ b) Subject to the terms of this Agreement, each Contributor hereby
76
+ grants Recipient a non-exclusive, worldwide, royalty-free patent
77
+ license under Licensed Patents to make, use, sell, offer to sell,
78
+ import and otherwise transfer the Contribution of such Contributor,
79
+ if any, in Source Code or other form. This patent license shall
80
+ apply to the combination of the Contribution and the Program if, at
81
+ the time the Contribution is added by the Contributor, such addition
82
+ of the Contribution causes such combination to be covered by the
83
+ Licensed Patents. The patent license shall not apply to any other
84
+ combinations which include the Contribution. No hardware per se is
85
+ licensed hereunder.
86
+
87
+ c) Recipient understands that although each Contributor grants the
88
+ licenses to its Contributions set forth herein, no assurances are
89
+ provided by any Contributor that the Program does not infringe the
90
+ patent or other intellectual property rights of any other entity.
91
+ Each Contributor disclaims any liability to Recipient for claims
92
+ brought by any other entity based on infringement of intellectual
93
+ property rights or otherwise. As a condition to exercising the
94
+ rights and licenses granted hereunder, each Recipient hereby
95
+ assumes sole responsibility to secure any other intellectual
96
+ property rights needed, if any. For example, if a third party
97
+ patent license is required to allow Recipient to Distribute the
98
+ Program, it is Recipient's responsibility to acquire that license
99
+ before distributing the Program.
100
+
101
+ d) Each Contributor represents that to its knowledge it has
102
+ sufficient copyright rights in its Contribution, if any, to grant
103
+ the copyright license set forth in this Agreement.
104
+
105
+ e) Notwithstanding the terms of any Secondary License, no
106
+ Contributor makes additional grants to any Recipient (other than
107
+ those set forth in this Agreement) as a result of such Recipient's
108
+ receipt of the Program under the terms of a Secondary License
109
+ (if permitted under the terms of Section 3).
110
+
111
+ 3. REQUIREMENTS
112
+
113
+ 3.1 If a Contributor Distributes the Program in any form, then:
114
+
115
+ a) the Program must also be made available as Source Code, in
116
+ accordance with section 3.2, and the Contributor must accompany
117
+ the Program with a statement that the Source Code for the Program
118
+ is available under this Agreement, and informs Recipients how to
119
+ obtain it in a reasonable manner on or through a medium customarily
120
+ used for software exchange; and
121
+
122
+ b) the Contributor may Distribute the Program under a license
123
+ different than this Agreement, provided that such license:
124
+ i) effectively disclaims on behalf of all other Contributors all
125
+ warranties and conditions, express and implied, including
126
+ warranties or conditions of title and non-infringement, and
127
+ implied warranties or conditions of merchantability and fitness
128
+ for a particular purpose;
129
+
130
+ ii) effectively excludes on behalf of all other Contributors all
131
+ liability for damages, including direct, indirect, special,
132
+ incidental and consequential damages, such as lost profits;
133
+
134
+ iii) does not attempt to limit or alter the recipients' rights
135
+ in the Source Code under section 3.2; and
136
+
137
+ iv) requires any subsequent distribution of the Program by any
138
+ party to be under a license that satisfies the requirements
139
+ of this section 3.
140
+
141
+ 3.2 When the Program is Distributed as Source Code:
142
+
143
+ a) it must be made available under this Agreement, or if the
144
+ Program (i) is combined with other material in a separate file or
145
+ files made available under a Secondary License, and (ii) the initial
146
+ Contributor attached to the Source Code the notice described in
147
+ Exhibit A of this Agreement, then the Program may be made available
148
+ under the terms of such Secondary Licenses, and
149
+
150
+ b) a copy of this Agreement must be included with each copy of
151
+ the Program.
152
+
153
+ 3.3 Contributors may not remove or alter any copyright, patent,
154
+ trademark, attribution notices, disclaimers of warranty, or limitations
155
+ of liability ("notices") contained within the Program from any copy of
156
+ the Program which they Distribute, provided that Contributors may add
157
+ their own appropriate notices.
158
+
159
+ 4. COMMERCIAL DISTRIBUTION
160
+
161
+ Commercial distributors of software may accept certain responsibilities
162
+ with respect to end users, business partners and the like. While this
163
+ license is intended to facilitate the commercial use of the Program,
164
+ the Contributor who includes the Program in a commercial product
165
+ offering should do so in a manner which does not create potential
166
+ liability for other Contributors. Therefore, if a Contributor includes
167
+ the Program in a commercial product offering, such Contributor
168
+ ("Commercial Contributor") hereby agrees to defend and indemnify every
169
+ other Contributor ("Indemnified Contributor") against any losses,
170
+ damages and costs (collectively "Losses") arising from claims, lawsuits
171
+ and other legal actions brought by a third party against the Indemnified
172
+ Contributor to the extent caused by the acts or omissions of such
173
+ Commercial Contributor in connection with its distribution of the Program
174
+ in a commercial product offering. The obligations in this section do not
175
+ apply to any claims or Losses relating to any actual or alleged
176
+ intellectual property infringement. In order to qualify, an Indemnified
177
+ Contributor must: a) promptly notify the Commercial Contributor in
178
+ writing of such claim, and b) allow the Commercial Contributor to control,
179
+ and cooperate with the Commercial Contributor in, the defense and any
180
+ related settlement negotiations. The Indemnified Contributor may
181
+ participate in any such claim at its own expense.
182
+
183
+ For example, a Contributor might include the Program in a commercial
184
+ product offering, Product X. That Contributor is then a Commercial
185
+ Contributor. If that Commercial Contributor then makes performance
186
+ claims, or offers warranties related to Product X, those performance
187
+ claims and warranties are such Commercial Contributor's responsibility
188
+ alone. Under this section, the Commercial Contributor would have to
189
+ defend claims against the other Contributors related to those performance
190
+ claims and warranties, and if a court requires any other Contributor to
191
+ pay any damages as a result, the Commercial Contributor must pay
192
+ those damages.
193
+
194
+ 5. NO WARRANTY
195
+
196
+ EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT
197
+ PERMITTED BY APPLICABLE LAW, THE PROGRAM IS PROVIDED ON AN "AS IS"
198
+ BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR
199
+ IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF
200
+ TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR
201
+ PURPOSE. Each Recipient is solely responsible for determining the
202
+ appropriateness of using and distributing the Program and assumes all
203
+ risks associated with its exercise of rights under this Agreement,
204
+ including but not limited to the risks and costs of program errors,
205
+ compliance with applicable laws, damage to or loss of data, programs
206
+ or equipment, and unavailability or interruption of operations.
207
+
208
+ 6. DISCLAIMER OF LIABILITY
209
+
210
+ EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT
211
+ PERMITTED BY APPLICABLE LAW, NEITHER RECIPIENT NOR ANY CONTRIBUTORS
212
+ SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
213
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST
214
+ PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
215
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
216
+ ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE
217
+ EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE
218
+ POSSIBILITY OF SUCH DAMAGES.
219
+
220
+ 7. GENERAL
221
+
222
+ If any provision of this Agreement is invalid or unenforceable under
223
+ applicable law, it shall not affect the validity or enforceability of
224
+ the remainder of the terms of this Agreement, and without further
225
+ action by the parties hereto, such provision shall be reformed to the
226
+ minimum extent necessary to make such provision valid and enforceable.
227
+
228
+ If Recipient institutes patent litigation against any entity
229
+ (including a cross-claim or counterclaim in a lawsuit) alleging that the
230
+ Program itself (excluding combinations of the Program with other software
231
+ or hardware) infringes such Recipient's patent(s), then such Recipient's
232
+ rights granted under Section 2(b) shall terminate as of the date such
233
+ litigation is filed.
234
+
235
+ All Recipient's rights under this Agreement shall terminate if it
236
+ fails to comply with any of the material terms or conditions of this
237
+ Agreement and does not cure such failure in a reasonable period of
238
+ time after becoming aware of such noncompliance. If all Recipient's
239
+ rights under this Agreement terminate, Recipient agrees to cease use
240
+ and distribution of the Program as soon as reasonably practicable.
241
+ However, Recipient's obligations under this Agreement and any licenses
242
+ granted by Recipient relating to the Program shall continue and survive.
243
+
244
+ Everyone is permitted to copy and distribute copies of this Agreement,
245
+ but in order to avoid inconsistency the Agreement is copyrighted and
246
+ may only be modified in the following manner. The Agreement Steward
247
+ reserves the right to publish new versions (including revisions) of
248
+ this Agreement from time to time. No one other than the Agreement
249
+ Steward has the right to modify this Agreement. The Eclipse Foundation
250
+ is the initial Agreement Steward. The Eclipse Foundation may assign the
251
+ responsibility to serve as the Agreement Steward to a suitable separate
252
+ entity. Each new version of the Agreement will be given a distinguishing
253
+ version number. The Program (including Contributions) may always be
254
+ Distributed subject to the version of the Agreement under which it was
255
+ received. In addition, after a new version of the Agreement is published,
256
+ Contributor may elect to Distribute the Program (including its
257
+ Contributions) under the new version.
258
+
259
+ Except as expressly stated in Sections 2(a) and 2(b) above, Recipient
260
+ receives no rights or licenses to the intellectual property of any
261
+ Contributor under this Agreement, whether expressly, by implication,
262
+ estoppel or otherwise. All rights in the Program not expressly granted
263
+ under this Agreement are reserved. Nothing in this Agreement is intended
264
+ to be enforceable by any entity that is not a Contributor or Recipient.
265
+ No third-party beneficiary rights are created under this Agreement.
266
+
267
+ Exhibit A - Form of Secondary Licenses Notice
268
+
269
+ "This Source Code may also be made available under the following
270
+ Secondary Licenses when the conditions for such availability set forth
271
+ in the Eclipse Public License, v. 2.0 are satisfied: {name license(s),
272
+ version(s), and exceptions or additional permissions here}."
273
+
274
+ Simply including a copy of this Agreement, including this Exhibit A
275
+ is not sufficient to license the Source Code under Secondary Licenses.
276
+
277
+ If it is not possible or desirable to put the notice in a particular
278
+ file, then You may include the notice in a location (such as a LICENSE
279
+ file in a relevant directory) where a recipient would be likely to
280
+ look for such a notice.
281
+
282
+ You may add additional accurate notices of copyright ownership.
283
+
284
+ ---
285
+
286
+ ## The GNU General Public License (GPL) Version 2, June 1991
287
+
288
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
289
+ 51 Franklin Street, Fifth Floor
290
+ Boston, MA 02110-1335
291
+ USA
292
+
293
+ Everyone is permitted to copy and distribute verbatim copies
294
+ of this license document, but changing it is not allowed.
295
+
296
+ Preamble
297
+
298
+ The licenses for most software are designed to take away your freedom to
299
+ share and change it. By contrast, the GNU General Public License is
300
+ intended to guarantee your freedom to share and change free software--to
301
+ make sure the software is free for all its users. This General Public
302
+ License applies to most of the Free Software Foundation's software and
303
+ to any other program whose authors commit to using it. (Some other Free
304
+ Software Foundation software is covered by the GNU Library General
305
+ Public License instead.) You can apply it to your programs, too.
306
+
307
+ When we speak of free software, we are referring to freedom, not price.
308
+ Our General Public Licenses are designed to make sure that you have the
309
+ freedom to distribute copies of free software (and charge for this
310
+ service if you wish), that you receive source code or can get it if you
311
+ want it, that you can change the software or use pieces of it in new
312
+ free programs; and that you know you can do these things.
313
+
314
+ To protect your rights, we need to make restrictions that forbid anyone
315
+ to deny you these rights or to ask you to surrender the rights. These
316
+ restrictions translate to certain responsibilities for you if you
317
+ distribute copies of the software, or if you modify it.
318
+
319
+ For example, if you distribute copies of such a program, whether gratis
320
+ or for a fee, you must give the recipients all the rights that you have.
321
+ You must make sure that they, too, receive or can get the source code.
322
+ And you must show them these terms so they know their rights.
323
+
324
+ We protect your rights with two steps: (1) copyright the software, and
325
+ (2) offer you this license which gives you legal permission to copy,
326
+ distribute and/or modify the software.
327
+
328
+ Also, for each author's protection and ours, we want to make certain
329
+ that everyone understands that there is no warranty for this free
330
+ software. If the software is modified by someone else and passed on, we
331
+ want its recipients to know that what they have is not the original, so
332
+ that any problems introduced by others will not reflect on the original
333
+ authors' reputations.
334
+
335
+ Finally, any free program is threatened constantly by software patents.
336
+ We wish to avoid the danger that redistributors of a free program will
337
+ individually obtain patent licenses, in effect making the program
338
+ proprietary. To prevent this, we have made it clear that any patent must
339
+ be licensed for everyone's free use or not licensed at all.
340
+
341
+ The precise terms and conditions for copying, distribution and
342
+ modification follow.
343
+
344
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
345
+
346
+ 0. This License applies to any program or other work which contains a
347
+ notice placed by the copyright holder saying it may be distributed under
348
+ the terms of this General Public License. The "Program", below, refers
349
+ to any such program or work, and a "work based on the Program" means
350
+ either the Program or any derivative work under copyright law: that is
351
+ to say, a work containing the Program or a portion of it, either
352
+ verbatim or with modifications and/or translated into another language.
353
+ (Hereinafter, translation is included without limitation in the term
354
+ "modification".) Each licensee is addressed as "you".
355
+
356
+ Activities other than copying, distribution and modification are not
357
+ covered by this License; they are outside its scope. The act of running
358
+ the Program is not restricted, and the output from the Program is
359
+ covered only if its contents constitute a work based on the Program
360
+ (independent of having been made by running the Program). Whether that
361
+ is true depends on what the Program does.
362
+
363
+ 1. You may copy and distribute verbatim copies of the Program's source
364
+ code as you receive it, in any medium, provided that you conspicuously
365
+ and appropriately publish on each copy an appropriate copyright notice
366
+ and disclaimer of warranty; keep intact all the notices that refer to
367
+ this License and to the absence of any warranty; and give any other
368
+ recipients of the Program a copy of this License along with the Program.
369
+
370
+ You may charge a fee for the physical act of transferring a copy, and
371
+ you may at your option offer warranty protection in exchange for a fee.
372
+
373
+ 2. You may modify your copy or copies of the Program or any portion of
374
+ it, thus forming a work based on the Program, and copy and distribute
375
+ such modifications or work under the terms of Section 1 above, provided
376
+ that you also meet all of these conditions:
377
+
378
+ a) You must cause the modified files to carry prominent notices
379
+ stating that you changed the files and the date of any change.
380
+
381
+ b) You must cause any work that you distribute or publish, that in
382
+ whole or in part contains or is derived from the Program or any part
383
+ thereof, to be licensed as a whole at no charge to all third parties
384
+ under the terms of this License.
385
+
386
+ c) If the modified program normally reads commands interactively
387
+ when run, you must cause it, when started running for such
388
+ interactive use in the most ordinary way, to print or display an
389
+ announcement including an appropriate copyright notice and a notice
390
+ that there is no warranty (or else, saying that you provide a
391
+ warranty) and that users may redistribute the program under these
392
+ conditions, and telling the user how to view a copy of this License.
393
+ (Exception: if the Program itself is interactive but does not
394
+ normally print such an announcement, your work based on the Program
395
+ is not required to print an announcement.)
396
+
397
+ These requirements apply to the modified work as a whole. If
398
+ identifiable sections of that work are not derived from the Program, and
399
+ can be reasonably considered independent and separate works in
400
+ themselves, then this License, and its terms, do not apply to those
401
+ sections when you distribute them as separate works. But when you
402
+ distribute the same sections as part of a whole which is a work based on
403
+ the Program, the distribution of the whole must be on the terms of this
404
+ License, whose permissions for other licensees extend to the entire
405
+ whole, and thus to each and every part regardless of who wrote it.
406
+
407
+ Thus, it is not the intent of this section to claim rights or contest
408
+ your rights to work written entirely by you; rather, the intent is to
409
+ exercise the right to control the distribution of derivative or
410
+ collective works based on the Program.
411
+
412
+ In addition, mere aggregation of another work not based on the Program
413
+ with the Program (or with a work based on the Program) on a volume of a
414
+ storage or distribution medium does not bring the other work under the
415
+ scope of this License.
416
+
417
+ 3. You may copy and distribute the Program (or a work based on it,
418
+ under Section 2) in object code or executable form under the terms of
419
+ Sections 1 and 2 above provided that you also do one of the following:
420
+
421
+ a) Accompany it with the complete corresponding machine-readable
422
+ source code, which must be distributed under the terms of Sections 1
423
+ and 2 above on a medium customarily used for software interchange; or,
424
+
425
+ b) Accompany it with a written offer, valid for at least three
426
+ years, to give any third party, for a charge no more than your cost
427
+ of physically performing source distribution, a complete
428
+ machine-readable copy of the corresponding source code, to be
429
+ distributed under the terms of Sections 1 and 2 above on a medium
430
+ customarily used for software interchange; or,
431
+
432
+ c) Accompany it with the information you received as to the offer to
433
+ distribute corresponding source code. (This alternative is allowed
434
+ only for noncommercial distribution and only if you received the
435
+ program in object code or executable form with such an offer, in
436
+ accord with Subsection b above.)
437
+
438
+ The source code for a work means the preferred form of the work for
439
+ making modifications to it. For an executable work, complete source code
440
+ means all the source code for all modules it contains, plus any
441
+ associated interface definition files, plus the scripts used to control
442
+ compilation and installation of the executable. However, as a special
443
+ exception, the source code distributed need not include anything that is
444
+ normally distributed (in either source or binary form) with the major
445
+ components (compiler, kernel, and so on) of the operating system on
446
+ which the executable runs, unless that component itself accompanies the
447
+ executable.
448
+
449
+ If distribution of executable or object code is made by offering access
450
+ to copy from a designated place, then offering equivalent access to copy
451
+ the source code from the same place counts as distribution of the source
452
+ code, even though third parties are not compelled to copy the source
453
+ along with the object code.
454
+
455
+ 4. You may not copy, modify, sublicense, or distribute the Program
456
+ except as expressly provided under this License. Any attempt otherwise
457
+ to copy, modify, sublicense or distribute the Program is void, and will
458
+ automatically terminate your rights under this License. However, parties
459
+ who have received copies, or rights, from you under this License will
460
+ not have their licenses terminated so long as such parties remain in
461
+ full compliance.
462
+
463
+ 5. You are not required to accept this License, since you have not
464
+ signed it. However, nothing else grants you permission to modify or
465
+ distribute the Program or its derivative works. These actions are
466
+ prohibited by law if you do not accept this License. Therefore, by
467
+ modifying or distributing the Program (or any work based on the
468
+ Program), you indicate your acceptance of this License to do so, and all
469
+ its terms and conditions for copying, distributing or modifying the
470
+ Program or works based on it.
471
+
472
+ 6. Each time you redistribute the Program (or any work based on the
473
+ Program), the recipient automatically receives a license from the
474
+ original licensor to copy, distribute or modify the Program subject to
475
+ these terms and conditions. You may not impose any further restrictions
476
+ on the recipients' exercise of the rights granted herein. You are not
477
+ responsible for enforcing compliance by third parties to this License.
478
+
479
+ 7. If, as a consequence of a court judgment or allegation of patent
480
+ infringement or for any other reason (not limited to patent issues),
481
+ conditions are imposed on you (whether by court order, agreement or
482
+ otherwise) that contradict the conditions of this License, they do not
483
+ excuse you from the conditions of this License. If you cannot distribute
484
+ so as to satisfy simultaneously your obligations under this License and
485
+ any other pertinent obligations, then as a consequence you may not
486
+ distribute the Program at all. For example, if a patent license would
487
+ not permit royalty-free redistribution of the Program by all those who
488
+ receive copies directly or indirectly through you, then the only way you
489
+ could satisfy both it and this License would be to refrain entirely from
490
+ distribution of the Program.
491
+
492
+ If any portion of this section is held invalid or unenforceable under
493
+ any particular circumstance, the balance of the section is intended to
494
+ apply and the section as a whole is intended to apply in other
495
+ circumstances.
496
+
497
+ It is not the purpose of this section to induce you to infringe any
498
+ patents or other property right claims or to contest validity of any
499
+ such claims; this section has the sole purpose of protecting the
500
+ integrity of the free software distribution system, which is implemented
501
+ by public license practices. Many people have made generous
502
+ contributions to the wide range of software distributed through that
503
+ system in reliance on consistent application of that system; it is up to
504
+ the author/donor to decide if he or she is willing to distribute
505
+ software through any other system and a licensee cannot impose that choice.
506
+
507
+ This section is intended to make thoroughly clear what is believed to be
508
+ a consequence of the rest of this License.
509
+
510
+ 8. If the distribution and/or use of the Program is restricted in
511
+ certain countries either by patents or by copyrighted interfaces, the
512
+ original copyright holder who places the Program under this License may
513
+ add an explicit geographical distribution limitation excluding those
514
+ countries, so that distribution is permitted only in or among countries
515
+ not thus excluded. In such case, this License incorporates the
516
+ limitation as if written in the body of this License.
517
+
518
+ 9. The Free Software Foundation may publish revised and/or new
519
+ versions of the General Public License from time to time. Such new
520
+ versions will be similar in spirit to the present version, but may
521
+ differ in detail to address new problems or concerns.
522
+
523
+ Each version is given a distinguishing version number. If the Program
524
+ specifies a version number of this License which applies to it and "any
525
+ later version", you have the option of following the terms and
526
+ conditions either of that version or of any later version published by
527
+ the Free Software Foundation. If the Program does not specify a version
528
+ number of this License, you may choose any version ever published by the
529
+ Free Software Foundation.
530
+
531
+ 10. If you wish to incorporate parts of the Program into other free
532
+ programs whose distribution conditions are different, write to the
533
+ author to ask for permission. For software which is copyrighted by the
534
+ Free Software Foundation, write to the Free Software Foundation; we
535
+ sometimes make exceptions for this. Our decision will be guided by the
536
+ two goals of preserving the free status of all derivatives of our free
537
+ software and of promoting the sharing and reuse of software generally.
538
+
539
+ NO WARRANTY
540
+
541
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
542
+ WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
543
+ EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
544
+ OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND,
545
+ EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
546
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
547
+ ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH
548
+ YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
549
+ NECESSARY SERVICING, REPAIR OR CORRECTION.
550
+
551
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
552
+ WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
553
+ AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
554
+ DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL
555
+ DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM
556
+ (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
557
+ INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF
558
+ THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR
559
+ OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
560
+
561
+ END OF TERMS AND CONDITIONS
562
+
563
+ How to Apply These Terms to Your New Programs
564
+
565
+ If you develop a new program, and you want it to be of the greatest
566
+ possible use to the public, the best way to achieve this is to make it
567
+ free software which everyone can redistribute and change under these terms.
568
+
569
+ To do so, attach the following notices to the program. It is safest to
570
+ attach them to the start of each source file to most effectively convey
571
+ the exclusion of warranty; and each file should have at least the
572
+ "copyright" line and a pointer to where the full notice is found.
573
+
574
+ One line to give the program's name and a brief idea of what it does.
575
+ Copyright (C) <year> <name of author>
576
+
577
+ This program is free software; you can redistribute it and/or modify
578
+ it under the terms of the GNU General Public License as published by
579
+ the Free Software Foundation; either version 2 of the License, or
580
+ (at your option) any later version.
581
+
582
+ This program is distributed in the hope that it will be useful, but
583
+ WITHOUT ANY WARRANTY; without even the implied warranty of
584
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
585
+ General Public License for more details.
586
+
587
+ You should have received a copy of the GNU General Public License
588
+ along with this program; if not, write to the Free Software
589
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
590
+
591
+ Also add information on how to contact you by electronic and paper mail.
592
+
593
+ If the program is interactive, make it output a short notice like this
594
+ when it starts in an interactive mode:
595
+
596
+ Gnomovision version 69, Copyright (C) year name of author
597
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type
598
+ `show w'. This is free software, and you are welcome to redistribute
599
+ it under certain conditions; type `show c' for details.
600
+
601
+ The hypothetical commands `show w' and `show c' should show the
602
+ appropriate parts of the General Public License. Of course, the commands
603
+ you use may be called something other than `show w' and `show c'; they
604
+ could even be mouse-clicks or menu items--whatever suits your program.
605
+
606
+ You should also get your employer (if you work as a programmer) or your
607
+ school, if any, to sign a "copyright disclaimer" for the program, if
608
+ necessary. Here is a sample; alter the names:
609
+
610
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
611
+ program `Gnomovision' (which makes passes at compilers) written by
612
+ James Hacker.
613
+
614
+ signature of Ty Coon, 1 April 1989
615
+ Ty Coon, President of Vice
616
+
617
+ This General Public License does not permit incorporating your program
618
+ into proprietary programs. If your program is a subroutine library, you
619
+ may consider it more useful to permit linking proprietary applications
620
+ with the library. If this is what you want to do, use the GNU Library
621
+ General Public License instead of this License.
622
+
623
+ ---
624
+
625
+ ## CLASSPATH EXCEPTION
626
+
627
+ Linking this library statically or dynamically with other modules is
628
+ making a combined work based on this library. Thus, the terms and
629
+ conditions of the GNU General Public License version 2 cover the whole
630
+ combination.
631
+
632
+ As a special exception, the copyright holders of this library give you
633
+ permission to link this library with independent modules to produce an
634
+ executable, regardless of the license terms of these independent
635
+ modules, and to copy and distribute the resulting executable under
636
+ terms of your choice, provided that you also meet, for each linked
637
+ independent module, the terms and conditions of the license of that
638
+ module. An independent module is a module which is not derived from or
639
+ based on this library. If you modify this library, you may extend this
640
+ exception to your version of the library, but you are not obligated to
641
+ do so. If you do not wish to do so, delete this exception statement
642
+ from your version.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theia/plugin",
3
- "version": "1.18.0-next.907a9c21",
3
+ "version": "1.18.0-next.95+5f811c89cca",
4
4
  "description": "Theia - Plugin API",
5
5
  "types": "./src/theia.d.ts",
6
6
  "publishConfig": {
@@ -19,16 +19,18 @@
19
19
  "src"
20
20
  ],
21
21
  "scripts": {
22
- "lint": "theiaext lint",
23
22
  "build": "theiaext build",
24
- "watch": "theiaext watch",
25
23
  "clean": "theiaext clean",
26
- "test": "theiaext test"
24
+ "compile": "theiaext compile",
25
+ "lint": "theiaext lint",
26
+ "test": "theiaext test",
27
+ "watch": "theiaext watch"
27
28
  },
28
29
  "devDependencies": {
29
- "@theia/ext-scripts": "1.18.0-next.907a9c21"
30
+ "@theia/ext-scripts": "1.18.0"
30
31
  },
31
32
  "nyc": {
32
33
  "extends": "../../configs/nyc.json"
33
- }
34
+ },
35
+ "gitHead": "5f811c89cca2ed32258302ac33ab3759cb619134"
34
36
  }
package/src/theia.d.ts CHANGED
@@ -2018,6 +2018,10 @@ declare module '@theia/plugin' {
2018
2018
  onDidDelete: Event<Uri>;
2019
2019
  }
2020
2020
 
2021
+ export class CancellationError extends Error {
2022
+ constructor();
2023
+ }
2024
+
2021
2025
  /**
2022
2026
  * A cancellation token used to request cancellation on long running
2023
2027
  * or asynchronous task.
@@ -3035,6 +3039,31 @@ declare module '@theia/plugin' {
3035
3039
  clear(): void;
3036
3040
  }
3037
3041
 
3042
+ /**
3043
+ * The ExtensionMode is provided on the `ExtensionContext` and indicates the
3044
+ * mode the specific extension is running in.
3045
+ */
3046
+ export enum ExtensionMode {
3047
+
3048
+ /**
3049
+ * The extension is installed normally (for example, from the marketplace
3050
+ * or VSIX) in the editor.
3051
+ */
3052
+ Production = 1,
3053
+
3054
+ /**
3055
+ * The extension is running from an `--extensionDevelopmentPath` provided
3056
+ * when launching the editor.
3057
+ */
3058
+ Development = 2,
3059
+
3060
+ /**
3061
+ * The extension is running from an `--extensionTestsPath` and
3062
+ * the extension host is running unit tests.
3063
+ */
3064
+ Test = 3,
3065
+ }
3066
+
3038
3067
  /**
3039
3068
  * A plug-in context is a collection of utilities private to a
3040
3069
  * plug-in.
@@ -3060,7 +3089,22 @@ declare module '@theia/plugin' {
3060
3089
  * A memento object that stores state independent
3061
3090
  * of the current opened [workspace](#workspace.workspaceFolders).
3062
3091
  */
3063
- globalState: Memento;
3092
+ globalState: Memento & {
3093
+ /**
3094
+ * Set the keys whose values should be synchronized across devices when synchronizing user-data
3095
+ * like configuration, extensions, and mementos.
3096
+ *
3097
+ * Note that this function defines the whole set of keys whose values are synchronized:
3098
+ * - calling it with an empty array stops synchronization for this memento
3099
+ * - calling it with a non-empty array replaces all keys whose values are synchronized
3100
+ *
3101
+ * For any given set of keys this function needs to be called only once but there is no harm in
3102
+ * repeatedly calling it.
3103
+ *
3104
+ * @param keys The set of keys whose values are synced.
3105
+ */
3106
+ setKeysForSync(keys: readonly string[]): void;
3107
+ };
3064
3108
 
3065
3109
  /**
3066
3110
  * A storage utility for secrets.
@@ -3146,6 +3190,13 @@ declare module '@theia/plugin' {
3146
3190
  * the parent directory is guaranteed to be existent.
3147
3191
  */
3148
3192
  readonly logPath: string;
3193
+
3194
+ /**
3195
+ * The mode the extension is running in. This is specific to the current
3196
+ * extension. One extension may be in `ExtensionMode.Development` while
3197
+ * other extensions in the host run in `ExtensionMode.Release`.
3198
+ */
3199
+ readonly extensionMode: ExtensionMode;
3149
3200
  }
3150
3201
 
3151
3202
  /**
@@ -6154,7 +6205,7 @@ declare module '@theia/plugin' {
6154
6205
  *
6155
6206
  * @sample `let sel:DocumentSelector = { scheme: 'file', language: 'typescript' }`;
6156
6207
  */
6157
- export type DocumentSelector = DocumentFilter | string | Array<DocumentFilter | string>;
6208
+ export type DocumentSelector = DocumentFilter | string | ReadonlyArray<DocumentFilter | string>;
6158
6209
 
6159
6210
  /**
6160
6211
  * A tuple of two characters, like a pair of
@@ -7014,7 +7065,9 @@ declare module '@theia/plugin' {
7014
7065
  Struct = 21,
7015
7066
  Event = 22,
7016
7067
  Operator = 23,
7017
- TypeParameter = 24
7068
+ TypeParameter = 24,
7069
+ User = 25,
7070
+ Issue = 26
7018
7071
  }
7019
7072
 
7020
7073
  /**
@@ -7267,6 +7320,18 @@ declare module '@theia/plugin' {
7267
7320
  constructor(uri: Uri, rangeOrPosition: Range | Position);
7268
7321
  }
7269
7322
 
7323
+ /**
7324
+ * Represents the connection of two locations. Provides additional metadata over normal {@link Location locations},
7325
+ * including an origin range.
7326
+ */
7327
+ export type LocationLink = DefinitionLink;
7328
+
7329
+ /**
7330
+ * The declaration of a symbol representation as one or many {@link Location locations}
7331
+ * or {@link LocationLink location links}.
7332
+ */
7333
+ export type Declaration = Location | Location[] | LocationLink[];
7334
+
7270
7335
  /**
7271
7336
  * The event that is fired when diagnostics change.
7272
7337
  */
@@ -9125,6 +9190,13 @@ declare module '@theia/plugin' {
9125
9190
  export function createSourceControl(id: string, label: string, rootUri?: Uri): SourceControl;
9126
9191
  }
9127
9192
 
9193
+ /**
9194
+ * A DebugProtocolMessage is an opaque stand-in type for the [ProtocolMessage](https://microsoft.github.io/debug-adapter-protocol/specification#Base_Protocol_ProtocolMessage) type defined in the Debug Adapter Protocol.
9195
+ */
9196
+ export interface DebugProtocolMessage {
9197
+ // Properties: see details [here](https://microsoft.github.io/debug-adapter-protocol/specification#Base_Protocol_ProtocolMessage).
9198
+ }
9199
+
9128
9200
  /**
9129
9201
  * Configuration for a debug session.
9130
9202
  */
@@ -9245,7 +9317,7 @@ declare module '@theia/plugin' {
9245
9317
  *
9246
9318
  * @param folder The workspace folder for which the configurations are used or undefined for a folderless setup.
9247
9319
  * @param token A cancellation token.
9248
- * @return An array of [debug configurations](#DebugConfiguration).
9320
+ * @return An array of {@link DebugConfiguration debug configurations}.
9249
9321
  */
9250
9322
  provideDebugConfigurations?(folder: WorkspaceFolder | undefined, token?: CancellationToken): ProviderResult<DebugConfiguration[]>;
9251
9323
 
@@ -9392,7 +9464,53 @@ declare module '@theia/plugin' {
9392
9464
  constructor(port: number, host?: string);
9393
9465
  }
9394
9466
 
9395
- export type DebugAdapterDescriptor = DebugAdapterExecutable | DebugAdapterServer;
9467
+ /**
9468
+ * Represents a debug adapter running as a Named Pipe (on Windows)/UNIX Domain Socket (on non-Windows) based server.
9469
+ */
9470
+ export class DebugAdapterNamedPipeServer {
9471
+ /**
9472
+ * The path to the NamedPipe/UNIX Domain Socket.
9473
+ */
9474
+ readonly path: string;
9475
+
9476
+ /**
9477
+ * Create a description for a debug adapter running as a Named Pipe (on Windows)/UNIX Domain Socket (on non-Windows) based server.
9478
+ */
9479
+ constructor(path: string);
9480
+ }
9481
+
9482
+ /**
9483
+ * A debug adapter that implements the Debug Adapter Protocol can be registered with the editor if it implements the DebugAdapter interface.
9484
+ */
9485
+ export interface DebugAdapter extends Disposable {
9486
+
9487
+ /**
9488
+ * An event which fires after the debug adapter has sent a Debug Adapter Protocol message to the editor.
9489
+ * Messages can be requests, responses, or events.
9490
+ */
9491
+ readonly onDidSendMessage: Event<DebugProtocolMessage>;
9492
+
9493
+ /**
9494
+ * Handle a Debug Adapter Protocol message.
9495
+ * Messages can be requests, responses, or events.
9496
+ * Results or errors are returned via onSendMessage events.
9497
+ * @param message A Debug Adapter Protocol message
9498
+ */
9499
+ handleMessage(message: DebugProtocolMessage): void;
9500
+ }
9501
+
9502
+ /**
9503
+ * A debug adapter descriptor for an inline implementation.
9504
+ */
9505
+ export class DebugAdapterInlineImplementation {
9506
+
9507
+ /**
9508
+ * Create a descriptor for an inline implementation of a debug adapter.
9509
+ */
9510
+ constructor(implementation: DebugAdapter);
9511
+ }
9512
+
9513
+ export type DebugAdapterDescriptor = DebugAdapterExecutable | DebugAdapterServer | DebugAdapterNamedPipeServer | DebugAdapterInlineImplementation;
9396
9514
 
9397
9515
  export interface DebugAdapterDescriptorFactory {
9398
9516
  /**
@@ -9435,6 +9553,22 @@ declare module '@theia/plugin' {
9435
9553
  appendLine(value: string): void;
9436
9554
  }
9437
9555
 
9556
+ /**
9557
+ * Represents the debug console mode.
9558
+ */
9559
+ export enum DebugConsoleMode {
9560
+ /**
9561
+ * Debug session should have a separate debug console.
9562
+ */
9563
+ Separate = 0,
9564
+
9565
+ /**
9566
+ * Debug session should share debug console with its parent session.
9567
+ * This value has no effect for sessions which do not have a parent session.
9568
+ */
9569
+ MergeWithParent = 1
9570
+ }
9571
+
9438
9572
  /**
9439
9573
  * An event describing the changes to the set of [breakpoints](#Breakpoint).
9440
9574
  */
@@ -9513,6 +9647,25 @@ declare module '@theia/plugin' {
9513
9647
  constructor(functionName: string, enabled?: boolean, condition?: string, hitCondition?: string, logMessage?: string);
9514
9648
  }
9515
9649
 
9650
+ /**
9651
+ * A DebugConfigurationProviderTriggerKind specifies when the `provideDebugConfigurations` method of a `DebugConfigurationProvider` should be called.
9652
+ * Currently there are two situations:
9653
+ * (1) providing debug configurations to populate a newly created `launch.json`
9654
+ * (2) providing dynamically generated configurations when the user asks for them through the UI (e.g. via the "Select and Start Debugging" command).
9655
+ * A trigger kind is used when registering a `DebugConfigurationProvider` with {@link debug.registerDebugConfigurationProvider}.
9656
+ */
9657
+ export enum DebugConfigurationProviderTriggerKind {
9658
+ /**
9659
+ * `DebugConfigurationProvider.provideDebugConfigurations` is called to provide the initial debug configurations for a newly created launch.json.
9660
+ */
9661
+ Initial = 1,
9662
+ /**
9663
+ * `DebugConfigurationProvider.provideDebugConfigurations` is called to provide dynamically generated debug configurations when the user asks for them through the UI
9664
+ * (e.g. via the "Select and Start Debugging" command).
9665
+ */
9666
+ Dynamic = 2
9667
+ }
9668
+
9516
9669
  /**
9517
9670
  * Namespace for debug functionality.
9518
9671
  */
@@ -9574,14 +9727,21 @@ declare module '@theia/plugin' {
9574
9727
  export function registerDebugAdapterDescriptorFactory(debugType: string, factory: DebugAdapterDescriptorFactory): Disposable;
9575
9728
 
9576
9729
  /**
9577
- * Register a [debug configuration provider](#DebugConfigurationProvider) for a specific debug type.
9730
+ * Register a {@link DebugConfigurationProvider debug configuration provider} for a specific debug type.
9731
+ * The optional {@link DebugConfigurationProviderTriggerKind triggerKind} can be used to specify when the `provideDebugConfigurations` method of the provider is triggered.
9732
+ * Currently there are two situations:
9733
+ * (1) providing debug configurations to populate a newly created `launch.json`
9734
+ * (2) providing dynamically generated configurations when the user asks for them through the UI (e.g. via the "Select and Start Debugging" command).
9735
+ * Please note that the `triggerKind` argument only applies to the `provideDebugConfigurations` method, the `resolveDebugConfiguration` methods are not affected at all.
9736
+ * Registering a single provider with resolve methods for different trigger kinds results in the same resolve methods being called multiple times.
9578
9737
  * More than one provider can be registered for the same type.
9579
9738
  *
9580
- * @param type The debug type for which the provider is registered.
9581
- * @param provider The [debug configuration provider](#DebugConfigurationProvider) to register.
9582
- * @return A [disposable](#Disposable) that unregisters this provider when being disposed.
9739
+ * @param debugType The debug type for which the provider is registered.
9740
+ * @param provider The {@link DebugConfigurationProvider debug configuration provider} to register.
9741
+ * @param triggerKind The {@link DebugConfigurationProviderTrigger trigger} for which the 'provideDebugConfiguration' method of the provider is registered. If `triggerKind` is missing, the value `DebugConfigurationProviderTriggerKind.Initial` is assumed.
9742
+ * @return A {@link Disposable} that unregisters this provider when being disposed.
9583
9743
  */
9584
- export function registerDebugConfigurationProvider(debugType: string, provider: DebugConfigurationProvider): Disposable;
9744
+ export function registerDebugConfigurationProvider(debugType: string, provider: DebugConfigurationProvider, triggerKind?: DebugConfigurationProviderTriggerKind): Disposable;
9585
9745
 
9586
9746
  /**
9587
9747
  * Register a debug adapter tracker factory for the given debug type.
@@ -10635,6 +10795,11 @@ declare module '@theia/plugin' {
10635
10795
  */
10636
10796
  selectionRange: Range;
10637
10797
 
10798
+ /**
10799
+ * Tags for this item.
10800
+ */
10801
+ tags?: readonly SymbolTag[];
10802
+
10638
10803
  /**
10639
10804
  * Creates a new call hierarchy item.
10640
10805
  */