-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue
Milestone
Description
TypeScript Version: 3.9.0-dev.20200413
Search Terms:
- move to new file
- refactor / refactoring
Code
For a TS file:
class Foo {
constructor() {
}
public runCommand(): void {
let focusedEditor = 1;
// Only if editor text focus (i.e. not if editor has widget focus).
if (focusedEditor) {
return;
}
}
public run(): void { }
}
export const a = new Foo();
- Select
Foo
and runmove to new file
Bug:
The new file duplicates the new line between the methods in the class
export class Foo {
constructor() {
}
public runCommand(): void {
let focusedEditor = 1;
// Only if editor text focus (i.e. not if editor has widget focus).
if (focusedEditor) {
return;
}
}
public run(): void { }
}
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue