mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
Stop requiring that the full range of a declaration fall within the
selection
Fixes #18546
(cherry picked from commit af49c60a2c)
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
// TODO: GH#18546
|
||||
// For now this tests that at least we don't crash.
|
||||
|
||||
////function f() {
|
||||
//// /*start*/namespace N {}/*end*/
|
||||
////}
|
||||
@@ -13,9 +10,9 @@ edit.applyRefactor({
|
||||
actionName: "scope_1",
|
||||
actionDescription: "Extract function into global scope",
|
||||
newContent: `function f() {
|
||||
/*RENAME*/newFunction(N);
|
||||
/*RENAME*/newFunction();
|
||||
}
|
||||
function newFunction(N: any) {
|
||||
function newFunction() {
|
||||
namespace N { }
|
||||
}
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user