@typescript/server-replay
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/microsoft/typescript-server-replay#readme", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "description": "Replay server requests from a file", |
@@ -66,3 +66,3 @@ const sh = require("@typescript/server-harness"); | ||
console.log(e); | ||
process.exit(-1); | ||
process.exit(1); | ||
}); | ||
@@ -121,3 +121,3 @@ | ||
if (unattended) { | ||
process.exit(-2); | ||
process.exit(2); | ||
} | ||
@@ -165,11 +165,17 @@ } | ||
if (unattended) { | ||
process.exit(-3); | ||
process.exit(3); | ||
} | ||
}); | ||
server.on("event", e => { | ||
server.on("event", async e => { | ||
if (e.event === "projectLanguageServiceState" && !e.body.languageServiceEnabled) { | ||
console.log(`Language service disabled for ${e.body.projectName ? path.normalize(e.body.projectName) : "unknown project"}`); | ||
if (unattended) { | ||
process.exit(-5); | ||
try { | ||
await server.message(synthesizedExitRequest); | ||
} | ||
catch { | ||
// Ignore errors during shutdown | ||
} | ||
process.exit(4); | ||
} | ||
@@ -192,3 +198,3 @@ } | ||
} | ||
process.exit(request.seq || -4); | ||
process.exit(5); | ||
} | ||
@@ -195,0 +201,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14088
185