TypeScript/tests/cases/fourslash/extract-const1.ts
Andy 3220ebc182 Disambiguate same-named refactors using description (#19267)
Disambiguate same-named refactors using actionName
2017-10-18 10:23:18 -07:00

15 lines
321 B
TypeScript

/// <reference path='fourslash.ts' />
////const x = /*a*/0/*b*/;
goTo.select("a", "b");
edit.applyRefactor({
refactorName: "Extract Symbol",
actionName: "constant_scope_0",
actionDescription: "Extract to constant in enclosing scope",
newContent:
`const newLocal = 0;
const x = /*RENAME*/newLocal;`
});