46 lines
1.6 KiB
Go
46 lines
1.6 KiB
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual quickInfoOnUnionPropertiesWithIdenticalJSDocComments01"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestQuickInfoOnUnionPropertiesWithIdenticalJSDocComments01(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `export type DocumentFilter = {
|
|
/** A language id, like ` + "`" + `typescript` + "`" + `. */
|
|
language: string;
|
|
/** A Uri [scheme](#Uri.scheme), like ` + "`" + `file` + "`" + ` or ` + "`" + `untitled` + "`" + `. */
|
|
scheme?: string;
|
|
/** A glob pattern, like ` + "`" + `*.{ts,js}` + "`" + `. */
|
|
pattern?: string;
|
|
} | {
|
|
/** A language id, like ` + "`" + `typescript` + "`" + `. */
|
|
language?: string;
|
|
/** A Uri [scheme](#Uri.scheme), like ` + "`" + `file` + "`" + ` or ` + "`" + `untitled` + "`" + `. */
|
|
scheme: string;
|
|
/** A glob pattern, like ` + "`" + `*.{ts,js}` + "`" + `. */
|
|
pattern?: string;
|
|
} | {
|
|
/** A language id, like ` + "`" + `typescript` + "`" + `. */
|
|
language?: string;
|
|
/** A Uri [scheme](#Uri.scheme), like ` + "`" + `file` + "`" + ` or ` + "`" + `untitled` + "`" + `. */
|
|
scheme?: string;
|
|
/** A glob pattern, like ` + "`" + `*.{ts,js}` + "`" + `. */
|
|
pattern: string;
|
|
};
|
|
|
|
declare let x: DocumentFilter;
|
|
x./**/language`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyBaselineHover(t)
|
|
}
|