Skip to content

Commit 8bbf3c5

Browse files
committed
Merge branch 'main' into copilot/fix-weakened-error-glitch
2 parents d6e3417 + 6b60f4a commit 8bbf3c5

File tree

2,116 files changed

+658986
-14075
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,116 files changed

+658986
-14075
lines changed

.custom-gcl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# yaml-language-server: $schema=https://golangci-lint.run/jsonschema/custom-gcl.jsonschema.json
22

3-
version: v2.6.0
3+
version: v2.6.2
44

55
destination: ./_tools
66

.dprint.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
// Note: if adding new languages, make sure settings.template.json is updated too.
5959
// Also, if updating typescript, update the one in package.json.
6060
"plugins": [
61-
"https://plugins.dprint.dev/typescript-0.95.11.wasm",
62-
"https://plugins.dprint.dev/json-0.20.0.wasm",
61+
"https://plugins.dprint.dev/typescript-0.95.12.wasm",
62+
"https://plugins.dprint.dev/json-0.21.0.wasm",
6363
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.1.wasm",
6464
"https://plugins.dprint.dev/exec-0.6.0.json@a054130d458f124f9b5c91484833828950723a5af3f8ff2bd1523bd47b83b364"
6565
]

.github/ISSUE_TEMPLATE/02-behavior-difference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Behavior Difference
3-
about: tsgo produces different results than TypeScript 5.8
3+
about: tsgo produces different results than TypeScript 5.9
44
title: ''
55
labels: ''
66
assignees: ''
@@ -11,6 +11,6 @@ assignees: ''
1111

1212
<!-- Share a repository link or a code sample -->
1313

14-
## Behavior with `typescript@5.8`
14+
## Behavior with `typescript@5.9`
1515

1616
## Behavior with `tsgo`

.github/actions/setup-go/action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ runs:
4646
}
4747
Write-Host "✓ Verified: Microsoft Go is active"
4848
49+
- name: Add GOBIN to PATH
50+
shell: bash
51+
run: |
52+
GOBIN=$(go env GOBIN)
53+
if [ -z "$GOBIN" ]; then
54+
GOBIN="$(go env GOPATH)/bin"
55+
fi
56+
echo "$GOBIN" >> $GITHUB_PATH
57+
4958
# Avoid hardcoding the cache keys more than once.
5059
- name: Get cache info
5160
shell: bash

.github/copilot-instructions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,4 @@ The TypeScript submodule serves as the reference implementation for behavior and
110110

111111
- Do not add or change existing dependencies unless asked to.
112112
- Do not remove any debug assertions or panic calls. Existing assertions are never too strict or incorrect.
113+
- Do not use the `timeout` command when running tests or other commands, unless specifically debugging a hanging issue. Commands should be run directly without timeout wrappers in normal operation.

.github/workflows/ci.yml

Lines changed: 41 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
build:
2525
runs-on: ubuntu-latest
2626
steps:
27-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
27+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
2828
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
2929
- uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable
3030
- uses: ./.github/actions/setup-go
@@ -44,7 +44,7 @@ jobs:
4444
extension:
4545
runs-on: ubuntu-latest
4646
steps:
47-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
47+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
4848
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
4949
- uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable
5050

@@ -99,10 +99,17 @@ jobs:
9999
TSGO_HEREBY_COVERAGE: ${{ (matrix.config.coverage && 'true') || 'false' }}
100100

101101
steps:
102+
- uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
103+
with:
104+
large-packages: false
105+
docker-images: false
106+
swap-storage: false
107+
dotnet: false
108+
102109
- run: git config --system core.longpaths true
103110
if: ${{ matrix.config.os == 'windows-latest' }}
104111

105-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
112+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
106113
with:
107114
submodules: ${{ !matrix.config.no-submodules }}
108115
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
@@ -191,7 +198,13 @@ jobs:
191198
TSGO_HEREBY_NOEMBED: ${{ (matrix.config.noembed && 'true') || 'false' }}
192199

193200
steps:
194-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
201+
- uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
202+
with:
203+
large-packages: false
204+
docker-images: false
205+
swap-storage: false
206+
dotnet: false
207+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
195208
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
196209
- uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable
197210
- uses: ./.github/actions/setup-go
@@ -214,7 +227,7 @@ jobs:
214227
format:
215228
runs-on: ubuntu-latest
216229
steps:
217-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
230+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
218231
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
219232
- uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable
220233
- uses: ./.github/actions/setup-go
@@ -226,7 +239,13 @@ jobs:
226239
generate:
227240
runs-on: ubuntu-latest
228241
steps:
229-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
242+
- uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
243+
with:
244+
large-packages: false
245+
docker-images: false
246+
swap-storage: false
247+
dotnet: false
248+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
230249
with:
231250
submodules: true
232251
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
@@ -244,23 +263,25 @@ jobs:
244263

245264
- name: Regenerate fourslash tests and update failing test list
246265
run: |
266+
set -x
247267
echo "" > ./internal/fourslash/_scripts/failingTests.txt
248-
npm run convertfourslash || true
249-
npx hereby test || true
268+
npm run convertfourslash >/dev/null 2>&1 || true
269+
npx hereby test >/dev/null || true
250270
npx hereby baseline-accept || true
251-
npm run updatefailing || true
271+
npm run updatefailing >/dev/null 2>&1 || true
252272
npx hereby baseline-accept || true
253273
rm -rf testdata/baselines/reference/fourslash || true
254-
npx hereby test || true
274+
npx hereby test >/dev/null || true
255275
npx hereby baseline-accept || true
276+
npx hereby test || true
256277
257278
- run: git add .
258279
- run: git diff --staged --exit-code --stat
259280

260281
tidy:
261282
runs-on: ubuntu-latest
262283
steps:
263-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
284+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
264285
- uses: ./.github/actions/setup-go
265286

266287
- run: go mod tidy -diff
@@ -269,7 +290,7 @@ jobs:
269290
smoke:
270291
runs-on: ubuntu-latest
271292
steps:
272-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
293+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
273294
with:
274295
submodules: true
275296
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
@@ -297,15 +318,21 @@ jobs:
297318
misc:
298319
runs-on: ubuntu-latest
299320
steps:
300-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
321+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
301322
- uses: ./.github/actions/setup-go
302323

303324
- run: go -C ./_tools run ./cmd/checkmodpaths $PWD
304325

305326
baselines:
306327
runs-on: ubuntu-latest
307328
steps:
308-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
329+
- uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
330+
with:
331+
large-packages: false
332+
docker-images: false
333+
swap-storage: false
334+
dotnet: false
335+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
309336
with:
310337
submodules: true
311338
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ jobs:
4444

4545
steps:
4646
- name: Checkout repository
47-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
47+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
4848

4949
# Initializes the CodeQL tools for scanning.
5050
- name: Initialize CodeQL
51-
uses: github/codeql-action/init@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
51+
uses: github/codeql-action/init@fe4161a26a8629af62121b670040955b330f9af2 # v4.31.6
5252
with:
5353
config-file: ./.github/codeql/codeql-configuration.yml
5454
# Override language selection by uncommenting this and choosing your languages
@@ -58,7 +58,7 @@ jobs:
5858
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5959
# If this step fails, then you should remove it and run the build manually (see below).
6060
- name: Autobuild
61-
uses: github/codeql-action/autobuild@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
61+
uses: github/codeql-action/autobuild@fe4161a26a8629af62121b670040955b330f9af2 # v4.31.6
6262

6363
# ℹ️ Command-line programs to run using the OS shell.
6464
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -72,4 +72,4 @@ jobs:
7272
# make release
7373

7474
- name: Perform CodeQL Analysis
75-
uses: github/codeql-action/analyze@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
75+
uses: github/codeql-action/analyze@fe4161a26a8629af62121b670040955b330f9af2 # v4.31.6

.github/workflows/copilot-setup-steps.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,24 @@ jobs:
1616
# You can define any steps you want, and they will run before the agent starts.
1717
# If you do not check out your code, Copilot will do this for you.
1818
steps:
19-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
19+
- uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
20+
with:
21+
large-packages: false
22+
docker-images: false
23+
swap-storage: false
24+
dotnet: false
25+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
2026
with:
2127
submodules: true
2228
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
29+
with:
30+
node-version: '>=22.16.0'
2331
- uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable
2432
- uses: ./.github/actions/setup-go
2533
with:
2634
lint-cache: 'true'
2735
- run: npm i -g @playwright/[email protected]
36+
- run: go install golang.org/x/tools/gopls@latest
2837
- run: npm ci
2938
# pull dprint caches before network access is blocked
3039
- run: npx hereby check:format || true

.github/workflows/create-cache.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,17 @@ jobs:
3333
runs-on: ${{ matrix.os }}
3434

3535
steps:
36+
- uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
37+
with:
38+
large-packages: false
39+
docker-images: false
40+
swap-storage: false
41+
dotnet: false
42+
3643
- run: git config --system core.longpaths true
3744
if: ${{ matrix.os == 'windows-latest' }}
3845

39-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
46+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
4047
with:
4148
submodules: true
4249
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0

.vscode/launch.template.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
"name": "Launch VS Code extension",
99
"runtimeExecutable": "${execPath}",
1010
"args": [
11-
"--disable-extension=vscode.typescript-language-features",
12-
"--disable-extension=ms-vscode.vscode-typescript-next",
1311
"--extensionDevelopmentPath=${workspaceRoot}/_extension"
1412
],
1513
"outFiles": [

0 commit comments

Comments
 (0)