import { Http } from '@angular/http';
let x: Http;
let y: ComponentDecorator;
Place the caret after ComponentDecorator
(before ;
), press CTRL+SPACE. It will add the import and move the caret to next import line, instead of staying at the code:
import { ComponentDecorator } from '@angular/core';
| import { Http } from '@angular/http';
^ caret moves here after auto import
let x: Http;
let y: ComponentDecorator;
Expected:
import { ComponentDecorator } from '@angular/core';
import { Http } from '@angular/http';
let x: Http;
let y: ComponentDecorator|;
^ caret stays here after auto import
It will happen as well with selection from a list, e.g. change ComponentDecorator to Component and select Component from the list after CTRL+SPACE.
The expected behavior is the same as with partial definition autocomplete, e.g. change ComponentDecorator to ComponentDec and press CTRL+SPACE. Import will be added, ComponentDec changed to ComponentDecorator and the caret stays after ComponentDecorator.
Attachments:
You must be
logged in to view attached files.