Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete for export default glitch #38907

Closed
Mickey0001 opened this issue Nov 21, 2017 · 2 comments
Closed

Autocomplete for export default glitch #38907

Mickey0001 opened this issue Nov 21, 2017 · 2 comments
Assignees
Labels
javascript JavaScript support issues

Comments

@Mickey0001
Copy link

Mickey0001 commented Nov 21, 2017

  • VSCode Version: Code 1.18.0 (dcee220, 2017-11-08T21:22:49.932Z)
  • OS Version: Windows_NT x64 6.1.7601
  • Extensions: none

Steps to Reproduce:

  1. In a JavaScript React file start typing "export default" at the bottom to export a component
  2. After using tab to auto-complete "default" following incorrect import shows up at the top:
    "import default from '../reducers/reducer_posts';"

Screenshot:
image

Here is the code:


import React, { Component } from 'react';
import { connect } from 'react-redux';
import { fetchPost } from '../actions';




class PostsShow extends Component {
    render() {
        return (
            <div>
                Posts Show.
            </div>
        );
    };
}


@vscodebot vscodebot bot added the javascript JavaScript support issues label Nov 21, 2017
@mjbvz
Copy link
Contributor

mjbvz commented Nov 27, 2017

This is microsoft/TypeScript#19841

Please try the latest VS Code insiders which should have already fixed this issue

@mjbvz mjbvz closed this as completed Nov 27, 2017
@Mickey0001
Copy link
Author

Thanks, it's okay now I can no longer replicate the issue after the last update.

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
javascript JavaScript support issues
Projects
None yet
Development

No branches or pull requests

2 participants