Auto-Import icon indicating copy to clipboard operation
Auto-Import copied to clipboard

Wasn't working when first installed.

Open bjohnson-va opened this issue 8 years ago • 5 comments
trafficstars

I had just installed vscode on OS X Sierra and was working on a component. I did not yet have this plugin installed.

Here's the code:

import { Input, Component } from '@angular/core';
import {Account} from "./account";

@Component({
    selector: 'account-info',
    template: `
    <div>{{account.companyName}}</div>
    <div>{{account.address}}</div>
    <div>{{account.}}</div>
`
})
export class AccountInfoComponent implements OnInit {
    @Input() account: Account;
}

I installed this plugin, reloaded VSCode and tried to use the autocomplete feature to import OnInit.

The context menu showed up and displayed two options. image

Nothing happened when I pressed enter on either one or clicked on either one.

I had to erase this line before the plugin would start working.

import { Input, Component } from '@angular/core';

bjohnson-va avatar Jan 05 '17 23:01 bjohnson-va

@bjohnson-va How to get a context menu? AutoImport extension not working for me. I have raised question here - https://github.com/soates/Auto-Import/issues/44

sanket360 avatar Jan 06 '17 10:01 sanket360

@sanket360 I used alt-enter while my keyboard cursor was placed within OnInit

bjohnson-va avatar Jan 09 '17 15:01 bjohnson-va

@sanket360 , are you using mac OS?

vlio20 avatar Jan 10 '17 11:01 vlio20

No @vlio20... I am on windows

sanket360 avatar Jan 11 '17 17:01 sanket360

@bjohnson-va thanks for reply but alt-enter while my keyboard cursor was placed within OnInit doesnt work for me. As per demo, it should show yellow light bulb on move hover.

sanket360 avatar Jan 12 '17 10:01 sanket360