1. Retain surrounding trivia when swapping the keyword. 2. Insert commas at the full-starts, rather than starts, of existing keywords when merging with existing implements clauses. Fixes #18794
13 lines
307 B
TypeScript
13 lines
307 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
//// interface I1 { }
|
|
//// interface I2 { }
|
|
|
|
//// [|abstract class A extends I1 implements I2|] { }
|
|
|
|
verify.codeFix({
|
|
description: "Change 'extends' to 'implements'",
|
|
// TODO: GH#18794
|
|
newRangeContent: "abstract class A implements I1, I2",
|
|
});
|