Bug Report
🔎 Search Terms
refactoring, move to file
💻 Code
source.ts:
import{b}from'./other';consta=1;constc=a+b;target.ts:
Select const c = a + b;, trigger move to file refactoring and select target.ts file.
🙁 Actual behavior
target.ts:
import{a}from'./source';import{b}from"./other";exportconsttt=2;constc=a+b;🙂 Expected behavior
The imports added should have the same quote style, maybe preferring the one from the source file when we can't detect a preference for the target file.
target.ts:
import{a}from'./source';import{b}from'./other';exportconsttt=2;constc=a+b;or at least
target.ts:
import{a}from"./source";import{b}from"./other";exportconsttt=2;constc=a+b;More examples in the test changes of #54358.
Bug Report
🔎 Search Terms
refactoring, move to file
💻 Code
source.ts:target.ts:Select
const c = a + b;, triggermove to filerefactoring and selecttarget.tsfile.🙁 Actual behavior
target.ts:🙂 Expected behavior
The imports added should have the same quote style, maybe preferring the one from the source file when we can't detect a preference for the target file.
target.ts:or at least
target.ts:More examples in the test changes of #54358.