Skip to content

When editing a .js file, a paths to .vue files are not autocompleted (missing from default-scopes.js) #225

@jonboiser

Description

@jonboiser

Prerequisites

Description

When working on Vue applications, sometimes you need to import .vue files inside of normal .js files, for example, when configuring Vue-Router docs.

I was looking at #128 and the PR that addressed it #142, and noticed that it resolves paths to .vue files inside of other .vue files (via the vue scope), but doesn't add similar configuration to .js files (e.g. to handle the use case above).

Steps to Reproduce

  1. Inside of a Vue project, try to import a .vue file inside of a .js file.
  2. Get only .js autocomplete suggestions

Expected behavior: [What you expect to happen]

  1. Inside of a Vue project, try to import a .vue file inside of a .js file.
  2. Get only .vue autocomplete suggestions if there are any

Actual behavior: [What actually happens]

  1. Inside of a Vue project, try to import a .vue file inside of a .js file.
  2. Get only .js autocomplete suggestions

Reproduces how often: [What percentage of the time does it reproduce?]

Always

Versions

You can get this information from copy and pasting the output of atom --version and apm --version from the command line. Also, please include the OS and what version of the OS you're running.

Additional Information

On my local copy of default-scopes.js, I added vue to the extensions array for the first JS scope entry and it seems to work. I can submit a PR with the same patch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions