-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(60551): satisfies is shown on go-to-implementation (#60801)
- Loading branch information
1 parent
32e8f8b
commit f99803d
Showing
3 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
tests/baselines/reference/goToImplementation_satisfies.baseline.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// === goToImplementation === | ||
// === /a.ts === | ||
// interface /*GOTO IMPL*/I { | ||
// foo: string; | ||
// } | ||
// | ||
// function f() { | ||
// const foo = [|{ foo: '' }|] satisfies I; | ||
// } | ||
|
||
// === Details === | ||
[ | ||
{ | ||
"kind": "interface", | ||
"displayParts": [ | ||
{ | ||
"text": "(", | ||
"kind": "punctuation" | ||
}, | ||
{ | ||
"text": "object literal", | ||
"kind": "text" | ||
}, | ||
{ | ||
"text": ")", | ||
"kind": "punctuation" | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/// <reference path='fourslash.ts'/> | ||
|
||
// @filename: /a.ts | ||
////interface /*def*/I { | ||
//// foo: string; | ||
////} | ||
//// | ||
////function f() { | ||
//// const foo = { foo: '' } satisfies [|I|]; | ||
////} | ||
|
||
verify.baselineGoToImplementation('def'); |