2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
////var ccc: number;
|
|
|
|
////var ddd: string;
|
|
|
|
|
|
|
|
////var aaa: number;
|
|
|
|
////var bbb: string;
|
|
|
|
/////*1*/
|
|
|
|
|
|
|
|
// Disable test triggered type check
|
|
|
|
diagnostics.setEditValidation(IncrementalEditValidation.None);
|
|
|
|
|
|
|
|
goTo.marker("1");
|
|
|
|
verify.completionListContains("aaa");
|
|
|
|
verify.completionListContains("bbb");
|
|
|
|
verify.completionListContains("ccc");
|
|
|
|
verify.completionListContains("ddd");
|
|
|
|
|
|
|
|
// Checking for completion details before edit should work
|
2014-09-29 18:45:39 +02:00
|
|
|
verify.completionEntryDetailIs("aaa", "(var) aaa: number");
|
|
|
|
verify.completionEntryDetailIs("ccc", "(var) ccc: number");
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
// Make an edit
|
|
|
|
edit.insert("a");
|
|
|
|
edit.backspace();
|
|
|
|
|
|
|
|
// Checking for completion details after edit should work too
|
2014-09-29 18:45:39 +02:00
|
|
|
verify.completionEntryDetailIs("bbb", "(var) bbb: string");
|
|
|
|
verify.completionEntryDetailIs("ddd", "(var) ddd: string");
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
// Checking for completion details again before edit should work
|
2014-09-29 18:45:39 +02:00
|
|
|
verify.completionEntryDetailIs("aaa", "(var) aaa: number");
|
|
|
|
verify.completionEntryDetailIs("ccc", "(var) ccc: number");
|