Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
1ce1c51
Port "Infer from annotated return type nodes before assigning context…
Andarist Oct 3, 2025
986c3dd
Port "make exported destructured discriminated union narrowing work" …
Andarist Oct 3, 2025
2a336d0
Implement more of doc highlights / find all refs (#1796)
jakebailey Oct 3, 2025
9ba3656
Port "Provide string completions for `in` keyword checks" (#1803)
Andarist Oct 3, 2025
45dcb56
Port "Fix #61098" (#1810)
Andarist Oct 3, 2025
4fb58be
Port "fix(61258): Renaming namespace with const enum doesn't update e…
Andarist Oct 3, 2025
d61e471
Update dependencies (#1785)
jakebailey Oct 3, 2025
bc91dd8
Mark libReplacement default as false (#1812)
jakebailey Oct 3, 2025
e729a0a
Port "Deemphasize old JSX transform" (#1809)
Andarist Oct 3, 2025
fb840bc
Port "fix(checker): report error when using bigint as enum key" (#1814)
Andarist Oct 4, 2025
37034f6
Port "explicitly disallow `using` in ambient contexts" (#1815)
Andarist Oct 4, 2025
7c44b44
Port 'Issue "'{0}' declarations can only be declared inside a block."…
Andarist Oct 4, 2025
117a38c
Port "Avoid resolving source prop type when the target is `unknown`/`…
Andarist Oct 4, 2025
cc68740
Port "Allow trailing commas after import attributes in `ImportType`" …
Andarist Oct 4, 2025
6b181df
Port "Fix BigInt literal error in ambient contexts when targeting < E…
Andarist Oct 4, 2025
94ae2f2
Port "Stop reassigning `.valueDeclaration` to avoid replacing earlier…
Andarist Oct 4, 2025
647f179
Port "Keep accessors as accessors in emitted anonymous class declarat…
Andarist Oct 4, 2025
8d7a88e
Port "Fixed crash in `hasVisibleDeclarations` related to binding elem…
Andarist Oct 4, 2025
0d5af99
Port "Properly disallow `yield` in bodyless arrows" (#1825)
Andarist Oct 5, 2025
ed2d8c9
Port "Account for right operands & fix a weird error message for left…
Andarist Oct 5, 2025
5595106
Remove JSDoc handling from the binder (#1827)
Andarist Oct 5, 2025
8cf32b4
Port "`arguments` should not be allowed in class static block" (#1828)
Andarist Oct 5, 2025
912f193
Port "check usage before declaration for decorators" (#1829)
Andarist Oct 6, 2025
59f12cf
Fix nil pointer dereference in snapshotFS.GetFile for non-existent fi…
dyxushuai Oct 6, 2025
054871a
Fix translation bug causing `unknown` infer-extends constraint to be …
Andarist Oct 6, 2025
0fbc06e
Port "Fixed nullish coalesce operator's precedence" (#1824)
Andarist Oct 6, 2025
28d95bf
Fixed an issue with type params being renamed incorrectly (#1833)
Andarist Oct 6, 2025
ffc34e9
Port "Add support for `import defer` proposal" (#1826)
Andarist Oct 6, 2025
ad297a9
Bump github/codeql-action from 3.30.5 to 3.30.6 in the github-actions…
dependabot[bot] Oct 6, 2025
1f3304f
Port "Preserve type parameter constraint in emitted mapped types whil…
Andarist Oct 6, 2025
1097ac8
Merge main into tsgo-sync
nathanwhit Oct 6, 2025
075930c
disable create-cache ci job
nathanwhit Oct 6, 2025
fd5f6b1
merge fixup
nathanwhit Oct 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .custom-gcl.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=https://golangci-lint.run/jsonschema/custom-gcl.jsonschema.json

version: v2.4.0
version: v2.5.0

destination: ./_tools

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.29.5
uses: github/codeql-action/init@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.29.5
with:
config-file: ./.github/codeql/codeql-configuration.yml
# Override language selection by uncommenting this and choosing your languages
Expand All @@ -58,7 +58,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below).
- name: Autobuild
uses: github/codeql-action/autobuild@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.29.5
uses: github/codeql-action/autobuild@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.29.5

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

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.29.5
uses: github/codeql-action/analyze@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.29.5
96 changes: 48 additions & 48 deletions .github/workflows/create-cache.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
name: Create CI cache

on:
workflow_dispatch:
push:
branches:
- main
schedule:
# Run every day at 10:00 UTC / 03:00 PST
- cron: '0 10 * * *'

permissions:
contents: read

# Ensure scripts are run with pipefail. See:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
defaults:
run:
shell: bash

jobs:
cache:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
go-version:
- '>=1.25.0'

runs-on: ${{ matrix.os }}

steps:
- run: git config --system core.longpaths true
if: ${{ matrix.os == 'windows-latest' }}

- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
submodules: true
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
- uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable

- uses: ./.github/actions/setup-go
with:
go-version: ${{ matrix.go-version }}
create: 'true'
# name: Create CI cache

# on:
# workflow_dispatch:
# push:
# branches:
# - main
# schedule:
# # Run every day at 10:00 UTC / 03:00 PST
# - cron: '0 10 * * *'

# permissions:
# contents: read

# # Ensure scripts are run with pipefail. See:
# # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
# defaults:
# run:
# shell: bash

# jobs:
# cache:
# strategy:
# fail-fast: false
# matrix:
# os:
# - ubuntu-latest
# - windows-latest
# - macos-latest
# go-version:
# - '>=1.25.0'

# runs-on: ${{ matrix.os }}

# steps:
# - run: git config --system core.longpaths true
# if: ${{ matrix.os == 'windows-latest' }}

# - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
# with:
# submodules: true
# - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
# - uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable

# - uses: ./.github/actions/setup-go
# with:
# go-version: ${{ matrix.go-version }}
# create: 'true'
2 changes: 1 addition & 1 deletion NOTICE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND

---------------------------------------------------------

github.com/go-json-experiment/json v0.0.0-20250813233538-9b1f9ea2e11b - BSD-3-Clause
github.com/go-json-experiment/json v0.0.0-20250910080747-cc2cfa0554c3 - BSD-3-Clause


Copyright 2010 The Go Authors
Expand Down
4 changes: 2 additions & 2 deletions _extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
},
"devDependencies": {
"@types/vscode": "^1.100.0",
"@vscode/vsce": "^3.6.0",
"esbuild": "^0.25.8"
"@vscode/vsce": "^3.6.2",
"esbuild": "^0.25.10"
}
}
13 changes: 12 additions & 1 deletion _packages/api/src/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,6 @@ export class RemoteNode extends RemoteNodeBase implements Node {
get isTypeOnly(): boolean | undefined {
switch (this.kind) {
case SyntaxKind.ImportSpecifier:
case SyntaxKind.ImportClause:
case SyntaxKind.ExportSpecifier:
case SyntaxKind.ImportEqualsDeclaration:
case SyntaxKind.ExportDeclaration:
Expand Down Expand Up @@ -921,6 +920,18 @@ export class RemoteNode extends RemoteNodeBase implements Node {
}
}

get phaseModifier(): SyntaxKind {
switch (this.kind) {
case SyntaxKind.ImportClause:
const flags = (this.data & (1 << 24 | 1 << 25)) >> 24;
if (flags & 1) return SyntaxKind.TypeKeyword;
if (flags & 2) return SyntaxKind.DeferKeyword;
// fallthrough
default:
return SyntaxKind.Unknown;
}
}

get token(): SyntaxKind | undefined {
switch (this.kind) {
case SyntaxKind.ImportAttributes:
Expand Down
7 changes: 6 additions & 1 deletion _packages/ast/src/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1992,11 +1992,16 @@ export type NamedExportBindings =
export interface ImportClause extends NamedDeclaration {
readonly kind: SyntaxKind.ImportClause;
readonly parent: ImportDeclaration | JSDocImportTag;
readonly isTypeOnly: boolean;
readonly phaseModifier: ImportPhaseModifierSyntaxKind;
readonly name?: Identifier; // Default binding
readonly namedBindings?: NamedImportBindings;
}

export type ImportPhaseModifierSyntaxKind =
| SyntaxKind.Unknown
| SyntaxKind.TypeKeyword
| SyntaxKind.DeferKeyword;

/** @deprecated */
export type AssertionKey = ImportAttributeName;

Expand Down
1 change: 1 addition & 0 deletions _packages/ast/src/syntaxKind.enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ export enum SyntaxKind {
BigIntKeyword,
OverrideKeyword,
OfKeyword,
DeferKeyword,
QualifiedName,
ComputedPropertyName,
TypeParameter,
Expand Down
Loading