Copy: Improve file copying
- Do not copy individual declarations if entire file is selected (keeping original content with comments, formatting, etc.) - Update package directive when original file packages matches its directory #KT-20092 Fixed #KT-18196 Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package foo
|
||||
|
||||
val a = 42
|
||||
|
||||
// comment
|
||||
|
||||
// some other comment
|
||||
val s = ""
|
||||
@@ -0,0 +1,6 @@
|
||||
val a = 42
|
||||
|
||||
// comment
|
||||
|
||||
// some other comment
|
||||
val s = ""
|
||||
@@ -0,0 +1,8 @@
|
||||
package foo
|
||||
|
||||
val a = 42
|
||||
|
||||
// comment
|
||||
|
||||
// some other comment
|
||||
val s = ""
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"mainFile": "foo/test.kt",
|
||||
"targetPackage": ""
|
||||
}
|
||||
Reference in New Issue
Block a user