Skip to content

Quickfix to prefix unused arrow function parameter opens new file #18275

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

Closed
ghost opened this issue Sep 6, 2017 · 3 comments
Closed

Quickfix to prefix unused arrow function parameter opens new file #18275

ghost opened this issue Sep 6, 2017 · 3 comments
Labels
Bug A bug in TypeScript Domain: Quick Fixes Editor-provided fixes, often called code actions.

Comments

@ghost
Copy link

ghost commented Sep 6, 2017

TypeScript Version: nightly (typescript@2.6.0-dev.20170906)

Code

const f = x => 1;

Apply the quickfix to prefix 'x' with an underscore.

Expected behavior:

Edit the current file.

Actual behavior:

Opens a new file:
shot5

@ghost ghost added Bug A bug in TypeScript Domain: Quick Fixes Editor-provided fixes, often called code actions. labels Sep 6, 2017
@mhegazy
Copy link
Contributor

mhegazy commented Sep 7, 2017

Can you share the log? looks like paths issue.

@ghost
Copy link
Author

ghost commented Sep 7, 2017

Can't reproduce this on linux; may be related to #18316. Will test tomorrow with the new build to see if it's fixed.

@amcasey
Copy link
Member

amcasey commented Jan 20, 2018

Is this still an issue? I can't say that I've ever seen it.

@mhegazy mhegazy closed this as completed Jan 20, 2018
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Domain: Quick Fixes Editor-provided fixes, often called code actions.
Projects
None yet
Development

No branches or pull requests

2 participants