Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _submodules/TypeScript
Submodule TypeScript updated 774 files
2 changes: 1 addition & 1 deletion internal/diagnostics/diagnostics_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion internal/fourslash/_scripts/failingTests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ TestCompletionEntryClassMembersWithInferredFunctionReturnType1
TestCompletionEntryForArgumentConstrainedToString
TestCompletionEntryForArrayElementConstrainedToString
TestCompletionEntryForArrayElementConstrainedToString2
TestCompletionEntryForClassMembers_StaticWhenBaseTypeIsNotResolved
TestCompletionEntryForUnionProperty
TestCompletionEntryForUnionProperty2
TestCompletionForComputedStringProperties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,9 @@ import (

func TestCompletionEntryForClassMembers_StaticWhenBaseTypeIsNotResolved(t *testing.T) {
t.Parallel()
t.Skip()

defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @Filename: /node_modules/@types/react/index.d.ts
export = React;
export as namespace React;
declare namespace React {
function createElement(): any;
interface Component<P = {}, S = {}, SS = any> { }
class Component<P, S> {
static contextType?: any;
context: any;
constructor(props: Readonly<P>);
setState<K extends keyof S>(
state: ((prevState: Readonly<S>, props: Readonly<P>) => (Pick<S, K> | S | null)) | (Pick<S, K> | S | null),
callback?: () => void
): void;
}
}
// @Filename: /a.ts
const content = `// @Filename: /a.ts
import React from 'react'
class Slider extends React.Component {
static defau/**/ltProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ func TestCompletionForStringLiteralNonrelativeImport16(t *testing.T) {
const content = `// @Filename: tsconfig.json
{
"compilerOptions": {
"resolveJsonModule": false,
"baseUrl": "./",
"paths": {
"module1/path1": ["some/path/whatever.ts"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func TestCompletionsImport_umdDefaultNoCrash2(t *testing.T) {
t.Parallel()

defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @moduleResolution: node
const content = `// @moduleResolution: bundler
// @allowJs: true
// @checkJs: true
// @Filename: /node_modules/dottie/package.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func TestCompletionsPathsJsonModuleWithoutResolveJsonModule(t *testing.T) {
t.Parallel()

defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @moduleResolution: node
const content = `// @resolveJsonModule: false
// @Filename: /project/test.json
not read
// @Filename: /project/index.ts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func TestCompletionsPathsJsonModule(t *testing.T) {
t.Parallel()
t.Skip()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @moduleResolution: node
const content = `// @moduleResolution: bundler
// @resolveJsonModule: true
// @Filename: /project/node_modules/test.json
not read
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func TestCompletionsPathsRelativeJsonModule(t *testing.T) {
t.Parallel()
t.Skip()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @moduleResolution: node
const content = `// @moduleResolution: bundler
// @resolveJsonModule: true
// @Filename: /project/test.json
not read
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func TestCompletionsPaths_importType(t *testing.T) {
t.Skip()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @allowJs: true
// @moduleResolution: node
// @moduleResolution: bundler
// @Filename: /ns.ts
file content not read
// @Filename: /node_modules/package/index.ts
Expand Down
54 changes: 0 additions & 54 deletions internal/fourslash/tests/gen/completionsWithDeprecatedTag9_test.go

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func TestExportEqualNamespaceClassESModuleInterop(t *testing.T) {

defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @esModuleInterop: true
// @moduleResolution: node
// @moduleResolution: bundler
// @target: es2015
// @module: esnext
// @Filename: /node_modules/@bar/foo/index.d.ts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func TestFindReferencesBindingPatternInJsdocNoCrash1(t *testing.T) {
t.Parallel()
t.Skip()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @moduleResolution: node
const content = `// @moduleResolution: bundler
// @Filename: node_modules/use-query/package.json
{
"name": "use-query",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func TestFindReferencesBindingPatternInJsdocNoCrash2(t *testing.T) {
t.Parallel()
t.Skip()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @moduleResolution: node
const content = `// @moduleResolution: bundler
// @Filename: node_modules/use-query/package.json
{
"name": "use-query",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ func TestPathCompletionsTypesVersionsWildcard2(t *testing.T) {
t.Skip()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @module: commonjs
// @resolveJsonModule: false
// @Filename: /node_modules/foo/package.json
{
"types": "index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ func TestPathCompletionsTypesVersionsWildcard3(t *testing.T) {
t.Skip()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @module: commonjs
// @resolveJsonModule: false
// @Filename: /node_modules/foo/package.json
{
"types": "index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ func TestPathCompletionsTypesVersionsWildcard4(t *testing.T) {
t.Skip()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @module: commonjs
// @resolveJsonModule: false
// @Filename: /node_modules/foo/package.json
{
"types": "index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// === Auto Imports ===
```ts
// @FileName: /index.ts
{
"import": null/**/
}

``````ts
import { TSEnumBody } from "@typescript-eslint/types";
{
"import": null
}

```

```ts
import { TSESTree } from "@typescript-eslint/types";
{
"import": null
}

```

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// === documentHighlights ===
// === /b.ts ===
// import { x } from "/*HIGHLIGHTS*/[|./a|]";



// === documentHighlights ===
// === /c/sub.js ===
// const a = require("/*HIGHLIGHTS*/[|../a|]");
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// === documentHighlights ===
// === /getOccurrencesIfElseBroken.ts ===
// /*HIGHLIGHTS*/[|if|] (true) {
// var x = 1;
// }
// [|else if|] ()
// [|else if|]
// [|else|] /* whar garbl */ [|if|] (if (true) { } else { })
// else



// === documentHighlights ===
// === /getOccurrencesIfElseBroken.ts ===
// [|if|] (true) {
// var x = 1;
// }
// /*HIGHLIGHTS*/[|else if|] ()
// [|else if|]
// [|else|] /* whar garbl */ [|if|] (if (true) { } else { })
// else



// === documentHighlights ===
// === /getOccurrencesIfElseBroken.ts ===
// [|if|] (true) {
// var x = 1;
// }
// [|else if|] ()
// /*HIGHLIGHTS*/[|else if|]
// [|else|] /* whar garbl */ [|if|] (if (true) { } else { })
// else



// === documentHighlights ===
// === /getOccurrencesIfElseBroken.ts ===
// [|if|] (true) {
// var x = 1;
// }
// [|else if|] ()
// [|else if|]
// /*HIGHLIGHTS*/[|else|] /* whar garbl */ [|if|] (if (true) { } else { })
// else



// === documentHighlights ===
// === /getOccurrencesIfElseBroken.ts ===
// [|if|] (true) {
// var x = 1;
// }
// [|else if|] ()
// [|else if|]
// [|else|] /* whar garbl */ /*HIGHLIGHTS*/[|if|] (if (true) { } else { })
// else
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// === findAllReferences ===
// === /findAllRefsForDefaultExport03.ts ===
// /*FIND ALL REFS*/function f() {
// return 100;
// }
//
// // --- (line: 5) skipped ---



// === findAllReferences ===
// === /findAllRefsForDefaultExport03.ts ===
// function /*FIND ALL REFS*/[|f|]() {
// return 100;
// }
//
// export default [|f|];
//
// var x: typeof [|f|];
//
// var y = [|f|]();
//
// namespace [|f|] {
// var local = 100;
// }
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// === findAllReferences ===
// === /b.ts ===
// import { x } from "/*FIND ALL REFS*/[|./a|]";

// === /c/sub.js ===
// const a = require("[|../a|]");

// === /d.ts ===
// /// <reference path="./a.ts" />[||]



// === findAllReferences ===
// === /b.ts ===
// import { x } from "[|./a|]";

// === /c/sub.js ===
// const a = require("/*FIND ALL REFS*/[|../a|]");

// === /d.ts ===
// /// <reference path="./a.ts" />[||]



// === findAllReferences ===
// === /b.ts ===
// import { x } from "[|./a|]";

// === /c/sub.js ===
// const a = require("[|../a|]");

// === /d.ts ===
// /// <reference path="/*FIND ALL REFS*/./a.ts" />[||]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// === findAllReferences ===
// === /a.js ===
// /*FIND ALL REFS*/const b = require("./b");
Loading
Loading