vendor tsgo
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestSignatureHelpApplicableRange(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `let obj = {
|
||||
foo(s: string): string {
|
||||
return s;
|
||||
}
|
||||
};
|
||||
|
||||
let s =/*a*/ obj.foo("Hello, world!")/*b*/
|
||||
/*c*/;`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
|
||||
// Markers a, b, c should NOT show signature help (outside the call)
|
||||
f.VerifyNoSignatureHelpForMarkers(t, "a", "b", "c")
|
||||
}
|
||||
Reference in New Issue
Block a user