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.
20 lines
503 B
TypeScript
20 lines
503 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
/////*label1Definition*/label1: while (true) {
|
|
//// /*label2Definition*/label2: while (true) {
|
|
//// break /*1*/label1;
|
|
//// continue /*2*/label2;
|
|
//// () => { break /*3*/label1; }
|
|
//// continue /*4*/unknownLabel;
|
|
//// }
|
|
////}
|
|
|
|
verify.goToDefinition({
|
|
1: "label1Definition",
|
|
2: "label2Definition",
|
|
// labels accross function boundaries
|
|
3: "label1Definition",
|
|
// undefined label
|
|
4: []
|
|
});
|