Open gabritto opened 5 years ago
TypeScript Version: 3.4.0-dev.201xxxxx
Search Terms: missing comment
Several refactors and codefixes cause comments in some positions to disappear after being applied.
Code
const a = (a: number) => {/* missing */ return a; /* missing */}; const b = (a: number) => { /* missing */ return a; /* missing */ }
class A { // missing a(s: string) { // missing return s; } }
namespace Extract { class B { // missing a(s: string) { // missing return s; } } }
type K = "foo" | "bar"; interface SomeType { /*missing*/ a: string; /*missing*/ [prop: K] /*missing*/: any; }
function fn(a: /*missing*/ ?number) { return a; }
function fun(b) { // missing this.b = b; }
exports.f /*missing*/ = /*missing*/ function() { };
// @ts-check class C { constructor() {/*missing*/ //missing } prop = ()=>{ this.foo === 10 }; }
Expected behavior: Comments should be present after applying refactor/codefix. Actual behavior: Comments are missing after refactor/codefix.
May I take this?
Move to new file:
export const enum CharCode { "/" = 47, // missing "a" = 48, }
TypeScript Version: 3.4.0-dev.201xxxxx
Search Terms: missing comment
Several refactors and codefixes cause comments in some positions to disappear after being applied.
Code
Code
Code
Code
Code
Code
Expected behavior: Comments should be present after applying refactor/codefix. Actual behavior: Comments are missing after refactor/codefix.