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.
15 lines
537 B
TypeScript
15 lines
537 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
//// var /*valueDeclaration1*/name = "hello";
|
|
//// var /*valueDeclaration2*/id = 100000;
|
|
//// declare var /*valueDeclaration3*/id;
|
|
//// var obj = {/*valueDefinition1*/name, /*valueDefinition2*/id};
|
|
//// obj./*valueReference1*/name;
|
|
//// obj./*valueReference2*/id;
|
|
|
|
verify.goToDefinition({
|
|
valueDefinition1: "valueDeclaration1",
|
|
valueDefinition2: ["valueDeclaration2", "valueDeclaration3"],
|
|
valueReference1: "valueDefinition1",
|
|
valueReference2: "valueDefinition2"
|
|
});
|