question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Place imports after licence/comment headers

See original GitHub issue

For the moment top comments (license headers) are not respected during auto-import. For example:

sample.ts

/*!
 * @license
 * Copyright 2016 Company.
*/

export class MyClass {}

During auto-import the line will be added to the top of the file:

sample.ts

import { Observable } from 'rxjs/Rx';
/*!
 * @license
 * Copyright 2016 Company.
*/

export class MyClass {}

Expected behaviour: it should put imports after top comment block (ideally to be configurable via some settings flag)

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
soatescommented, Oct 26, 2016

Working on this as we speak 😃

cheers!

1reaction
soatescommented, Oct 27, 2016

Yeah, I agree - I am going to build some configuration into this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Item 2: Minimize Importing Headers in Headers - InformIT
Always import headers at the very deepest point possible. This usually means forward declaring classes in a header and importing their ...
Read more >
Walkthrough: Build and import header units in Visual C++ ...
Compile a header file as a header unit using the following steps in Visual Studio: Create a new C++ console app project. Replace...
Read more >
Connect 5 Importing Guide
PhoneNumber. Use the column headers listed under “Column Headers” to identify your recipient's applicable phone numbers. All U.S. phone numbers should include ...
Read more >
What are headers and how to add or edit them?
Headers are used to name the fields in a file for imports and merges. Examples of headers ... To edit row 1, place...
Read more >
How to to import headers automatically in xcode
The idea is place on that header the #defines that will enable/disable functionalities. I do not want to write #import "common.h" on every...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found