Skip to content
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

Support options in quick fixes/refactoring #20619

Closed
ghost opened this issue Dec 11, 2017 · 10 comments
Closed

Support options in quick fixes/refactoring #20619

ghost opened this issue Dec 11, 2017 · 10 comments
Labels
API Relates to the public API for TypeScript Domain: Quick Fixes Editor-provided fixes, often called code actions. Domain: Refactorings e.g. extract to constant or function, rename symbol Fixed A PR has been merged for this issue Suggestion An idea for TypeScript

Comments

@ghost
Copy link

ghost commented Dec 11, 2017

We should support editor configuration of services behavior like we do for formatting.

Would fix:

@mhegazy mhegazy added API Relates to the public API for TypeScript Suggestion An idea for TypeScript labels Jan 4, 2018
@mhegazy mhegazy assigned ghost Jan 4, 2018
@mhegazy mhegazy added this to the TypeScript 2.8 milestone Jan 4, 2018
@mhegazy mhegazy changed the title Support options in services Support options in quick fixes/refactoring Jan 12, 2018
@mhegazy mhegazy added Domain: Refactorings e.g. extract to constant or function, rename symbol Domain: Quick Fixes Editor-provided fixes, often called code actions. labels Jan 12, 2018
@mjbvz
Copy link
Contributor

mjbvz commented Feb 8, 2018

As covered in #21768, I see a lot of requests against VS Code for configuring quotes specifically. Cases where quotes should be configurable include:

  • Imports
  • Bracket accessors
  • Implement interface / implement abstract class or method
  • Others?

@zpdDG4gta8XKpMCd
Copy link

please add an option to always use absolute paths (relative to baseUri) for imports at completions, per: #21860

@srcspider
Copy link

srcspider commented Feb 15, 2018

+1

If possible I would like an option to NEVER even see the relative path suggestions; or spaghetti imports as I like to think of them.

Any explanation on why it suddenly doesn't work at all? I've reverted to the 1.19.3 just because it's unusable. In 1.19.3 spaghetti paths aren't even suggested, only the correct absolute paths (as per the tsconfig)

@srcspider
Copy link

@mjbvz please add an option to omit the semicolon on import statements

@alextreppass
Copy link

alextreppass commented Mar 2, 2018

Thanks - please consider #22249 to allow the old behaviour of full import paths (rather than ../../...), which I gather may be the same as #21860

@zpdDG4gta8XKpMCd
Copy link

how did it even come to mind to make relatives paths a default choice? what makes the design team think they are more convenient?

Relative vs Absolute

@ghost ghost added the Fixed A PR has been merged for this issue label Mar 12, 2018
@DanielRosenwasser DanielRosenwasser removed this from the TypeScript 2.8.1 milestone Mar 22, 2018
@DanielRosenwasser DanielRosenwasser added this to the TypeScript 2.8.2 milestone Mar 22, 2018
@mhegazy mhegazy modified the milestones: TypeScript 2.8.2, TypeScript 2.9 Mar 28, 2018
@srcspider
Copy link

srcspider commented Apr 3, 2018

@andy-ms why did you label this "Fixed"? What's the fix?

I've looked though 2.8.1, 2.8.2 and the roadmap for 2.9 not sure what you're implying fixes it.

@mhegazy
Copy link
Contributor

mhegazy commented Apr 3, 2018

The fix went in #22236. It is scheduled to release in Typescript 2.8 (added to the road-map).

VSCode /VS still need to expose these settings in a way you can interact with. microsoft/vscode#45948 is a good issue to watch for VSCode.

@mhegazy mhegazy closed this as completed Apr 3, 2018
@mhegazy
Copy link
Contributor

mhegazy commented Apr 3, 2018

For posterity,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
API Relates to the public API for TypeScript Domain: Quick Fixes Editor-provided fixes, often called code actions. Domain: Refactorings e.g. extract to constant or function, rename symbol Fixed A PR has been merged for this issue Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

6 participants