Skip to content

Test for action description of code actions, and simplify description for extracting method to file #18030

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
4 commits merged into from
Aug 25, 2017

Conversation

ghost
Copy link

@ghost ghost commented Aug 24, 2017

Fixes #17998

@ghost ghost force-pushed the extract-method-action-description branch from 484dc22 to a7e7388 Compare August 24, 2017 21:17
@ghost ghost requested review from RyanCavanaugh and amcasey August 24, 2017 21:17
this.raiseError(`verifyApplicableRefactorAvailableForRange failed - expected a refactor but found none.`);
}
if (refactors.length > 1) {
this.raiseError(`2 available refactors both have name ${name} and action ${actionName}`);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using the actual number.

: "anonymous class expression";
}
else if (isSourceFile(scope)) {
return `file '${scope.fileName}'`;
return "this file";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about "file scope" or "top-level scope"?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this should be "global scope" for a global and "module scope" for a module? @DanielRosenwasser thoughts?

@amcasey
Copy link
Member

amcasey commented Aug 24, 2017

FYI @RyanCavanaugh

Copy link
Member

@amcasey amcasey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ghost ghost merged commit 3a0ab74 into master Aug 25, 2017
@ghost ghost deleted the extract-method-action-description branch August 25, 2017 16:53
ghost pushed a commit that referenced this pull request Aug 25, 2017
… for extracting method to file (#18030)

* Test for action description of code actions, and simplify description for extracting method to file

* Add unit test file missing from tsconfig.json (only affects gulp) and update tests

* Use the actual number

* Use "module scope" or "global scope" instead of "this file"
ghost pushed a commit that referenced this pull request Aug 25, 2017
… for extracting method to file (#18030) (#18044)

* Test for action description of code actions, and simplify description for extracting method to file

* Add unit test file missing from tsconfig.json (only affects gulp) and update tests

* Use the actual number

* Use "module scope" or "global scope" instead of "this file"
@ghost ghost restored the extract-method-action-description branch December 11, 2017 16:22
@ghost ghost deleted the extract-method-action-description branch December 11, 2017 16:23
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants