-
-
Notifications
You must be signed in to change notification settings - Fork 593
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
intellisence relative to first tsconfig up from src #1360
Comments
I've run into this as well. vscode correctly identifies TypeScript projects as any directory containing a Consider the following: monorepo/
│
├─ one-package/
│ ├─ src/
│ │ ├─ components/
│ │ │ └─ Header.vue
│ │ ├─ App.vue
│ │ ├─ index.ts
│ │ └─ router.ts
│ │
│ ├─ tsconfig.json
│ └─ package.json
│
├─ second-package/
│ ├─ src/
│ │ ├─ index.ts
│ │ └─ utils.ts
│ │
│ ├─ tsconfig.json
│ └─ package.json
│
├─ lerna.json
└─ vue-shim.d.ts Both of these I think the issue crops up when:
vscode still picks up the generic I get the impression Vetur is built with the assumption that workspace == TypeScript project root, but this isn't strictly true; a TypeScript project is a directory containing a Edit: FWIW, I think some of the other open |
Same here, even in workspace there's only one package. As long as there's no {
...
"paths": {
"@/*": ["one-package/src/*", "second-package/src/*"]
}
} |
Info
Mac OS, Vetur 0.21.1, vscode 1.36.1
Problem
I have a nuxt/typescript project, and can't resolve paths with "~" in vscode. According to documentation, intellisense works from workspace root. However, I am working in a monorepo, with lots of little packages. I prefer not to have workspaces for each. So the workspace root is not the right place to start from. Rather, I would like to resolve tilde from the directory of the first tsconfig.json up from source code. Is there a way to do this? (If not, this is a feature request.)
Reproducible Case
The text was updated successfully, but these errors were encountered: