Avoid adding duplicate completion from contextual keyword (#26947)

This commit is contained in:
Andy
2018-09-07 12:18:03 -07:00
committed by GitHub
parent f8b6a8fc8d
commit b1430e5e2c
2 changed files with 13 additions and 6 deletions

View File

@@ -14,7 +14,7 @@
//// import a = require("./a");
//// a.fo/*2*/
goTo.marker('1');
verify.completionEntryDetailIs("foo", "var foo: (p1: string) => void", "Modify the parameter");
goTo.marker('2');
verify.completionEntryDetailIs("foo", "(property) a.foo: (p1: string) => void", "Modify the parameter");
verify.completions(
{ marker: "1", includes: { name: "foo", text: "var foo: (p1: string) => void", documentation: "Modify the parameter" } },
{ marker: "2", exact: { name: "foo", text: "(property) a.foo: (p1: string) => void", documentation: "Modify the parameter" } },
);