@gitpod/gitpod-protocol 0.1.5-server-vscode-ouath2.17 → 0.1.5-server-vscode-oauth2.14

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 (330) hide show
  1. package/data/gitpod-schema.json +49 -4
  2. package/lib/accounting-protocol.d.ts +10 -11
  3. package/lib/accounting-protocol.d.ts.map +1 -1
  4. package/lib/accounting-protocol.js +31 -41
  5. package/lib/accounting-protocol.js.map +1 -1
  6. package/lib/admin-protocol.d.ts +20 -2
  7. package/lib/admin-protocol.d.ts.map +1 -1
  8. package/lib/admin-protocol.js +2 -13
  9. package/lib/admin-protocol.js.map +1 -1
  10. package/lib/analytics.d.ts +12 -1
  11. package/lib/analytics.d.ts.map +1 -1
  12. package/lib/analytics.js.map +1 -1
  13. package/lib/auth.d.ts.map +1 -1
  14. package/lib/context-url.d.ts +18 -5
  15. package/lib/context-url.d.ts.map +1 -1
  16. package/lib/context-url.js +63 -10
  17. package/lib/context-url.js.map +1 -1
  18. package/lib/context-url.spec.d.ts +2 -0
  19. package/lib/context-url.spec.d.ts.map +1 -1
  20. package/lib/context-url.spec.js +81 -48
  21. package/lib/context-url.spec.js.map +1 -1
  22. package/lib/email-protocol.d.ts +1 -1
  23. package/lib/email-protocol.d.ts.map +1 -1
  24. package/lib/email-protocol.js +4 -4
  25. package/lib/email-protocol.js.map +1 -1
  26. package/lib/encryption/container-module.d.ts.map +1 -1
  27. package/lib/encryption/container-module.js +4 -4
  28. package/lib/encryption/container-module.js.map +1 -1
  29. package/lib/encryption/encryption-engine.d.ts.map +1 -1
  30. package/lib/encryption/encryption-engine.js +25 -26
  31. package/lib/encryption/encryption-engine.js.map +1 -1
  32. package/lib/encryption/encryption-engine.spec.d.ts.map +1 -1
  33. package/lib/encryption/encryption-engine.spec.js +29 -37
  34. package/lib/encryption/encryption-engine.spec.js.map +1 -1
  35. package/lib/encryption/encryption-service.d.ts.map +1 -1
  36. package/lib/encryption/encryption-service.js +30 -44
  37. package/lib/encryption/encryption-service.js.map +1 -1
  38. package/lib/encryption/key-provider.d.ts.map +1 -1
  39. package/lib/encryption/key-provider.js +31 -38
  40. package/lib/encryption/key-provider.js.map +1 -1
  41. package/lib/env.d.ts +1 -2
  42. package/lib/env.d.ts.map +1 -1
  43. package/lib/env.js +17 -19
  44. package/lib/env.js.map +1 -1
  45. package/lib/gitpod-file-parser.d.ts.map +1 -1
  46. package/lib/gitpod-file-parser.js +26 -42
  47. package/lib/gitpod-file-parser.js.map +1 -1
  48. package/lib/gitpod-file-parser.spec.js +145 -142
  49. package/lib/gitpod-file-parser.spec.js.map +1 -1
  50. package/lib/gitpod-service.d.ts +67 -31
  51. package/lib/gitpod-service.d.ts.map +1 -1
  52. package/lib/gitpod-service.js +162 -309
  53. package/lib/gitpod-service.js.map +1 -1
  54. package/lib/headless-workspace-log.d.ts +1 -0
  55. package/lib/headless-workspace-log.d.ts.map +1 -1
  56. package/lib/headless-workspace-log.js +2 -1
  57. package/lib/headless-workspace-log.js.map +1 -1
  58. package/lib/ide-frontend-service.d.ts +1 -1
  59. package/lib/ide-protocol.d.ts +105 -0
  60. package/lib/ide-protocol.d.ts.map +1 -0
  61. package/lib/ide-protocol.js +8 -0
  62. package/lib/ide-protocol.js.map +1 -0
  63. package/lib/index.d.ts +16 -13
  64. package/lib/index.d.ts.map +1 -1
  65. package/lib/index.js +3 -0
  66. package/lib/index.js.map +1 -1
  67. package/lib/installation-admin-protocol.d.ts +27 -0
  68. package/lib/installation-admin-protocol.d.ts.map +1 -0
  69. package/lib/installation-admin-protocol.js +30 -0
  70. package/lib/installation-admin-protocol.js.map +1 -0
  71. package/lib/license-protocol.d.ts.map +1 -1
  72. package/lib/license-protocol.js.map +1 -1
  73. package/lib/messaging/browser/connection.d.ts +3 -3
  74. package/lib/messaging/browser/connection.d.ts.map +1 -1
  75. package/lib/messaging/browser/connection.js +173 -36
  76. package/lib/messaging/browser/connection.js.map +1 -1
  77. package/lib/messaging/browser/window-connection.d.ts +4 -4
  78. package/lib/messaging/browser/window-connection.d.ts.map +1 -1
  79. package/lib/messaging/browser/window-connection.js +42 -59
  80. package/lib/messaging/browser/window-connection.js.map +1 -1
  81. package/lib/messaging/client-call-metrics.d.ts +2 -2
  82. package/lib/messaging/client-call-metrics.d.ts.map +1 -1
  83. package/lib/messaging/client-call-metrics.js +37 -38
  84. package/lib/messaging/client-call-metrics.js.map +1 -1
  85. package/lib/messaging/error.d.ts +2 -1
  86. package/lib/messaging/error.d.ts.map +1 -1
  87. package/lib/messaging/error.js +4 -2
  88. package/lib/messaging/error.js.map +1 -1
  89. package/lib/messaging/handler.d.ts +10 -0
  90. package/lib/messaging/handler.d.ts.map +1 -1
  91. package/lib/messaging/handler.js +1 -1
  92. package/lib/messaging/node/connection.d.ts +1 -17
  93. package/lib/messaging/node/connection.d.ts.map +1 -1
  94. package/lib/messaging/node/connection.js +24 -60
  95. package/lib/messaging/node/connection.js.map +1 -1
  96. package/lib/messaging/proxy-factory.d.ts +3 -1
  97. package/lib/messaging/proxy-factory.d.ts.map +1 -1
  98. package/lib/messaging/proxy-factory.js +74 -163
  99. package/lib/messaging/proxy-factory.js.map +1 -1
  100. package/lib/oss-allowlist.d.ts +14 -0
  101. package/lib/oss-allowlist.d.ts.map +1 -0
  102. package/lib/oss-allowlist.js +8 -0
  103. package/lib/oss-allowlist.js.map +1 -0
  104. package/lib/payment-protocol.d.ts.map +1 -1
  105. package/lib/payment-protocol.js +1 -1
  106. package/lib/payment-protocol.js.map +1 -1
  107. package/lib/permission.d.ts +9 -4
  108. package/lib/permission.d.ts.map +1 -1
  109. package/lib/permission.js +39 -31
  110. package/lib/permission.js.map +1 -1
  111. package/lib/plans.d.ts +4 -4
  112. package/lib/plans.d.ts.map +1 -1
  113. package/lib/plans.js +225 -209
  114. package/lib/plans.js.map +1 -1
  115. package/lib/protocol.d.ts +83 -78
  116. package/lib/protocol.d.ts.map +1 -1
  117. package/lib/protocol.js +131 -190
  118. package/lib/protocol.js.map +1 -1
  119. package/lib/snapshot-url.d.ts +14 -0
  120. package/lib/snapshot-url.d.ts.map +1 -0
  121. package/lib/snapshot-url.js +26 -0
  122. package/lib/snapshot-url.js.map +1 -0
  123. package/{src/theia-plugins.ts → lib/snapshot-url.spec.d.ts} +2 -6
  124. package/lib/snapshot-url.spec.d.ts.map +1 -0
  125. package/lib/snapshot-url.spec.js +41 -0
  126. package/lib/snapshot-url.spec.js.map +1 -0
  127. package/lib/team-subscription-protocol.d.ts +5 -3
  128. package/lib/team-subscription-protocol.d.ts.map +1 -1
  129. package/lib/team-subscription-protocol.js +17 -17
  130. package/lib/team-subscription-protocol.js.map +1 -1
  131. package/lib/teams-projects-protocol.d.ts +16 -3
  132. package/lib/teams-projects-protocol.d.ts.map +1 -1
  133. package/lib/teams-projects-protocol.js +11 -15
  134. package/lib/teams-projects-protocol.js.map +1 -1
  135. package/lib/typings/globals.d.ts +2 -2
  136. package/lib/typings/globals.d.ts.map +1 -1
  137. package/lib/util/analytics.d.ts.map +1 -1
  138. package/lib/util/analytics.js +44 -26
  139. package/lib/util/analytics.js.map +1 -1
  140. package/lib/util/async-iterator.d.ts.map +1 -1
  141. package/lib/util/async-iterator.js +57 -135
  142. package/lib/util/async-iterator.js.map +1 -1
  143. package/lib/util/cancelable.js +17 -59
  144. package/lib/util/cancelable.js.map +1 -1
  145. package/lib/util/date-time.js +11 -11
  146. package/lib/util/date-time.js.map +1 -1
  147. package/lib/util/deferred.js +10 -12
  148. package/lib/util/deferred.js.map +1 -1
  149. package/lib/util/disposable.d.ts.map +1 -1
  150. package/lib/util/disposable.js +27 -40
  151. package/lib/util/disposable.js.map +1 -1
  152. package/lib/util/event.d.ts.map +1 -1
  153. package/lib/util/event.js +63 -77
  154. package/lib/util/event.js.map +1 -1
  155. package/lib/util/garbage-collected-cache.d.ts +1 -0
  156. package/lib/util/garbage-collected-cache.d.ts.map +1 -1
  157. package/lib/util/garbage-collected-cache.js +27 -47
  158. package/lib/util/garbage-collected-cache.js.map +1 -1
  159. package/lib/util/generate-workspace-id.d.ts +1 -1
  160. package/lib/util/generate-workspace-id.d.ts.map +1 -1
  161. package/lib/util/generate-workspace-id.js +460 -499
  162. package/lib/util/generate-workspace-id.js.map +1 -1
  163. package/lib/util/generate-workspace-id.spec.js +61 -78
  164. package/lib/util/generate-workspace-id.spec.js.map +1 -1
  165. package/lib/util/gitpod-cookie.d.ts +20 -0
  166. package/lib/util/gitpod-cookie.d.ts.map +1 -0
  167. package/lib/util/gitpod-cookie.js +41 -0
  168. package/lib/util/gitpod-cookie.js.map +1 -0
  169. package/lib/util/gitpod-host-url.d.ts +1 -1
  170. package/lib/util/gitpod-host-url.d.ts.map +1 -1
  171. package/lib/util/gitpod-host-url.js +106 -114
  172. package/lib/util/gitpod-host-url.js.map +1 -1
  173. package/lib/util/gitpod-host-url.spec.d.ts.map +1 -1
  174. package/lib/util/gitpod-host-url.spec.js +97 -135
  175. package/lib/util/gitpod-host-url.spec.js.map +1 -1
  176. package/lib/util/grpc.d.ts.map +1 -1
  177. package/lib/util/grpc.js +3 -3
  178. package/lib/util/grpc.js.map +1 -1
  179. package/lib/util/jaeger-client-types.d.ts +68 -0
  180. package/lib/util/jaeger-client-types.d.ts.map +1 -0
  181. package/lib/{theia-plugins.js → util/jaeger-client-types.js} +1 -1
  182. package/lib/util/jaeger-client-types.js.map +1 -0
  183. package/lib/util/logging.d.ts +33 -33
  184. package/lib/util/logging.d.ts.map +1 -1
  185. package/lib/util/logging.js +87 -129
  186. package/lib/util/logging.js.map +1 -1
  187. package/lib/util/make-link.js +5 -5
  188. package/lib/util/make-link.js.map +1 -1
  189. package/lib/util/parse-workspace-id.d.ts +10 -0
  190. package/lib/util/parse-workspace-id.d.ts.map +1 -1
  191. package/lib/util/parse-workspace-id.js +30 -7
  192. package/lib/util/parse-workspace-id.js.map +1 -1
  193. package/lib/util/parse-workspace-id.spec.d.ts +4 -0
  194. package/lib/util/parse-workspace-id.spec.d.ts.map +1 -1
  195. package/lib/util/parse-workspace-id.spec.js +123 -84
  196. package/lib/util/parse-workspace-id.spec.js.map +1 -1
  197. package/lib/util/queue.js +16 -55
  198. package/lib/util/queue.js.map +1 -1
  199. package/lib/util/queue.spec.js +147 -288
  200. package/lib/util/queue.spec.js.map +1 -1
  201. package/lib/util/repeat.d.ts +15 -0
  202. package/lib/util/repeat.d.ts.map +1 -0
  203. package/lib/util/repeat.js +55 -0
  204. package/lib/util/repeat.js.map +1 -0
  205. package/lib/util/semaphore.d.ts.map +1 -1
  206. package/lib/util/semaphore.js +15 -46
  207. package/lib/util/semaphore.js.map +1 -1
  208. package/lib/util/skip-if.d.ts.map +1 -1
  209. package/lib/util/skip-if.js +6 -6
  210. package/lib/util/skip-if.js.map +1 -1
  211. package/lib/util/timeutil.d.ts.map +1 -1
  212. package/lib/util/timeutil.js +16 -16
  213. package/lib/util/timeutil.js.map +1 -1
  214. package/lib/util/timeutil.spec.d.ts.map +1 -1
  215. package/lib/util/timeutil.spec.js +21 -24
  216. package/lib/util/timeutil.spec.js.map +1 -1
  217. package/lib/util/tracing.d.ts +52 -6
  218. package/lib/util/tracing.d.ts.map +1 -1
  219. package/lib/util/tracing.js +199 -64
  220. package/lib/util/tracing.js.map +1 -1
  221. package/lib/util/tracing.spec.d.ts +7 -0
  222. package/lib/util/tracing.spec.d.ts.map +1 -0
  223. package/lib/util/tracing.spec.js +121 -0
  224. package/lib/util/tracing.spec.js.map +1 -0
  225. package/lib/util/workspace-port-authentication.d.ts +7 -7
  226. package/lib/util/workspace-port-authentication.d.ts.map +1 -1
  227. package/lib/util/workspace-port-authentication.js +9 -12
  228. package/lib/util/workspace-port-authentication.js.map +1 -1
  229. package/lib/workspace-cluster.d.ts +15 -3
  230. package/lib/workspace-cluster.d.ts.map +1 -1
  231. package/lib/workspace-cluster.js +19 -4
  232. package/lib/workspace-cluster.js.map +1 -1
  233. package/lib/workspace-instance.d.ts +25 -4
  234. package/lib/workspace-instance.d.ts.map +1 -1
  235. package/lib/wsready.d.ts +1 -1
  236. package/lib/wsready.d.ts.map +1 -1
  237. package/lib/wsready.js +2 -2
  238. package/package.json +22 -13
  239. package/pkg-yarn.lock +12 -7
  240. package/provenance-bundle.jsonl +2 -0
  241. package/src/accounting-protocol.ts +53 -53
  242. package/src/admin-protocol.ts +43 -20
  243. package/src/analytics.ts +28 -15
  244. package/src/auth.ts +2 -2
  245. package/src/context-url.spec.ts +37 -9
  246. package/src/context-url.ts +94 -36
  247. package/src/email-protocol.ts +5 -6
  248. package/src/encryption/container-module.ts +2 -3
  249. package/src/encryption/encryption-engine.spec.ts +9 -8
  250. package/src/encryption/encryption-engine.ts +14 -14
  251. package/src/encryption/encryption-service.ts +4 -5
  252. package/src/encryption/key-provider.ts +16 -19
  253. package/src/env.ts +9 -10
  254. package/src/gitpod-file-parser.spec.ts +55 -61
  255. package/src/gitpod-file-parser.ts +16 -17
  256. package/src/gitpod-service.ts +174 -109
  257. package/src/headless-workspace-log.ts +6 -4
  258. package/src/ide-frontend-service.ts +2 -2
  259. package/src/ide-protocol.ts +119 -0
  260. package/src/index.ts +16 -13
  261. package/src/installation-admin-protocol.ts +42 -0
  262. package/src/license-protocol.ts +5 -6
  263. package/src/messaging/browser/connection.ts +185 -21
  264. package/src/messaging/browser/window-connection.ts +39 -29
  265. package/src/messaging/client-call-metrics.ts +70 -71
  266. package/src/messaging/error.ts +6 -5
  267. package/src/messaging/handler.ts +13 -1
  268. package/src/messaging/node/connection.ts +23 -70
  269. package/src/messaging/proxy-factory.ts +32 -33
  270. package/src/oss-allowlist.ts +15 -0
  271. package/src/payment-protocol.ts +2 -2
  272. package/src/permission.ts +40 -33
  273. package/src/plans.ts +236 -189
  274. package/src/protocol.ts +280 -277
  275. package/src/snapshot-url.spec.ts +27 -0
  276. package/src/snapshot-url.ts +27 -0
  277. package/src/team-subscription-protocol.ts +33 -23
  278. package/src/teams-projects-protocol.ts +27 -9
  279. package/src/typings/globals.ts +4 -4
  280. package/src/util/analytics.ts +56 -18
  281. package/src/util/async-iterator.ts +4 -5
  282. package/src/util/cancelable.ts +3 -3
  283. package/src/util/date-time.ts +8 -8
  284. package/src/util/deferred.ts +6 -6
  285. package/src/util/disposable.ts +3 -6
  286. package/src/util/event.ts +9 -11
  287. package/src/util/garbage-collected-cache.ts +9 -6
  288. package/src/util/generate-workspace-id.spec.ts +26 -6
  289. package/src/util/generate-workspace-id.ts +458 -440
  290. package/src/util/gitpod-cookie.ts +38 -0
  291. package/src/util/gitpod-host-url.spec.ts +40 -13
  292. package/src/util/gitpod-host-url.ts +41 -38
  293. package/src/util/grpc.ts +4 -4
  294. package/src/util/jaeger-client-types.ts +102 -0
  295. package/src/util/logging.ts +109 -86
  296. package/src/util/make-link.ts +6 -7
  297. package/src/util/parse-workspace-id.spec.ts +37 -8
  298. package/src/util/parse-workspace-id.ts +32 -7
  299. package/src/util/queue.spec.ts +27 -25
  300. package/src/util/repeat.ts +45 -0
  301. package/src/util/semaphore.ts +4 -6
  302. package/src/util/skip-if.ts +9 -6
  303. package/src/util/timeutil.spec.ts +14 -15
  304. package/src/util/timeutil.ts +15 -11
  305. package/src/util/tracing.spec.ts +88 -0
  306. package/src/util/tracing.ts +202 -31
  307. package/src/util/workspace-port-authentication.ts +10 -13
  308. package/src/workspace-cluster.ts +26 -8
  309. package/src/workspace-instance.ts +53 -23
  310. package/src/wsready.ts +3 -3
  311. package/data/builtin-theia-plugins.json +0 -372
  312. package/lib/messaging/connection-error-handler.d.ts +0 -27
  313. package/lib/messaging/connection-error-handler.d.ts.map +0 -1
  314. package/lib/messaging/connection-error-handler.js +0 -46
  315. package/lib/messaging/connection-error-handler.js.map +0 -1
  316. package/lib/theia-plugins.d.ts +0 -11
  317. package/lib/theia-plugins.d.ts.map +0 -1
  318. package/lib/theia-plugins.js.map +0 -1
  319. package/lib/util/repeater.d.ts +0 -22
  320. package/lib/util/repeater.d.ts.map +0 -1
  321. package/lib/util/repeater.js +0 -118
  322. package/lib/util/repeater.js.map +0 -1
  323. package/lib/util/safe-promise.d.ts +0 -11
  324. package/lib/util/safe-promise.d.ts.map +0 -1
  325. package/lib/util/safe-promise.js +0 -34
  326. package/lib/util/safe-promise.js.map +0 -1
  327. package/src/messaging/connection-error-handler.ts +0 -62
  328. package/src/util/jaeger-client.d.ts +0 -105
  329. package/src/util/repeater.ts +0 -49
  330. package/src/util/safe-promise.ts +0 -26
@@ -4,10 +4,10 @@
4
4
  * See License-AGPL.txt in the project root for license information.
5
5
  */
6
6
 
7
- import * as fs from 'fs';
8
- import { filePathTelepresenceAware } from './env';
7
+ import * as fs from "fs";
8
+ import { filePathTelepresenceAware } from "./env";
9
9
  import { DeepPartial } from "./util/deep-partial";
10
- import { PermissionName } from './permission';
10
+ import { PermissionName } from "./permission";
11
11
 
12
12
  export interface WorkspaceCluster {
13
13
  // Name of the workspace cluster.
@@ -47,15 +47,33 @@ export interface TLSConfig {
47
47
  crt: string;
48
48
  }
49
49
  export namespace TLSConfig {
50
- export const loadFromBase64File = (path: string): string => fs.readFileSync(filePathTelepresenceAware(path)).toString("base64");
50
+ export const loadFromBase64File = (path: string): string =>
51
+ fs.readFileSync(filePathTelepresenceAware(path)).toString("base64");
51
52
  }
52
53
  export type WorkspaceClusterWoTLS = Omit<WorkspaceCluster, "tls">;
53
54
  export type WorkspaceManagerConnectionInfo = Pick<WorkspaceCluster, "name" | "url" | "tls">;
54
55
 
55
- export type AdmissionConstraint = AdmissionConstraintFeaturePreview | AdmissionConstraintHasRole;
56
+ export type AdmissionConstraint =
57
+ | AdmissionConstraintFeaturePreview
58
+ | AdmissionConstraintHasPermission
59
+ | AdmissionConstraintHasUserLevel
60
+ | AdmissionConstraintHasMoreResources;
56
61
  export type AdmissionConstraintFeaturePreview = { type: "has-feature-preview" };
57
- export type AdmissionConstraintHasRole = { type: "has-permission", permission: PermissionName };
58
-
62
+ export type AdmissionConstraintHasPermission = { type: "has-permission"; permission: PermissionName };
63
+ export type AdmissionConstraintHasUserLevel = { type: "has-user-level"; level: string };
64
+ export type AdmissionConstraintHasMoreResources = { type: "has-more-resources" };
65
+
66
+ export namespace AdmissionConstraint {
67
+ export function is(o: any): o is AdmissionConstraint {
68
+ return !!o && "type" in o;
69
+ }
70
+ export function isHasPermissionConstraint(o: any): o is AdmissionConstraintHasPermission {
71
+ return is(o) && o.type === "has-permission";
72
+ }
73
+ export function hasPermission(ac: AdmissionConstraint, permission: PermissionName): boolean {
74
+ return isHasPermissionConstraint(ac) && ac.permission === permission;
75
+ }
76
+ }
59
77
 
60
78
  export const WorkspaceClusterDB = Symbol("WorkspaceClusterDB");
61
79
  export interface WorkspaceClusterDB {
@@ -86,4 +104,4 @@ export interface WorkspaceClusterDB {
86
104
  }
87
105
  export interface WorkspaceClusterFilter extends Pick<WorkspaceCluster, "state" | "govern" | "url"> {
88
106
  minScore: number;
89
- }
107
+ }
@@ -51,6 +51,11 @@ export interface WorkspaceInstance {
51
51
 
52
52
  // instance is hard-deleted on the database and about to be collected by db-sync
53
53
  readonly deleted?: boolean;
54
+
55
+ /**
56
+ * Contains information about the image build, if there was any
57
+ */
58
+ imageBuildInfo?: ImageBuildInfo;
54
59
  }
55
60
 
56
61
  // WorkspaceInstanceStatus describes the current state of a workspace instance
@@ -90,52 +95,50 @@ export interface WorkspaceInstanceStatus {
90
95
  export type WorkspaceInstancePhase =
91
96
  // unknown indicates an issue within the system in that it cannot determine the actual phase of
92
97
  // a workspace. This phase is usually accompanied by an error.
93
- "unknown" |
98
+ | "unknown"
94
99
 
95
100
  // Preparing means that we haven't actually started the workspace instance just yet, but rather
96
101
  // are still preparing for launch. This means we're building the Docker image for the workspace.
97
- "preparing" |
102
+ | "preparing"
98
103
 
99
104
  // Pending means the workspace does not yet consume resources in the cluster, but rather is looking for
100
105
  // some space within the cluster. If for example the cluster needs to scale up to accomodate the
101
106
  // workspace, the workspace will be in Pending state until that happened.
102
- "pending" |
107
+ | "pending"
103
108
 
104
109
  // Creating means the workspace is currently being created. Thati includes downloading the images required
105
110
  // to run the workspace over the network. The time spent in this phase varies widely and depends on the current
106
111
  // network speed, image size and cache states.
107
- "creating" |
112
+ | "creating"
108
113
 
109
114
  // Initializing is the phase in which the workspace is executing the appropriate workspace initializer (e.g. Git
110
115
  // clone or backup download). After this phase one can expect the workspace to either be Running or Failed.
111
- "initializing" |
116
+ | "initializing"
112
117
 
113
118
  // Running means the workspace is able to actively perform work, either by serving a user through Theia,
114
119
  // or as a headless workspace.
115
- "running" |
120
+ | "running"
116
121
 
117
122
  // Interrupted is an exceptional state where the container should be running but is temporarily unavailable.
118
123
  // When in this state, we expect it to become running or stopping anytime soon.
119
- "interrupted" |
124
+ | "interrupted"
120
125
 
121
126
  // Stopping means that the workspace is currently shutting down. It could go to stopped every moment.
122
- "stopping" |
127
+ | "stopping"
123
128
 
124
129
  // Stopped means the workspace ended regularly because it was shut down.
125
- "stopped";
130
+ | "stopped";
126
131
 
127
132
  export interface WorkspaceInstanceConditions {
128
133
  // Failed contains the reason the workspace failed to operate. If this field is empty, the workspace has not failed.
129
- failed?: string
134
+ // failed contains technical details for the failure of the workspace.
135
+ failed?: string;
130
136
 
131
137
  // timeout contains the reason the workspace has timed out. If this field is empty, the workspace has not timed out.
132
- timeout?: string
138
+ timeout?: string;
133
139
 
134
140
  // PullingImages marks if the workspace is currently pulling its images. This condition can only be set during PhaseCreating
135
- pullingImages?: boolean
136
-
137
- // ServiceExists denotes if the workspace theia-/ports- services exist. This condition will be true if either of the two services exist.
138
- serviceExists?: boolean
141
+ pullingImages?: boolean;
139
142
 
140
143
  // deployed marks that a workspace instance was sent/deployed at a workspace manager
141
144
  deployed?: boolean;
@@ -145,22 +148,28 @@ export interface WorkspaceInstanceConditions {
145
148
 
146
149
  // ISO8601 timestamp when the first user activity was registered in the frontend. Only set if the workspace is running.
147
150
  firstUserActivity?: string;
151
+
152
+ // headlessTaskFailed indicates that a headless workspace task failed
153
+ // headlessTaskFailed is only set if:
154
+ // * this workspace is headless
155
+ // * the task being run returned a non 0 exit status code
156
+ headlessTaskFailed?: string;
157
+
158
+ // stopped_by_request is true if the workspace was stopped using a StopWorkspace call
159
+ stoppedByRequest?: boolean;
148
160
  }
149
161
 
150
162
  // AdmissionLevel describes who can access a workspace instance and its ports.
151
- export type AdmissionLevel = 'owner_only' | 'everyone';
163
+ export type AdmissionLevel = "owner_only" | "everyone";
152
164
 
153
165
  // PortVisibility describes how a port can be accessed
154
- export type PortVisibility = 'public' | 'private';
166
+ export type PortVisibility = "public" | "private";
155
167
 
156
168
  // WorkspaceInstancePort describes a port exposed on a workspace instance
157
169
  export interface WorkspaceInstancePort {
158
170
  // The outward-facing port number
159
171
  port: number;
160
172
 
161
- // An optional inward-facing port number. If not present we'll use port.
162
- targetPort?: number;
163
-
164
173
  // The visiblity of this port. Optional for backwards compatibility.
165
174
  visibility?: PortVisibility;
166
175
 
@@ -180,19 +189,19 @@ export interface WorkspaceInstanceRepoStatus {
180
189
  uncommitedFiles?: string[];
181
190
 
182
191
  // the total number of uncommited files
183
- totalUncommitedFiles?: number
192
+ totalUncommitedFiles?: number;
184
193
 
185
194
  // untrackedFiles is the list of untracked files in the workspace, possibly truncated
186
195
  untrackedFiles?: string[];
187
196
 
188
197
  // the total number of untracked files
189
- totalUntrackedFiles?: number
198
+ totalUntrackedFiles?: number;
190
199
 
191
200
  // unpushedCommits is the list of unpushed changes in the workspace, possibly truncated
192
201
  unpushedCommits?: string[];
193
202
 
194
203
  // the total number of unpushed changes
195
- totalUnpushedCommits?: number
204
+ totalUnpushedCommits?: number;
196
205
  }
197
206
 
198
207
  // WorkspaceInstanceConfiguration contains all per-instance configuration
@@ -206,4 +215,25 @@ export interface WorkspaceInstanceConfiguration {
206
215
 
207
216
  // ideImage is the ref of the IDE image this instance uses.
208
217
  ideImage: string;
218
+
219
+ // desktopIdeImage is the ref of the desktop IDE image this instance uses.
220
+ desktopIdeImage?: string;
221
+
222
+ // supervisorImage is the ref of the supervisor image this instance uses.
223
+ supervisorImage?: string;
224
+ }
225
+
226
+ /**
227
+ * Holds information about the image build (if there was one) for this WorkspaceInstance
228
+ */
229
+ export interface ImageBuildInfo {
230
+ log?: ImageBuildLogInfo;
231
+ }
232
+
233
+ /**
234
+ * Holds information about how to access logs for this an image build
235
+ */
236
+ export interface ImageBuildLogInfo {
237
+ url: string;
238
+ headers: { [key: string]: string };
209
239
  }
package/src/wsready.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
- * Copyright (c) 2021 Gitpod GmbH. All rights reserved.
2
+ * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
3
3
  * Licensed under the GNU Affero General Public License (AGPL).
4
4
  * See License-AGPL.txt in the project root for license information.
5
5
  */
6
6
 
7
- // generated using github.com/32leaves/bel on 2021-08-03 10:42:32.582603295 +0000 UTC m=+0.005734479
7
+ // generated using github.com/32leaves/bel on 2022-02-15 11:53:18.380158212 +0000 UTC m=+0.011913675
8
8
  // DO NOT MODIFY
9
9
 
10
10
  export enum WorkspaceInitSource {
@@ -13,5 +13,5 @@ export enum WorkspaceInitSource {
13
13
  WorkspaceInitFromOther = "from-other",
14
14
  }
15
15
  export interface WorkspaceReadyMessage {
16
- source: WorkspaceInitSource
16
+ source: WorkspaceInitSource;
17
17
  }
@@ -1,372 +0,0 @@
1
- [
2
- {
3
- "loc": "vscode.bat-1.44.2.vsix",
4
- "name": "vscode.bat@1.44.2",
5
- "url": "https://open-vsx.org/api/vscode/bat/1.44.2/file/vscode.bat-1.44.2.vsix"
6
- },
7
- {
8
- "loc": "vscode.clojure-1.44.2.vsix",
9
- "name": "vscode.clojure@1.44.2",
10
- "url": "https://open-vsx.org/api/vscode/clojure/1.44.2/file/vscode.clojure-1.44.2.vsix"
11
- },
12
- {
13
- "loc": "vscode.coffeescript-1.44.2.vsix",
14
- "name": "vscode.coffeescript@1.44.2",
15
- "url": "https://open-vsx.org/api/vscode/coffeescript/1.44.2/file/vscode.coffeescript-1.44.2.vsix"
16
- },
17
- {
18
- "loc": "vscode.cpp-1.44.2.vsix",
19
- "name": "vscode.cpp@1.44.2",
20
- "url": "https://open-vsx.org/api/vscode/cpp/1.44.2/file/vscode.cpp-1.44.2.vsix"
21
- },
22
- {
23
- "loc": "vscode.csharp-1.44.2.vsix",
24
- "name": "vscode.csharp@1.44.2",
25
- "url": "https://open-vsx.org/api/vscode/csharp/1.44.2/file/vscode.csharp-1.44.2.vsix"
26
- },
27
- {
28
- "loc": "llvm-vs-code-extensions.vscode-clangd-0.1.5.vsix",
29
- "name": "llvm-vs-code-extensions.vscode-clangd@0.1.5",
30
- "url": "https://open-vsx.org/api/llvm-vs-code-extensions/vscode-clangd/0.1.5/file/llvm-vs-code-extensions.vscode-clangd-0.1.5.vsix"
31
- },
32
- {
33
- "loc": "vscode.css-1.51.1.vsix",
34
- "name": "vscode.css@1.51.1",
35
- "url": "https://open-vsx.org/api/vscode/css/1.51.1/file/vscode.css-1.51.1.vsix"
36
- },
37
- {
38
- "loc": "vscode.css-language-features-1.51.1.vsix",
39
- "name": "vscode.css-language-features@1.51.1",
40
- "url": "https://open-vsx.org/api/vscode/css-language-features/1.51.1/file/vscode.css-language-features-1.51.1.vsix"
41
- },
42
- {
43
- "loc": "vscode.debug-auto-launch-1.44.2.vsix",
44
- "name": "vscode.debug-auto-launch@1.44.2",
45
- "url": "https://open-vsx.org/api/vscode/debug-auto-launch/1.44.2/file/vscode.debug-auto-launch-1.44.2.vsix"
46
- },
47
- {
48
- "loc": "vscode.emmet-1.44.2.vsix",
49
- "name": "vscode.emmet@1.44.2",
50
- "url": "https://open-vsx.org/api/vscode/emmet/1.44.2/file/vscode.emmet-1.44.2.vsix"
51
- },
52
- {
53
- "loc": "vscode.fsharp-1.44.2.vsix",
54
- "name": "vscode.fsharp@1.44.2",
55
- "url": "https://open-vsx.org/api/vscode/fsharp/1.44.2/file/vscode.fsharp-1.44.2.vsix"
56
- },
57
- {
58
- "loc": "vscode.go-1.44.2.vsix",
59
- "name": "vscode.go@1.44.2",
60
- "url": "https://open-vsx.org/api/vscode/go/1.44.2/file/vscode.go-1.44.2.vsix"
61
- },
62
- {
63
- "loc": "vscode.groovy-1.44.2.vsix",
64
- "name": "vscode.groovy@1.44.2",
65
- "url": "https://open-vsx.org/api/vscode/groovy/1.44.2/file/vscode.groovy-1.44.2.vsix"
66
- },
67
- {
68
- "loc": "vscode.handlebars-1.44.2.vsix",
69
- "name": "vscode.handlebars@1.44.2",
70
- "url": "https://open-vsx.org/api/vscode/handlebars/1.44.2/file/vscode.handlebars-1.44.2.vsix"
71
- },
72
- {
73
- "loc": "vscode.hlsl-1.44.2.vsix",
74
- "name": "vscode.hlsl@1.44.2",
75
- "url": "https://open-vsx.org/api/vscode/hlsl/1.44.2/file/vscode.hlsl-1.44.2.vsix"
76
- },
77
- {
78
- "loc": "vscode.html-1.51.1.vsix",
79
- "name": "vscode.html@1.51.1",
80
- "url": "https://open-vsx.org/api/vscode/html/1.51.1/file/vscode.html-1.51.1.vsix"
81
- },
82
- {
83
- "loc": "vscode.html-language-features-1.51.1.vsix",
84
- "name": "vscode.html-language-features@1.51.1",
85
- "url": "https://open-vsx.org/api/vscode/html-language-features/1.51.1/file/vscode.html-language-features-1.51.1.vsix"
86
- },
87
- {
88
- "loc": "vscode.ini-1.44.2.vsix",
89
- "name": "vscode.ini@1.44.2",
90
- "url": "https://open-vsx.org/api/vscode/ini/1.44.2/file/vscode.ini-1.44.2.vsix"
91
- },
92
- {
93
- "loc": "vscode.java-1.53.2.vsix",
94
- "name": "vscode.java@1.53.2",
95
- "url": "https://open-vsx.org/api/vscode/java/1.53.2/file/vscode.java-1.53.2.vsix"
96
- },
97
- {
98
- "loc": "vscode.javascript-1.44.2.vsix",
99
- "name": "vscode.javascript@1.44.2",
100
- "url": "https://open-vsx.org/api/vscode/javascript/1.44.2/file/vscode.javascript-1.44.2.vsix"
101
- },
102
- {
103
- "loc": "vscode.json-1.44.2.vsix",
104
- "name": "vscode.json@1.44.2",
105
- "url": "https://open-vsx.org/api/vscode/json/1.44.2/file/vscode.json-1.44.2.vsix"
106
- },
107
- {
108
- "loc": "vscode.json-language-features-1.46.1.vsix",
109
- "name": "vscode.json-language-features@1.46.1",
110
- "url": "https://open-vsx.org/api/vscode/json-language-features/1.46.1/file/vscode.json-language-features-1.46.1.vsix"
111
- },
112
- {
113
- "loc": "vscode.less-1.44.2.vsix",
114
- "name": "vscode.less@1.44.2",
115
- "url": "https://open-vsx.org/api/vscode/less/1.44.2/file/vscode.less-1.44.2.vsix"
116
- },
117
- {
118
- "loc": "vscode.log-1.44.2.vsix",
119
- "name": "vscode.log@1.44.2",
120
- "url": "https://open-vsx.org/api/vscode/log/1.44.2/file/vscode.log-1.44.2.vsix"
121
- },
122
- {
123
- "loc": "vscode.lua-1.44.2.vsix",
124
- "name": "vscode.lua@1.44.2",
125
- "url": "https://open-vsx.org/api/vscode/lua/1.44.2/file/vscode.lua-1.44.2.vsix"
126
- },
127
- {
128
- "loc": "vscode.make-1.44.2.vsix",
129
- "name": "vscode.make@1.44.2",
130
- "url": "https://open-vsx.org/api/vscode/make/1.44.2/file/vscode.make-1.44.2.vsix"
131
- },
132
- {
133
- "loc": "vscode.markdown-1.44.2.vsix",
134
- "name": "vscode.markdown@1.44.2",
135
- "url": "https://open-vsx.org/api/vscode/markdown/1.44.2/file/vscode.markdown-1.44.2.vsix"
136
- },
137
- {
138
- "loc": "vscode.npm-1.39.1.vsix",
139
- "name": "vscode.npm@1.39.1",
140
- "url": "https://open-vsx.org/api/vscode/npm/1.39.1/file/vscode.npm-1.39.1.vsix"
141
- },
142
- {
143
- "loc": "vscode.objective-c-1.44.2.vsix",
144
- "name": "vscode.objective-c@1.44.2",
145
- "url": "https://open-vsx.org/api/vscode/objective-c/1.44.2/file/vscode.objective-c-1.44.2.vsix"
146
- },
147
- {
148
- "loc": "vscode.perl-1.44.2.vsix",
149
- "name": "vscode.perl@1.44.2",
150
- "url": "https://open-vsx.org/api/vscode/perl/1.44.2/file/vscode.perl-1.44.2.vsix"
151
- },
152
- {
153
- "loc": "vscode.php-1.44.2.vsix",
154
- "name": "vscode.php@1.44.2",
155
- "url": "https://open-vsx.org/api/vscode/php/1.44.2/file/vscode.php-1.44.2.vsix"
156
- },
157
- {
158
- "loc": "vscode.powershell-1.44.2.vsix",
159
- "name": "vscode.powershell@1.44.2",
160
- "url": "https://open-vsx.org/api/vscode/powershell/1.44.2/file/vscode.powershell-1.44.2.vsix"
161
- },
162
- {
163
- "loc": "vscode.pug-1.44.2.vsix",
164
- "name": "vscode.pug@1.44.2",
165
- "url": "https://open-vsx.org/api/vscode/pug/1.44.2/file/vscode.pug-1.44.2.vsix"
166
- },
167
- {
168
- "loc": "vscode.python-1.47.3.vsix",
169
- "name": "vscode.python@1.47.3",
170
- "url": "https://open-vsx.org/api/vscode/python/1.47.3/file/vscode.python-1.47.3.vsix"
171
- },
172
- {
173
- "loc": "vscode.r-1.44.2.vsix",
174
- "name": "vscode.r@1.44.2",
175
- "url": "https://open-vsx.org/api/vscode/r/1.44.2/file/vscode.r-1.44.2.vsix"
176
- },
177
- {
178
- "loc": "vscode.razor-1.44.2.vsix",
179
- "name": "vscode.razor@1.44.2",
180
- "url": "https://open-vsx.org/api/vscode/razor/1.44.2/file/vscode.razor-1.44.2.vsix"
181
- },
182
- {
183
- "loc": "vscode.ruby-1.44.2.vsix",
184
- "name": "vscode.ruby@1.44.2",
185
- "url": "https://open-vsx.org/api/vscode/ruby/1.44.2/file/vscode.ruby-1.44.2.vsix"
186
- },
187
- {
188
- "loc": "vscode.rust-1.44.2.vsix",
189
- "name": "vscode.rust@1.44.2",
190
- "url": "https://open-vsx.org/api/vscode/rust/1.44.2/file/vscode.rust-1.44.2.vsix"
191
- },
192
- {
193
- "loc": "vscode.scss-1.44.2.vsix",
194
- "name": "vscode.scss@1.44.2",
195
- "url": "https://open-vsx.org/api/vscode/scss/1.44.2/file/vscode.scss-1.44.2.vsix"
196
- },
197
- {
198
- "loc": "vscode.shaderlab-1.44.2.vsix",
199
- "name": "vscode.shaderlab@1.44.2",
200
- "url": "https://open-vsx.org/api/vscode/shaderlab/1.44.2/file/vscode.shaderlab-1.44.2.vsix"
201
- },
202
- {
203
- "loc": "vscode.shellscript-1.44.2.vsix",
204
- "name": "vscode.shellscript@1.44.2",
205
- "url": "https://open-vsx.org/api/vscode/shellscript/1.44.2/file/vscode.shellscript-1.44.2.vsix"
206
- },
207
- {
208
- "loc": "vscode.sql-1.44.2.vsix",
209
- "name": "vscode.sql@1.44.2",
210
- "url": "https://open-vsx.org/api/vscode/sql/1.44.2/file/vscode.sql-1.44.2.vsix"
211
- },
212
- {
213
- "loc": "vscode.swift-1.44.2.vsix",
214
- "name": "vscode.swift@1.44.2",
215
- "url": "https://open-vsx.org/api/vscode/swift/1.44.2/file/vscode.swift-1.44.2.vsix"
216
- },
217
- {
218
- "loc": "vscode.typescript-1.44.2.vsix",
219
- "name": "vscode.typescript@1.44.2",
220
- "url": "https://open-vsx.org/api/vscode/typescript/1.44.2/file/vscode.typescript-1.44.2.vsix"
221
- },
222
- {
223
- "loc": "vscode.typescript-language-features-1.44.2.vsix",
224
- "name": "vscode.typescript-language-features@1.44.2",
225
- "url": "https://open-vsx.org/api/vscode/typescript-language-features/1.44.2/file/vscode.typescript-language-features-1.44.2.vsix"
226
- },
227
- {
228
- "loc": "vscode.vb-1.44.2.vsix",
229
- "name": "vscode.vb@1.44.2",
230
- "url": "https://open-vsx.org/api/vscode/vb/1.44.2/file/vscode.vb-1.44.2.vsix"
231
- },
232
- {
233
- "loc": "vscode.xml-1.44.2.vsix",
234
- "name": "vscode.xml@1.44.2",
235
- "url": "https://open-vsx.org/api/vscode/xml/1.44.2/file/vscode.xml-1.44.2.vsix"
236
- },
237
- {
238
- "loc": "vscode.yaml-1.44.2.vsix",
239
- "name": "vscode.yaml@1.44.2",
240
- "url": "https://open-vsx.org/api/vscode/yaml/1.44.2/file/vscode.yaml-1.44.2.vsix"
241
- },
242
- {
243
- "loc": "redhat.java-0.75.0.vsix",
244
- "name": "redhat.java@0.75.0",
245
- "url": "https://open-vsx.org/api/redhat/java/0.75.0/file/redhat.java-0.75.0.vsix"
246
- },
247
- {
248
- "loc": "vscjava.vscode-java-debug-0.27.1.vsix",
249
- "name": "vscjava.vscode-java-debug@0.27.1",
250
- "url": "https://open-vsx.org/api/vscjava/vscode-java-debug/0.27.1/file/vscjava.vscode-java-debug-0.27.1.vsix"
251
- },
252
- {
253
- "loc": "vscjava.vscode-java-dependency-0.18.0.vsix",
254
- "name": "vscjava.vscode-java-dependency@0.18.0",
255
- "url": "https://open-vsx.org/api/vscjava/vscode-java-dependency/0.18.0/file/vscjava.vscode-java-dependency-0.18.0.vsix"
256
- },
257
- {
258
- "loc": "ms-vscode.node-debug-1.38.4.vsix",
259
- "name": "ms-vscode.node-debug@1.38.4",
260
- "url": "https://open-vsx.org/api/ms-vscode/node-debug/1.38.4/file/ms-vscode.node-debug-1.38.4.vsix"
261
- },
262
- {
263
- "loc": "ms-vscode.node-debug2-1.33.0.vsix",
264
- "name": "ms-vscode.node-debug2@1.33.0",
265
- "url": "https://open-vsx.org/api/ms-vscode/node-debug2/1.33.0/file/ms-vscode.node-debug2-1.33.0.vsix"
266
- },
267
- {
268
- "loc": "ms-python.python-2020.7.96456.vsix",
269
- "name": "ms-python.python@2020.7.96456",
270
- "url": "https://open-vsx.org/api/ms-python/python/2020.7.96456/file/ms-python.python-2020.7.96456.vsix"
271
- },
272
- {
273
- "loc": "golang.Go-0.14.4.vsix",
274
- "name": "golang.Go@0.14.4",
275
- "url": "https://open-vsx.org/api/golang/Go/0.14.4/file/golang.Go-0.14.4.vsix"
276
- },
277
- {
278
- "loc": "redhat.vscode-xml-0.11.0.vsix",
279
- "name": "redhat.vscode-xml@0.11.0",
280
- "url": "https://open-vsx.org/api/redhat/vscode-xml/0.11.0/file/redhat.vscode-xml-0.11.0.vsix"
281
- },
282
- {
283
- "loc": "redhat.vscode-yaml-0.8.0.vsix",
284
- "name": "redhat.vscode-yaml@0.8.0",
285
- "url": "https://open-vsx.org/api/redhat/vscode-yaml/0.8.0/file/redhat.vscode-yaml-0.8.0.vsix"
286
- },
287
- {
288
- "loc": "bmewburn.vscode-intelephense-client-1.4.0.vsix",
289
- "name": "bmewburn.vscode-intelephense-client@1.4.0",
290
- "url": "https://open-vsx.org/api/bmewburn/vscode-intelephense-client/1.4.0/file/bmewburn.vscode-intelephense-client-1.4.0.vsix"
291
- },
292
- {
293
- "loc": "felixfbecker.php-debug-1.13.0.vsix",
294
- "name": "felixfbecker.php-debug@1.13.0",
295
- "url": "https://open-vsx.org/api/felixfbecker/php-debug/1.13.0/file/felixfbecker.php-debug-1.13.0.vsix"
296
- },
297
- {
298
- "loc": "rust-lang.rust-0.7.8.vsix",
299
- "name": "rust-lang.rust@0.7.8",
300
- "url": "https://open-vsx.org/api/rust-lang/rust/0.7.8/file/rust-lang.rust-0.7.8.vsix"
301
- },
302
- {
303
- "loc": "vscode.theme-abyss-1.44.2.vsix",
304
- "name": "vscode.theme-abyss@1.44.2",
305
- "url": "https://open-vsx.org/api/vscode/theme-abyss/1.44.2/file/vscode.theme-abyss-1.44.2.vsix"
306
- },
307
- {
308
- "loc": "vscode.theme-kimbie-dark-1.44.2.vsix",
309
- "name": "vscode.theme-kimbie-dark@1.44.2",
310
- "url": "https://open-vsx.org/api/vscode/theme-kimbie-dark/1.44.2/file/vscode.theme-kimbie-dark-1.44.2.vsix"
311
- },
312
- {
313
- "loc": "vscode.theme-monokai-1.44.2.vsix",
314
- "name": "vscode.theme-monokai@1.44.2",
315
- "url": "https://open-vsx.org/api/vscode/theme-monokai/1.44.2/file/vscode.theme-monokai-1.44.2.vsix"
316
- },
317
- {
318
- "loc": "vscode.theme-monokai-dimmed-1.44.2.vsix",
319
- "name": "vscode.theme-monokai-dimmed@1.44.2",
320
- "url": "https://open-vsx.org/api/vscode/theme-monokai-dimmed/1.44.2/file/vscode.theme-monokai-dimmed-1.44.2.vsix"
321
- },
322
- {
323
- "loc": "vscode.theme-quietlight-1.44.2.vsix",
324
- "name": "vscode.theme-quietlight@1.44.2",
325
- "url": "https://open-vsx.org/api/vscode/theme-quietlight/1.44.2/file/vscode.theme-quietlight-1.44.2.vsix"
326
- },
327
- {
328
- "loc": "vscode.theme-red-1.44.2.vsix",
329
- "name": "vscode.theme-red@1.44.2",
330
- "url": "https://open-vsx.org/api/vscode/theme-red/1.44.2/file/vscode.theme-red-1.44.2.vsix"
331
- },
332
- {
333
- "loc": "vscode.theme-solarized-dark-1.44.2.vsix",
334
- "name": "vscode.theme-solarized-dark@1.44.2",
335
- "url": "https://open-vsx.org/api/vscode/theme-solarized-dark/1.44.2/file/vscode.theme-solarized-dark-1.44.2.vsix"
336
- },
337
- {
338
- "loc": "vscode.theme-solarized-light-1.44.2.vsix",
339
- "name": "vscode.theme-solarized-light@1.44.2",
340
- "url": "https://open-vsx.org/api/vscode/theme-solarized-light/1.44.2/file/vscode.theme-solarized-light-1.44.2.vsix"
341
- },
342
- {
343
- "loc": "vscode.theme-tomorrow-night-blue-1.44.2.vsix",
344
- "name": "vscode.theme-tomorrow-night-blue@1.44.2",
345
- "url": "https://open-vsx.org/api/vscode/theme-tomorrow-night-blue/1.44.2/file/vscode.theme-tomorrow-night-blue-1.44.2.vsix"
346
- },
347
- {
348
- "loc": "vscode.vscode-theme-seti-1.44.2.vsix",
349
- "name": "vscode.vscode-theme-seti@1.44.2",
350
- "url": "https://open-vsx.org/api/vscode/vscode-theme-seti/1.44.2/file/vscode.vscode-theme-seti-1.44.2.vsix"
351
- },
352
- {
353
- "loc": "vscode.merge-conflict-1.44.2.vsix",
354
- "name": "vscode.merge-conflict@1.44.2",
355
- "url": "https://open-vsx.org/api/vscode/merge-conflict/1.44.2/file/vscode.merge-conflict-1.44.2.vsix"
356
- },
357
- {
358
- "loc": "references-view-0.0.47.vsix",
359
- "name": "ms-vscode.references-view@0.0.47",
360
- "url": "https://open-vsx.org/api/ms-vscode/references-view/0.0.47/file/ms-vscode.references-view-0.0.47.vsix"
361
- },
362
- {
363
- "loc": "EditorConfig.EditorConfig-0.15.1.vsix",
364
- "name": "EditorConfig.EditorConfig@0.15.1",
365
- "url": "https://open-vsx.org/api/EditorConfig/EditorConfig/0.15.1/file/EditorConfig.EditorConfig-0.15.1.vsix"
366
- },
367
- {
368
- "loc": "vscode.docker-1.47.3.vsix",
369
- "name": "vscode.docker@1.47.3",
370
- "url": "https://open-vsx.org/api/vscode/docker/1.47.3/file/vscode.docker-1.47.3.vsix"
371
- }
372
- ]
@@ -1,27 +0,0 @@
1
- import { Message } from "vscode-jsonrpc";
2
- export interface ResolvedConnectionErrorHandlerOptions {
3
- readonly serverName: string;
4
- /**
5
- * The maximum amount of errors allowed before stopping the server.
6
- */
7
- readonly maxErrors: number;
8
- /**
9
- * The maimum amount of restarts allowed in the restart interval.
10
- */
11
- readonly maxRestarts: number;
12
- /**
13
- * In minutes.
14
- */
15
- readonly restartInterval: number;
16
- }
17
- export declare type ConnectionErrorHandlerOptions = Partial<ResolvedConnectionErrorHandlerOptions> & {
18
- readonly serverName: string;
19
- };
20
- export declare class ConnectionErrorHandler {
21
- protected readonly options: ResolvedConnectionErrorHandlerOptions;
22
- constructor(options: ConnectionErrorHandlerOptions);
23
- shouldStop(error: Error, message?: Message, count?: number): boolean;
24
- protected readonly restarts: number[];
25
- shouldRestart(): boolean;
26
- }
27
- //# sourceMappingURL=connection-error-handler.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"connection-error-handler.d.ts","sourceRoot":"","sources":["../../src/messaging/connection-error-handler.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC,MAAM,WAAW,qCAAqC;IAClD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B;;OAEG;IACH,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;CACnC;AAED,oBAAY,6BAA6B,GAAG,OAAO,CAAC,qCAAqC,CAAC,GAAG;IACzF,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAC9B,CAAC;AAEF,qBAAa,sBAAsB;IAE/B,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,qCAAqC,CAAC;gBACtD,OAAO,EAAE,6BAA6B;IASlD,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO;IAIpE,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAM;IAC3C,aAAa,IAAI,OAAO;CAc3B"}