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

Quick fix imports added before hashbang #20088

Closed
mjbvz opened this issue Nov 17, 2017 · 0 comments
Closed

Quick fix imports added before hashbang #20088

mjbvz opened this issue Nov 17, 2017 · 0 comments
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue VS Code Tracked There is a VS Code equivalent to this issue

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Nov 17, 2017

From microsoft/vscode#38541

TypeScript Version: 2.7.0-dev.20171116

Code
In a project:

x.ts:

export const abc = 123

main.ts:

#!/usr/bin/env node

abc

Trigger a quick fix to add a missing import on abc

Expected behavior:
#!/usr/bin/env node
import { abc } from "./y";
abc

Actual behavior:
Import added before the hashbang

import { abc } from "./y";

#!/usr/bin/env node

abc
@mjbvz mjbvz added the VS Code Tracked There is a VS Code equivalent to this issue label Nov 17, 2017
@mhegazy mhegazy added the Bug A bug in TypeScript label Nov 17, 2017
@mhegazy mhegazy assigned ghost Nov 17, 2017
@mhegazy mhegazy added this to the TypeScript 2.7 milestone Nov 17, 2017
@ghost ghost closed this as completed in #20306 Nov 28, 2017
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Nov 28, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue VS Code Tracked There is a VS Code equivalent to this issue
Projects
None yet
Development

No branches or pull requests

2 participants