Commit 50e3044
committed
Correct fullDisplayName returned from rename
The regular displayName had special handling for `as` clauses in imports
and exports but the fullDisplayName did not. They should be consistent.
(The impact of this change is very minor - it only affects the root node
of the tree control in the rename preview, which is off by default.)
Bonus: Eliminate `getDeclaredName` which is only called by rename.
Note: Special handling of default exports was not preserved since
`default` cannot be renamed.1 parent f0d9cb3 commit 50e3044
2 files changed
Lines changed: 10 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | 41 | | |
43 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
44 | 52 | | |
45 | 53 | | |
46 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1278 | 1278 | | |
1279 | 1279 | | |
1280 | 1280 | | |
1281 | | - | |
1282 | | - | |
1283 | | - | |
1284 | | - | |
1285 | | - | |
1286 | | - | |
1287 | | - | |
1288 | | - | |
1289 | | - | |
1290 | | - | |
1291 | | - | |
1292 | | - | |
1293 | | - | |
1294 | 1281 | | |
1295 | 1282 | | |
1296 | 1283 | | |
| |||
0 commit comments