Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99331

vscode - "Implement interface" -> disable inline imports

$
0
0

In typescript, if I do an auto-fix on a class name with "Implement interface", it will create the methods with inline imports :

  getInbox(): Observable<import('../../model/Message').Interactions[]> {
    throw new Error('Method not implemented.');
  }

You can see the import('../../model/Message' which is ugly and stupid. How can I make it import at the top of the file instead of inline ?


Viewing all articles
Browse latest Browse all 99331

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>