c75f6d0ec7
Use explicit pairs `verify.goToDefinition([["a", "b"], ["c", "d"]])` instead of `verify.goToDefinition("a", "b", "c", "d")`. Also provide an option `verify.goToDefinition({ a: "b", c: "d" })` for cases where the starts are not theirselves lists.
23 lines
491 B
TypeScript
23 lines
491 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
// @Filename: a.ts
|
|
//// //MyFile Comments
|
|
//// //more comments
|
|
//// /// <reference path="so/*unknownFile*/mePath.ts" />
|
|
//// /// <reference path="b/*knownFile*/.ts" />
|
|
////
|
|
//// class clsInOverload {
|
|
//// static fnOverload();
|
|
//// static fnOverload(foo: string);
|
|
//// static fnOverload(foo: any) { }
|
|
//// }
|
|
////
|
|
|
|
// @Filename: b.ts
|
|
/////*fileB*/
|
|
|
|
verify.goToDefinition({
|
|
unknownFile: [],
|
|
knownFile: "fileB"
|
|
});
|