Prototype update import paths on file rename/move for JS/TS (#50074)

* Prototype of updating paths on rename file

* Fix apply edits

* Hook up to normal rename

* Fix unit test

* Remove timeout

* Adding prompt

* Bail early if user has set 'never'
This commit is contained in:
Matt Bierner
2018-05-21 13:26:24 -07:00
committed by GitHub
parent 2cfe96f451
commit ff5f422dda
13 changed files with 285 additions and 7 deletions

View File

@@ -482,6 +482,28 @@
"default": true,
"description": "%typescript.showUnused.enabled%",
"scope": "resource"
},
"typescript.updateImportsOnFileMove.enabled": {
"type": "string",
"enum": [
"prompt",
"always",
"never"
],
"default": "prompt",
"description": "%typescript.updateImportsOnFileMove.enabled%",
"scope": "resource"
},
"javascript.updateImportsOnFileMove.enabled": {
"type": "string",
"enum": [
"prompt",
"always",
"never"
],
"default": "prompt",
"description": "%typescript.updateImportsOnFileMove.enabled%",
"scope": "resource"
}
}
},