mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
extract symbol test
This commit is contained in:
@@ -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");
|
||||
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user