extract symbol test

This commit is contained in:
Jesse Trinity 2020-05-26 17:41:23 -07:00
parent df8ff659c5
commit 3825d193f6
2 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1,10 @@
/// <reference path='fourslash.ts' />
////function foo() {
//// return 1/*a*//*b*/00;
////}
// Only offer refactor for empty span if explicity requested
goTo.select("a", "b");
verify.not.refactorAvailableForTriggerReason("implicit", "Extract Symbol");
verify.refactorAvailableForTriggerReason("invoked", "Extract Symbol", "constant_scope_0");

View file

@ -2,7 +2,7 @@
//// var x: /*1a*/{ a?:/*2a*/ number, b?: string/*2b*//*3a*//*3b*/ }/*1b*/ = { };
// Only offer refactor for cursor position if explicitly requested
// Only offer refactor for empty span if explicity requested
goTo.select("3a", "3b");
verify.refactorNotAvailableForTriggerReason("implicit", "Extract type");