Skip to content

When import .vue file in ts via path alias, Ctrl + Click can not jump to the definition. #435

@shixinla

Description

@shixinla

When import .vue file in ts via path alias, Ctrl + Click can not jump to the definition any more, and the path intellisense can not find .vue file too.

Howerver, it works in v0.27.3 and before.

behavior in v0.27.3:
GIF 2021-8-30 15-33-17
behavior after v0.27.3(0.27.9):
GIF 2021-8-30 15-30-21

info

Volar version: 0.27.9
Vue TS Plugin: on
tsconfig:

{
  "compilerOptions": {
    "target": "esnext",
    "module": "esnext",
    "moduleResolution": "node",
    "strict": true,
    "jsx": "preserve",
    "sourceMap": true,
    "resolveJsonModule": true,
    "esModuleInterop": true,
    "lib": ["esnext", "dom"],
    "baseUrl": ".",
    "paths": {
      "@/*": ["src/*"],
      "@/tests/*": ["tests/*"]
    }
  },
  "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
}

Vscode info:

Version: 1.59.1 (user setup)
Commit: 3866c3553be8b268c8a7f8c0482c0c0177aa8bfa
Date: 2021-08-19T11:56:46.957Z
Electron: 13.1.7
Chrome: 91.0.4472.124
Node.js: 14.16.0
V8: 9.1.269.36-electron.0
OS: Windows_NT x64 10.0.17763

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions