52 lines
1.1 KiB
Go
52 lines
1.1 KiB
Go
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash"
|
|
. "efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash/tests/util"
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil"
|
|
)
|
|
|
|
func TestTripleSlashRefPathCompletionExtensionsAllowJSTrue(t *testing.T) {
|
|
t.Parallel()
|
|
t.Skip()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @allowJs: true
|
|
// @Filename: test0.ts
|
|
/// <reference path="/*0*/
|
|
/// <reference path=".//*1*/
|
|
/// <reference path="./f/*2*/
|
|
// @Filename: f1.ts
|
|
|
|
// @Filename: f1.js
|
|
|
|
// @Filename: f1.d.ts
|
|
|
|
// @Filename: f1.tsx
|
|
|
|
// @Filename: f1.js
|
|
|
|
// @Filename: f1.jsx
|
|
|
|
// @Filename: f1.cs
|
|
`
|
|
f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
f.VerifyCompletions(t, f.Markers(), &fourslash.CompletionsExpectedList{
|
|
IsIncomplete: false,
|
|
ItemDefaults: &fourslash.CompletionsExpectedItemDefaults{
|
|
CommitCharacters: &[]string{},
|
|
EditRange: Ignored,
|
|
},
|
|
Items: &fourslash.CompletionsExpectedItems{
|
|
Exact: []fourslash.CompletionsExpectedItem{
|
|
"f1.d.ts",
|
|
"f1.js",
|
|
"f1.jsx",
|
|
"f1.ts",
|
|
"f1.tsx",
|
|
},
|
|
},
|
|
})
|
|
}
|