/// ////const newFunction = 0; /////*start*/1 + 1/*end*/; goTo.select('start', 'end') edit.applyRefactor({ refactorName: "Extract Symbol", actionName: "function_scope_0", actionDescription: "Extract to function in global scope", newContent: `const newFunction = 0; /*RENAME*/newFunction_1(); function newFunction_1() { 1 + 1; } ` });