Skip to content

Commit dd408ef

Browse files
author
Andy Hanson
committed
Unescape identifiers used in code completion
1 parent 89214ff commit dd408ef

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/services/services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3234,7 +3234,7 @@ namespace ts {
32343234
}
32353235
}
32363236

3237-
return name;
3237+
return unescapeIdentifier(name);
32383238
}
32393239

32403240
function getCompletionData(fileName: string, position: number) {
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/// <reference path="fourslash.ts" />
22

3-
// @Filename: a.ts
4-
////___foo;
5-
/////**/
3+
// @Filename: a.js
4+
// @allowJs: true
5+
////__foo;/**/
66

77
goTo.marker();
8-
verify.completionEntryDetailIs("x", "y", "documentation", "kind");
8+
verify.completionListContains("__foo", undefined, undefined, "warning");

0 commit comments

Comments
 (0)