Comments (1)
This is working as intended per configuration.
When we lookup apps/web/tsconfig.json
: main.ts
is marked as root of referenced from referenced directly but part of referenced project = { "key": "c:/temp/vite-issue-1815/apps/web/src/main.ts", "value": "c:/temp/vite-issue-1815/apps/web/tsconfig.app.json" }
but not app.vue
because the config file for referenced projects isnt returning the vue files.. They are part of projects as external files but not as "config" file names which results in discrepancy in how ts files are treated vs vue files.
This can be fixed by plugin by setting extraFileExtentions
through ConfigureRequest
: https://github.com/microsoft/TypeScript/blob/main/src/server/protocol.ts#L1496
Eg i passed this command to server before opening the file and app.vue
works same as main.ts
{ "seq": 1, "type": "request", "command": "configure", "arguments": { "extraFileExtensions": [{ "extension": ".vue", "isMixedContent": false, "scriptKind": 7 }] }}
from typescript.
Related Issues (20)
- package.json#imports doesn't get IDE suggestions when typing the import path directly HOT 11
- Invalid ES2023 target suggested HOT 3
- Un-feature suggestion: relax type predicate construction rule
- Combining `importHelpers: true` and `module: preserve` results in TS2354
- Narrowed type not "carried" iteratively HOT 2
- Narrow generic mapped argument HOT 2
- `null` gets accidentally eliminated when narrowing by undefined's equality HOT 8
- No compilation error on later declared variable reference HOT 2
- Microsoft.TypeScript.MSBuild, need to find a way to delay execution of tsc HOT 2
- Excess and common property checks don't work correctly with `NoInfer`
- `tsc --watch` uses "incomplete" ANSI sequence for "clear buffer" HOT 2
- `tsc --watch` uses "incomplete" ANSI sequence for "clear buffer" HOT 5
- TS7022 circularity regression in 5.4.2 HOT 1
- Unexpected type infer for function first argument with default value since 5.1 HOT 2
- Narrowing with conditional types HOT 2
- Build mode output is not regenerated after being deleted from the filesystem HOT 2
- Regression performance compiling types in version 5.4.2 HOT 18
- JavaScript class property becomes `any` without warning when used in a function that is assigned to itself HOT 5
- error TS2536: Type 'key' cannot be used to index type 'Store<string, S, G, {}> HOT 2
- Functional Instantiation HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typescript.