2020-01-17 23:27:12 +01:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
////class Class1 {
|
2020-04-24 22:50:34 +02:00
|
|
|
//// public a = this./*0*/
|
|
|
|
//// protected b = /*1*/
|
|
|
|
//// private c = /*2*/
|
|
|
|
//// public d = /*3*/
|
2020-01-17 23:27:12 +01:00
|
|
|
////}
|
|
|
|
////
|
|
|
|
////class Class2 {
|
2020-04-24 22:50:34 +02:00
|
|
|
//// a = /*4*/
|
2020-01-17 23:27:12 +01:00
|
|
|
////}
|
|
|
|
////class Class3 {
|
2020-04-24 22:50:34 +02:00
|
|
|
//// a = /*5*/
|
2020-01-17 23:27:12 +01:00
|
|
|
////}
|
|
|
|
////
|
|
|
|
////const prop = 'prop';
|
|
|
|
////class Class4 {
|
2020-04-24 22:50:34 +02:00
|
|
|
//// [prop] = /*6*/
|
2020-01-17 23:27:12 +01:00
|
|
|
////}
|
|
|
|
|
|
|
|
const exact = completion.globalsPlus(["Class1", "Class2", "Class3", "prop", "Class4"]);
|
2020-04-24 22:50:34 +02:00
|
|
|
const markers = ["1", "2", "3", "4", "5", "6"];
|
|
|
|
|
|
|
|
verify.completions({ marker: "0", exact: ['a', 'b', 'c', 'd'], isGlobalCompletion: false });
|
|
|
|
verify.completions({ marker: markers, exact });
|
|
|
|
|
|
|
|
for (let marker of markers) {
|
|
|
|
goTo.marker(marker);
|
|
|
|
edit.insert("c");
|
|
|
|
verify.completions({ exact });
|
|
|
|
}
|