33 lines
1.1 KiB
Go
33 lines
1.1 KiB
Go
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/lsp/lsproto"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestJsDocFunctionSignatures5VS(t *testing.T) {
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @strict: true
|
|
// @allowJs: true
|
|
// @Filename: Foo.js
|
|
/**
|
|
* Filters a path based on a regexp or glob pattern.
|
|
* @param {String} basePath The base path where the search will be performed.
|
|
* @param {String} pattern A string defining a regexp of a glob pattern.
|
|
* @param {String} type The search pattern type, can be a regexp or a glob.
|
|
* @param {Object} options A object containing options to the search.
|
|
* @return {Array} A list containing the filtered paths.
|
|
*/
|
|
function pathFilter(basePath, pattern, type, options){
|
|
//...
|
|
}
|
|
pathFilter(/**/'foo', 'bar', 'baz', {});`
|
|
f, done := fourslash.NewFourslash(t, &lsproto.ClientCapabilities{VSSupportsVisualStudioExtensions: new(true)}, content)
|
|
defer done()
|
|
f.VerifyBaselineSignatureHelp(t)
|
|
}
|