Merge pull request #18563 from amcasey/GH18546

Stop requiring that the full range of a declaration fall within the selection
This commit is contained in:
Andrew Casey authored and GitHub committed 2017-09-19 10:47:16 -07:00
commit cb63ea5242
4 files changed
+27 -6

No files matched your search

@@ -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 to function in global scope",
newContent: `function f() {
/*RENAME*/newFunction(N);
/*RENAME*/newFunction();
}
function newFunction(N: any) {
function newFunction() {
namespace N { }
}
`