summaryrefslogtreecommitdiff
path: root/cli/tsc/99_main_compiler.js
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-04-14 20:07:04 -0400
committerGitHub <noreply@github.com>2024-04-15 00:07:04 +0000
commit1835b4f06189560eb17a103b8db05e011a7cd799 (patch)
treed4cdda015ca39e861d1a1fdc9fbb843ec02c35a2 /cli/tsc/99_main_compiler.js
parent8f1a92f3c39a4db7582824944d2c9319a11efcc0 (diff)
fix(lsp): ensure project version is incremented when config changes (#23366)
I'm running into a node resolution bug in the lsp only and while tracking it down I noticed this one. Fixed by moving the project version out of `Documents`.
Diffstat (limited to 'cli/tsc/99_main_compiler.js')
-rw-r--r--cli/tsc/99_main_compiler.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js
index 274fc1cca..be9962814 100644
--- a/cli/tsc/99_main_compiler.js
+++ b/cli/tsc/99_main_compiler.js
@@ -165,7 +165,7 @@ delete Object.prototype.__proto__;
/** @type {ts.CompilerOptions | null} */
let tsConfigCache = null;
- /** @type {string | null} */
+ /** @type {number | null} */
let projectVersionCache = null;
const ChangeKind = {
@@ -1039,7 +1039,7 @@ delete Object.prototype.__proto__;
case "$projectChanged": {
/** @type {[string, number][]} */
const changedScripts = args[0];
- /** @type {string} */
+ /** @type {number} */
const newProjectVersion = args[1];
/** @type {boolean} */
const configChanged = args[2];