Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8a13eab

Browse files
Add marker before baz: to test property name hover
Co-authored-by: DanielRosenwasser <972891+DanielRosenwasser@users.noreply.github.com>
1 parentf6b3006 commit8a13eab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎internal/fourslash/tests/destructuredInterfaceJSDoc_test.go‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ interface FooBar {
2222
2323
declare const fubar: FooBar;
2424
25-
const {/*1*/foo, /*2*/bar, baz: /*3*/biz} = fubar;
25+
const {/*1*/foo, /*2*/bar,/*3*/baz: /*4*/biz} = fubar;
2626
`
2727
f,done:=fourslash.NewFourslash(t,nil/*capabilities*/,content)
2828
deferdone()
2929
f.VerifyQuickInfoAt(t,"1","const foo: number","foo comment")
3030
f.VerifyQuickInfoAt(t,"2","const bar: string","bar comment")
31-
f.VerifyQuickInfoAt(t,"3","const biz: string","baz comment")
31+
f.VerifyQuickInfoAt(t,"3","(property) FooBar.baz: string","baz comment")
32+
f.VerifyQuickInfoAt(t,"4","const biz: string","baz comment")
3233
}
3334

3435
funcTestDestructuredInterfaceJSDocWithRename(t*testing.T) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp