mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
40 lines
791 B
Go
40 lines
791 B
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 TestQuickInfoAliasVS(t *testing.T) {
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @Filename: /a.ts
|
|
/**
|
|
* Doc
|
|
* @tag Tag text
|
|
*/
|
|
export const x = 0;
|
|
// @Filename: /b.ts
|
|
import { x } from "./a";
|
|
x/*b*/;
|
|
// @Filename: /c.ts
|
|
/**
|
|
* Doc 2
|
|
* @tag Tag text 2
|
|
*/
|
|
import {
|
|
/**
|
|
* Doc 3
|
|
* @tag Tag text 3
|
|
*/
|
|
x
|
|
} from "./a";
|
|
x/*c*/;`
|
|
f, done := fourslash.NewFourslash(t, &lsproto.ClientCapabilities{VSSupportsVisualStudioExtensions: new(true)}, content)
|
|
defer done()
|
|
f.VerifyBaselineVSHover(t)
|
|
}
|