sublimelsp / LSP-vue

Vue support for Sublime's LSP plugin
MIT License
29 stars 3 forks source link

modules import references #106

Closed xinxilas closed 3 years ago

xinxilas commented 3 years ago

Its an bug or are there any configs i must setup to be able to access path references on .vue files?

Sorry if i must config something i did not

relative paths and '@' paths not working

PS: i have jsconfig.json i used o vscode, and it is ok there

{
    "compilerOptions": {
      "baseUrl": ".",
      "paths": {
         "@/*": ["./src/*"]
      }
    },
    "include": [
        "./src/**/*.js",
        "./src/**/*.vue"
    ],
    "exclude": ["node_modules", "dist"]
 }

image

rchl commented 3 years ago

have you tried importing with the .vue extension included?

rchl commented 3 years ago

BTW. Are you talking about Go to definition feature or are you getting an error in the document with that code.

xinxilas commented 3 years ago

yes, "Go to definition", it worked using *.vue Ill use .vue now...

But if is there any solution or already known file to setup .vue as one of the common imported files would be nice Or maybe it isn't lsp-typescript or lsp-vue issue?

Thank you

rchl commented 3 years ago

I'll close this since there is nothing this package can do about it. You can file a bug at https://github.com/vuejs/vetur/ if you care although I don't have high hopes that anyone would care about that issue.