-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue
Milestone
Description
TypeScript Version: 3.0.0-dev.20180616
Search Terms:
Code
git clone https://github.com/mjbvz/ts-update-paths-npm-link-bugnpm install- Open project in VS Code
- Open file
d.ts - Rename
d.tstoa.ts
Expected behavior:
No edits returned from getEditsForFileRename
Actual behavior:
getEditsForFileRename changes the import for import { abc } from "sub"; to import { abc } from "./sub/src/types"
[Trace - 2:34:49 PM] Response received: getEditsForFileRename (52). Request took 8 ms. Success: true
Result: [
{
"fileName": "/Users/matb/projects/san/a.js",
"textChanges": [
{
"start": {
"line": 3,
"offset": 22
},
"end": {
"line": 3,
"offset": 25
},
"newText": "./sub/src/types"
}
]
}
]
Playground Link:
Related Issues:
thomasmichaelwallace, DimitryDushkin and maxisam
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue