-
Notifications
You must be signed in to change notification settings - Fork 717
Document highlights #1699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document highlights #1699
Changes from 14 commits
7a4b3e2
0b437c2
57fa39d
7342e59
45906a2
a20e054
c076d4b
b08db3a
c0fac1d
a76671b
2fd1904
6d814bb
1dade87
e9d2bd6
45cd07b
48e3163
9c1245e
318a6f7
2d661ce
508be4d
a13337c
9b512a5
ea32d43
d446a93
1dcecaf
0ec6d31
2dd5588
f8c43e1
e903fae
016ab91
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a pattern among the failing tests, i.e. something they’re blocked on or a specific follow-up task? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These tests are giving an incorrect output due to a missing case in |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,8 +162,15 @@ TestCompletionsUniqueSymbol1 | |
TestConstEnumQuickInfoAndCompletionList | ||
TestConstQuickInfoAndCompletionList | ||
TestContextuallyTypedFunctionExpressionGeneric1 | ||
TestDocumentHighlightInExport1 | ||
TestDocumentHighlightInTypeExport | ||
TestDocumentHighlightJSDocTypedef | ||
TestDocumentHighlightTemplateStrings | ||
TestDocumentHighlightsInvalidGlobalThis | ||
TestDocumentHighlights_40082 | ||
TestDoubleUnderscoreCompletions | ||
TestEditJsdocType | ||
TestEmptyExportFindReferences | ||
TestExportDefaultClass | ||
TestExportDefaultFunction | ||
TestFindAllReferencesDynamicImport1 | ||
|
@@ -173,6 +180,7 @@ TestFindAllRefsCommonJsRequire2 | |
TestFindAllRefsCommonJsRequire3 | ||
TestFindAllRefsExportEquals | ||
TestFindAllRefsForDefaultExport03 | ||
TestFindAllRefsForModule | ||
TestFindAllRefsModuleDotExports | ||
TestFindAllRefs_importType_typeofImport | ||
TestFindReferencesAfterEdit | ||
|
@@ -201,6 +209,14 @@ TestGetJavaScriptQuickInfo6 | |
TestGetJavaScriptQuickInfo7 | ||
TestGetJavaScriptQuickInfo8 | ||
TestGetJavaScriptSyntacticDiagnostics24 | ||
TestGetOccurrencesAsyncAwait3 | ||
TestGetOccurrencesClassExpressionConstructor | ||
TestGetOccurrencesConstructor | ||
TestGetOccurrencesConstructor2 | ||
TestGetOccurrencesIfElseBroken | ||
TestGetOccurrencesOfAnonymousFunction | ||
TestGetOccurrencesStringLiteralTypes | ||
TestGetOccurrencesStringLiterals | ||
|
||
TestGetQuickInfoForIntersectionTypes | ||
TestHoverOverComment | ||
TestImportCompletionsPackageJsonExportsSpecifierEndsInTs | ||
|
@@ -264,6 +280,7 @@ TestJsdocThrowsTagCompletion | |
TestJsdocTypedefTag | ||
TestJsdocTypedefTag2 | ||
TestJsdocTypedefTagNamespace | ||
TestJsdocTypedefTagServices | ||
TestJsxFindAllReferencesOnRuntimeImportWithPaths1 | ||
TestLetQuickInfoAndCompletionList | ||
TestLocalFunction | ||
|
@@ -329,6 +346,7 @@ TestPathCompletionsTypesVersionsWildcard4 | |
TestPathCompletionsTypesVersionsWildcard5 | ||
TestPathCompletionsTypesVersionsWildcard6 | ||
TestProtoVarVisibleWithOuterScopeUnderscoreProto | ||
TestQualifiedName_import_declaration_with_variable_entity_names | ||
TestQuickInfoAlias | ||
TestQuickInfoAssertionNodeNotReusedWhenTypeNotEquivalent1 | ||
TestQuickInfoBindingPatternInJsdocNoCrash1 | ||
|
johnfav03 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package fourslash | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/microsoft/typescript-go/internal/fourslash" | ||
. "github.com/microsoft/typescript-go/internal/fourslash/tests/util" | ||
"github.com/microsoft/typescript-go/internal/testutil" | ||
) | ||
|
||
func TestDocumentHighlights(t *testing.T) { | ||
t.Parallel() | ||
defer testutil.RecoverAndFail(t, "Panic on fourslash test") | ||
const content = `[|function|] [|f|](x: typeof [|f|]) { | ||
[|f|]([|f|]); | ||
}` | ||
f := fourslash.NewFourslash(t, nil /*capabilities*/, content) | ||
f.VerifyBaselineDocumentHighlights(t, nil /*preferences*/, ToAny(f.Ranges())...) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package fourslash_test | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/microsoft/typescript-go/internal/fourslash" | ||
. "github.com/microsoft/typescript-go/internal/fourslash/tests/util" | ||
"github.com/microsoft/typescript-go/internal/testutil" | ||
) | ||
|
||
func TestDocumentHighlightAtInheritedProperties1(t *testing.T) { | ||
t.Parallel() | ||
|
||
defer testutil.RecoverAndFail(t, "Panic on fourslash test") | ||
const content = `// @Filename: file1.ts | ||
interface interface1 extends interface1 { | ||
[|doStuff|](): void; | ||
[|propName|]: string; | ||
}` | ||
f := fourslash.NewFourslash(t, nil /*capabilities*/, content) | ||
f.VerifyBaselineDocumentHighlights(t, nil /*preferences*/, ToAny(f.Ranges())...) | ||
} |
Uh oh!
There was an error while loading. Please reload this page.