- This topic has 4 replies, 2 voices, and was last updated 7 years, 5 months ago by support-swapna.
-
AuthorPosts
-
Fedor LosevParticipantAfter TS auto import on CTRL+SPACE the caret frequently moves to the import list next to the added import line and stays there. It should not move from the current position in the code when adding import.
It seems not happening when import is performed from incomplete text by selecting from context assist list and behaves correctly then.
But when the whole name of the declaration is typed and there is no suggestion to select it adds the import and jumps there.
support-swapnaModeratorFedor,
Sorry for the delayed response. I could not replicate the issue at my end.
If possible, can you please share with us the code snippet or the sample file to help us replicate the issue at our end?Apologies for inconvenience caused.
–Swapna
MyEclipse Support
Fedor LosevParticipantimport { 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.
support-swapnaModeratorFedor,
Thank you for the detailed report. I have filed a bug for the dev team and they are looking into it.
Sorry for inconvenience caused.–Swapna
MyEclipse Support
support-swapnaModeratorFedor,
The issue with the caret position on auto import is fixed in one of our recent releases. Please check and let us know if you see any issues.
–Swapna
MyEclipse Support -
AuthorPosts