Skip to content

Commit c0c896b

Browse files
authored
fix(cli): update typescript-go to 2026-03-09 (#32656)
1 parent 0895897 commit c0c896b

33 files changed

+1865
-589
lines changed

cli/build.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ fn compress_decls(out_dir: &Path) {
2626
"lib.deno_cache.d.ts",
2727
"lib.deno_net.d.ts",
2828
"lib.deno_broadcast_channel.d.ts",
29-
"lib.temporal.d.ts",
3029
"lib.decorators.d.ts",
3130
"lib.decorators.legacy.d.ts",
3231
"lib.dom.asynciterable.d.ts",
@@ -108,11 +107,20 @@ fn compress_decls(out_dir: &Path) {
108107
"lib.es2024.regexp.d.ts",
109108
"lib.es2024.sharedmemory.d.ts",
110109
"lib.es2024.string.d.ts",
110+
"lib.es2025.collection.d.ts",
111+
"lib.es2025.d.ts",
112+
"lib.es2025.float16.d.ts",
113+
"lib.es2025.full.d.ts",
114+
"lib.es2025.intl.d.ts",
115+
"lib.es2025.iterator.d.ts",
116+
"lib.es2025.promise.d.ts",
117+
"lib.es2025.regexp.d.ts",
111118
"lib.es5.d.ts",
112119
"lib.es6.d.ts",
113120
"lib.esnext.array.d.ts",
114121
"lib.esnext.collection.d.ts",
115122
"lib.esnext.d.ts",
123+
"lib.esnext.date.d.ts",
116124
"lib.esnext.decorators.d.ts",
117125
"lib.esnext.disposable.d.ts",
118126
"lib.esnext.error.d.ts",
@@ -122,6 +130,8 @@ fn compress_decls(out_dir: &Path) {
122130
"lib.esnext.iterator.d.ts",
123131
"lib.esnext.promise.d.ts",
124132
"lib.esnext.sharedmemory.d.ts",
133+
"lib.esnext.temporal.d.ts",
134+
"lib.esnext.typedarrays.d.ts",
125135
"lib.node.d.ts",
126136
"lib.scripthost.d.ts",
127137
"lib.webworker.asynciterable.d.ts",

cli/lsp/tsgo.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2047,6 +2047,17 @@ fn normalize_code_action_response(
20472047
response: &mut lsp::CodeActionResponse,
20482048
snapshot: &StateSnapshot,
20492049
) {
2050+
if snapshot.config.client_provided_organize_imports_capable() {
2051+
response.retain(|item| {
2052+
let lsp::CodeActionOrCommand::CodeAction(code_action) = item else {
2053+
return true;
2054+
};
2055+
code_action
2056+
.kind
2057+
.as_ref()
2058+
.is_none_or(|k| k.as_str() != "source.organizeImports")
2059+
});
2060+
}
20502061
for item in response {
20512062
match item {
20522063
lsp::CodeActionOrCommand::CodeAction(code_action) => {

cli/tsc/00_typescript.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40821,6 +40821,7 @@ var libEntries = [
4082140821
["es2022", "lib.es2022.d.ts"],
4082240822
["es2023", "lib.es2023.d.ts"],
4082340823
["es2024", "lib.es2024.d.ts"],
40824+
["es2025", "lib.es2025.d.ts"],
4082440825
["esnext", "lib.esnext.d.ts"],
4082540826
// Host only
4082640827
["dom", "lib.dom.d.ts"],
@@ -40889,6 +40890,13 @@ var libEntries = [
4088940890
["es2024.regexp", "lib.es2024.regexp.d.ts"],
4089040891
["es2024.sharedmemory", "lib.es2024.sharedmemory.d.ts"],
4089140892
["es2024.string", "lib.es2024.string.d.ts"],
40893+
["es2025.collection", "lib.es2025.collection.d.ts"],
40894+
["es2025.float16", "lib.es2025.float16.d.ts"],
40895+
["es2025.full", "lib.es2025.full.d.ts"],
40896+
["es2025.intl", "lib.es2025.intl.d.ts"],
40897+
["es2025.iterator", "lib.es2025.iterator.d.ts"],
40898+
["es2025.promise", "lib.es2025.promise.d.ts"],
40899+
["es2025.regexp", "lib.es2025.regexp.d.ts"],
4089240900
["esnext.array", "lib.es2023.array.d.ts"],
4089340901
["esnext.collection", "lib.esnext.collection.d.ts"],
4089440902
["esnext.symbol", "lib.es2019.symbol.d.ts"],
@@ -40899,6 +40907,7 @@ var libEntries = [
4089940907
["esnext.string", "lib.es2022.string.d.ts"],
4090040908
["esnext.promise", "lib.es2024.promise.d.ts"],
4090140909
["esnext.weakref", "lib.es2021.weakref.d.ts"],
40910+
["esnext.date", "lib.esnext.date.d.ts"],
4090240911
["esnext.decorators", "lib.esnext.decorators.d.ts"],
4090340912
["esnext.object", "lib.es2024.object.d.ts"],
4090440913
["esnext.array", "lib.esnext.array.d.ts"],
@@ -40909,6 +40918,8 @@ var libEntries = [
4090940918
["esnext.float16", "lib.esnext.float16.d.ts"],
4091040919
["esnext.error", "lib.esnext.error.d.ts"],
4091140920
["esnext.sharedmemory", "lib.esnext.sharedmemory.d.ts"],
40921+
["esnext.temporal", "lib.esnext.temporal.d.ts"],
40922+
["esnext.typedarrays", "lib.esnext.typedarrays.d.ts"],
4091240923
["decorators", "lib.decorators.d.ts"],
4091340924
["decorators.legacy", "lib.decorators.legacy.d.ts"]
4091440925
];

cli/tsc/dts/lib.deno.window.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
/// <reference lib="deno.webstorage" />
77
/// <reference lib="esnext" />
88
/// <reference lib="deno.cache" />
9-
/// <reference lib="deno.temporal" />
109

1110
/**
1211
* Defines the mapping between event names and their corresponding event types

cli/tsc/dts/lib.deno.worker.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
/// <reference lib="deno.shared_globals" />
66
/// <reference lib="esnext" />
77
/// <reference lib="deno.cache" />
8-
/// <reference lib="deno.temporal" />
98

109
/**
1110
* Event map for WorkerGlobalScope event handlers.
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
/*! *****************************************************************************
2+
Copyright (c) Microsoft Corporation. All rights reserved.
3+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4+
this file except in compliance with the License. You may obtain a copy of the
5+
License at http://www.apache.org/licenses/LICENSE-2.0
6+
7+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10+
MERCHANTABILITY OR NON-INFRINGEMENT.
11+
12+
See the Apache Version 2.0 License for specific language governing permissions
13+
and limitations under the License.
14+
***************************************************************************** */
15+
16+
17+
/// <reference lib="es2024.collection" />
18+
19+
interface ReadonlySetLike<T> {
20+
/**
21+
* Despite its name, returns an iterator of the values in the set-like.
22+
*/
23+
keys(): Iterator<T>;
24+
/**
25+
* @returns a boolean indicating whether an element with the specified value exists in the set-like or not.
26+
*/
27+
has(value: T): boolean;
28+
/**
29+
* @returns the number of (unique) elements in the set-like.
30+
*/
31+
readonly size: number;
32+
}
33+
34+
interface Set<T> {
35+
/**
36+
* @returns a new Set containing all the elements in this Set and also all the elements in the argument.
37+
*/
38+
union<U>(other: ReadonlySetLike<U>): Set<T | U>;
39+
/**
40+
* @returns a new Set containing all the elements which are both in this Set and in the argument.
41+
*/
42+
intersection<U>(other: ReadonlySetLike<U>): Set<T & U>;
43+
/**
44+
* @returns a new Set containing all the elements in this Set which are not also in the argument.
45+
*/
46+
difference<U>(other: ReadonlySetLike<U>): Set<T>;
47+
/**
48+
* @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both.
49+
*/
50+
symmetricDifference<U>(other: ReadonlySetLike<U>): Set<T | U>;
51+
/**
52+
* @returns a boolean indicating whether all the elements in this Set are also in the argument.
53+
*/
54+
isSubsetOf(other: ReadonlySetLike<unknown>): boolean;
55+
/**
56+
* @returns a boolean indicating whether all the elements in the argument are also in this Set.
57+
*/
58+
isSupersetOf(other: ReadonlySetLike<unknown>): boolean;
59+
/**
60+
* @returns a boolean indicating whether this Set has no elements in common with the argument.
61+
*/
62+
isDisjointFrom(other: ReadonlySetLike<unknown>): boolean;
63+
}
64+
65+
interface ReadonlySet<T> {
66+
/**
67+
* @returns a new Set containing all the elements in this Set and also all the elements in the argument.
68+
*/
69+
union<U>(other: ReadonlySetLike<U>): Set<T | U>;
70+
/**
71+
* @returns a new Set containing all the elements which are both in this Set and in the argument.
72+
*/
73+
intersection<U>(other: ReadonlySetLike<U>): Set<T & U>;
74+
/**
75+
* @returns a new Set containing all the elements in this Set which are not also in the argument.
76+
*/
77+
difference<U>(other: ReadonlySetLike<U>): Set<T>;
78+
/**
79+
* @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both.
80+
*/
81+
symmetricDifference<U>(other: ReadonlySetLike<U>): Set<T | U>;
82+
/**
83+
* @returns a boolean indicating whether all the elements in this Set are also in the argument.
84+
*/
85+
isSubsetOf(other: ReadonlySetLike<unknown>): boolean;
86+
/**
87+
* @returns a boolean indicating whether all the elements in the argument are also in this Set.
88+
*/
89+
isSupersetOf(other: ReadonlySetLike<unknown>): boolean;
90+
/**
91+
* @returns a boolean indicating whether this Set has no elements in common with the argument.
92+
*/
93+
isDisjointFrom(other: ReadonlySetLike<unknown>): boolean;
94+
}

cli/tsc/dts/lib.es2025.d.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*! *****************************************************************************
2+
Copyright (c) Microsoft Corporation. All rights reserved.
3+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4+
this file except in compliance with the License. You may obtain a copy of the
5+
License at http://www.apache.org/licenses/LICENSE-2.0
6+
7+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10+
MERCHANTABILITY OR NON-INFRINGEMENT.
11+
12+
See the Apache Version 2.0 License for specific language governing permissions
13+
and limitations under the License.
14+
***************************************************************************** */
15+
16+
17+
/// <reference lib="es2024" />
18+
/// <reference lib="es2025.collection" />
19+
/// <reference lib="es2025.float16" />
20+
/// <reference lib="es2025.intl" />
21+
/// <reference lib="es2025.iterator" />
22+
/// <reference lib="es2025.promise" />
23+
/// <reference lib="es2025.regexp" />

0 commit comments

Comments
 (0)