facebook

Auto import without dropdown selection moves caret to imports

  1. CodeMix & Angular IDE
  2.  > 
  3. Webclipse 1.x Help
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #522513 Reply

    Fedor Losev
    Participant

    After 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.

    #522806 Reply

    support-swapna
    Moderator

    Fedor,

    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

    #522814 Reply

    Fedor Losev
    Participant
    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.
    #522983 Reply

    support-swapna
    Moderator

    Fedor,

    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

    #527419 Reply

    support-swapna
    Moderator

    Fedor,

    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

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Auto import without dropdown selection moves caret to imports

You must be logged in to post in the forum log in