vendor tsgo
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual jsdocDeprecated_suggestion21"
|
||||
|
||||
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 TestJsdocDeprecated_suggestion21(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `// @module: esnext
|
||||
// @filename: /a.ts
|
||||
export const a = 1;
|
||||
export const b = 1;
|
||||
// @filename: /b.ts
|
||||
export {
|
||||
/** @deprecated a is deprecated */
|
||||
a
|
||||
} from "./a";
|
||||
// @filename: /c.ts
|
||||
export {
|
||||
a
|
||||
} from "./b";
|
||||
// @filename: /d.ts
|
||||
import * as _ from "./c";
|
||||
_.[|a|]`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.GoToFile(t, "/d.ts")
|
||||
f.VerifySuggestionDiagnostics(t, []*lsproto.Diagnostic{
|
||||
{
|
||||
Code: &lsproto.IntegerOrString{Integer: new(int32(6385))},
|
||||
Message: lsproto.StringOrMarkupContent{String: new("'a' is deprecated.")},
|
||||
Tags: &[]lsproto.DiagnosticTag{lsproto.DiagnosticTagDeprecated},
|
||||
Range: f.Ranges()[0].LSRange,
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user