@disintegrator/raven-paseo 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/OVERVIEW.md +3 -3
- package/THIRD-PARTY-NOTICES.md +883 -1
- package/client/index.js +21519 -6051
- package/client/index.js.map +8 -20
- package/package.json +1 -1
- package/server/index.js +11 -7
- package/server/index.js.map +6 -6
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -1634,7 +1634,8 @@ var PreciseAnswer = z.object({
|
|
|
1634
1634
|
result: NavResult.optional(),
|
|
1635
1635
|
server: z.string().optional(),
|
|
1636
1636
|
note: z.string().optional(),
|
|
1637
|
-
own: z.string().optional()
|
|
1637
|
+
own: z.string().optional(),
|
|
1638
|
+
fault: z.boolean().optional()
|
|
1638
1639
|
});
|
|
1639
1640
|
var LspServer = z.object({
|
|
1640
1641
|
name: z.string(),
|
|
@@ -3155,7 +3156,7 @@ class Session {
|
|
|
3155
3156
|
this.child.on("error", (err) => this.end(`${basename(init.command.bin)} could not be started: ${err.message}`));
|
|
3156
3157
|
const gone = (code, signal) => {
|
|
3157
3158
|
const how = signal ? `was stopped by ${signal}` : `exited with code ${code}`;
|
|
3158
|
-
const said = this.stderr.
|
|
3159
|
+
const said = this.stderr.slice(-5).join(" ").slice(0, 500);
|
|
3159
3160
|
this.end(`${basename(init.command.bin)} ${how}${said ? `: ${said}` : ""}`);
|
|
3160
3161
|
};
|
|
3161
3162
|
this.child.on("exit", (code, signal) => {
|
|
@@ -3378,10 +3379,12 @@ class Session {
|
|
|
3378
3379
|
// packages/core/src/lsp/broker.ts
|
|
3379
3380
|
class Unavailable extends Error {
|
|
3380
3381
|
own;
|
|
3381
|
-
|
|
3382
|
+
fault;
|
|
3383
|
+
constructor(message, own, fault = false) {
|
|
3382
3384
|
super(message);
|
|
3383
3385
|
this.name = "Unavailable";
|
|
3384
3386
|
this.own = own;
|
|
3387
|
+
this.fault = fault;
|
|
3385
3388
|
}
|
|
3386
3389
|
}
|
|
3387
3390
|
var MISSING_RETRY_MS = 30000;
|
|
@@ -3465,7 +3468,7 @@ class Broker {
|
|
|
3465
3468
|
const refusal = this.refused.get(key);
|
|
3466
3469
|
if (refusal) {
|
|
3467
3470
|
if (refusal.until > Date.now())
|
|
3468
|
-
throw new Unavailable(refusal.reason, refusal.own);
|
|
3471
|
+
throw new Unavailable(refusal.reason, refusal.own, !refusal.own);
|
|
3469
3472
|
this.refused.delete(key);
|
|
3470
3473
|
}
|
|
3471
3474
|
let start = this.starting.get(key);
|
|
@@ -3477,7 +3480,7 @@ class Broker {
|
|
|
3477
3480
|
}
|
|
3478
3481
|
refuse(key, spec, folder, kind, reason, forMs, own) {
|
|
3479
3482
|
this.refused.set(key, { name: spec.name, folder, kind, reason, until: Date.now() + forMs, ...own ? { own } : {} });
|
|
3480
|
-
return new Unavailable(reason, own);
|
|
3483
|
+
return new Unavailable(reason, own, !own);
|
|
3481
3484
|
}
|
|
3482
3485
|
async reconsider(repoRoot, allowed) {
|
|
3483
3486
|
const inside = (folder) => folder === repoRoot || folder.startsWith(`${repoRoot}/`);
|
|
@@ -9006,7 +9009,8 @@ class ReviewEngine {
|
|
|
9006
9009
|
entries.delete(key);
|
|
9007
9010
|
const err = entry.error;
|
|
9008
9011
|
const note = err instanceof Unavailable ? err.message : `The language server could not answer: ${err instanceof Error ? err.message : String(err)}`;
|
|
9009
|
-
|
|
9012
|
+
const fault = err instanceof Unavailable ? err.fault : true;
|
|
9013
|
+
return { status: "unavailable", note, ...server, ...err instanceof Unavailable && err.own ? { own: err.own } : {}, ...fault ? { fault } : {} };
|
|
9010
9014
|
}
|
|
9011
9015
|
const doing = entry.session ? entry.session.busy() : "Starting";
|
|
9012
9016
|
return { status: "pending", ...server, ...doing ? { note: doing } : {} };
|
|
@@ -9603,5 +9607,5 @@ export {
|
|
|
9603
9607
|
contribute as default
|
|
9604
9608
|
};
|
|
9605
9609
|
|
|
9606
|
-
//# debugId=
|
|
9610
|
+
//# debugId=5148D0B0B4A5F32F64756E2164756E21
|
|
9607
9611
|
//# sourceMappingURL=index.js.map
|