Skip to content

Commit df6851f

Browse files
committed
Merge branch 'main' into api
2 parents 9c25263 + 3ab630d commit df6851f

File tree

152 files changed

+24
-5
lines changed

Some content is hidden

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

152 files changed

+24
-5
lines changed

.github/workflows/codeql.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
# Initializes the CodeQL tools for scanning.
5050
- name: Initialize CodeQL
51-
uses: github/codeql-action/init@5f8171a638ada777af81d42b55959a643bb29017 # v3.28.12
51+
uses: github/codeql-action/init@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
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@5f8171a638ada777af81d42b55959a643bb29017 # v3.28.12
61+
uses: github/codeql-action/autobuild@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
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@5f8171a638ada777af81d42b55959a643bb29017 # v3.28.12
75+
uses: github/codeql-action/analyze@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13

internal/testrunner/compiler_runner.go

+19-1
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ func (c *compilerTest) verifyDiagnostics(t *testing.T, suiteName string, isSubmo
341341
tsbaseline.DoErrorBaseline(t, c.configuredName, files, c.result.Diagnostics, c.result.Options.Pretty.IsTrue(), baseline.Options{
342342
Subfolder: suiteName,
343343
IsSubmodule: isSubmodule,
344-
IsSubmoduleAccepted: len(c.result.Program.UnsupportedExtensions()) != 0, // TODO(jakebailey): read submoduleAccepted.txt
344+
IsSubmoduleAccepted: c.containsUnsupportedOptions(),
345345
})
346346
})
347347
}
@@ -434,3 +434,21 @@ func (c *compilerTest) verifyUnionOrdering(t *testing.T) {
434434
}
435435
})
436436
}
437+
438+
func (c *compilerTest) containsUnsupportedOptions() bool {
439+
if len(c.result.Program.UnsupportedExtensions()) != 0 {
440+
return true
441+
}
442+
switch c.options.GetEmitModuleKind() {
443+
case core.ModuleKindAMD, core.ModuleKindUMD, core.ModuleKindSystem:
444+
return true
445+
}
446+
if c.options.BaseUrl != "" {
447+
return true
448+
}
449+
if c.options.RootDirs != nil {
450+
return true
451+
}
452+
453+
return false
454+
}

internal/tsoptions/tsconfigparsing.go

-1
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,6 @@ func removeWildcardFilesWithLowerPriorityExtension(file string, wildcardFiles co
14231423
// options is the Compiler options.
14241424
// host is the host used to resolve files and directories.
14251425
// extraFileExtensions optionally file extra file extension information from host
1426-
14271426
func getFileNamesFromConfigSpecs(
14281427
configFileSpecs configFileSpecs,
14291428
basePath string, // considering this is the current directory

testdata/submoduleAccepted.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
# Diff files to instead write to submoduleAccepted as "accepted" changes.
2+
conformance/node10Alternateresult_noTypes.errors.txt.diff
3+
conformance/node10AlternateResult_noResolution.errors.txt.diff

0 commit comments

Comments
 (0)