Add refactoring to use default import (#19659)

* Add refactoring to use default import

* Add localizable description
This commit is contained in:
Andy
2017-11-03 08:31:13 -07:00
committed by GitHub
parent cc2a2a79b5
commit d54ad4b01a
5 changed files with 134 additions and 0 deletions
+4
View File
@@ -470,6 +470,10 @@ namespace FourSlash {
public select(startMarker: string, endMarker: string) {
const start = this.getMarkerByName(startMarker), end = this.getMarkerByName(endMarker);
ts.Debug.assert(start.fileName === end.fileName);
if (this.activeFile.fileName !== start.fileName) {
this.openFile(start.fileName);
}
this.goToPosition(start.position);
this.selectionEnd = end.position;
}