Skip to content

Not work with Path Intellisense in template tag #589

@davidlin88

Description

@davidlin88

I wish to use path completion when I was typing<img src="@.
In the past, I used to use Vetur + Path Intellisense, and they works well like this:
image

but Volar + Path Intellisense doesn't works in template tag, by th way, it's ok in script tag.

setting.json like this:

 "path-intellisense.mappings": {
    "@": "${workspaceRoot}/src/"
  },

jsconfig.json like this:

{
  "strict":true,
  "compilerOptions": {
    "baseUrl": "./",
    "paths": {
        "@/*": ["src/*"]
    }
  },
  "exclude": ["node_modules", "dist"]
}

By the way, I found that after I typed <img src="@/assets/ , the path completion worked, I don't know if this is going to help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions