Unescape identifiers used in code completion

This commit is contained in:
Andy Hanson
2016-06-14 08:13:55 -07:00
parent 29b1e796c3
commit 1b4b01eed5
3 changed files with 11 additions and 1 deletions
+2
View File
@@ -717,6 +717,8 @@ namespace FourSlash {
public verifyCompletionEntryDetails(entryName: string, expectedText: string, expectedDocumentation?: string, kind?: string) {
const details = this.getCompletionEntryDetails(entryName);
assert(details, "no completion entry available");
assert.equal(ts.displayPartsToString(details.displayParts), expectedText, this.assertionMessageAtLastKnownMarker("completion entry details text"));
if (expectedDocumentation !== undefined) {
+1 -1
View File
@@ -3234,7 +3234,7 @@ namespace ts {
}
}
return name;
return unescapeIdentifier(name);
}
function getCompletionData(fileName: string, position: number) {
@@ -0,0 +1,8 @@
/// <reference path="fourslash.ts" />
// @Filename: a.js
// @allowJs: true
////__foo;/**/
goTo.marker();
verify.completionListContains("__foo", undefined, undefined, "warning");