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*/
|
|
|
|
|
2018-10-29 18:03:25 +01:00
|
|
|
const check = () => verify.completions({
|
|
|
|
includes: [
|
|
|
|
{ name: "aaa", text: "var aaa: number" },
|
|
|
|
{ name: "bbb", text: "var bbb: string" },
|
|
|
|
{ name: "ccc", text: "var ccc: number" },
|
|
|
|
{ name: "ddd", text: "var ddd: string" },
|
|
|
|
],
|
|
|
|
});
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
goTo.marker("1");
|
|
|
|
|
|
|
|
// Checking for completion details before edit should work
|
2018-10-29 18:03:25 +01:00
|
|
|
check();
|
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
|
2018-10-29 18:03:25 +01:00
|
|
|
check();
|