Comments (3)
Thanks for the feature request.
Currently, it doesn't support SFC in Vue, not only in takeover mode.
As you guessed, it seems possible to connect in principle, but there is a problem before that.
I am not familiar with the TS connectivity of SFC, but if the first line of the SFC script tag is selected in VSCode, it will be the 10th line, for example, because it is preceded by a template. However, the number of lines expected by tsserver is probably the first line, so there is an incompatibility.
A way to work around this must be provided on the volar side. Or, if not, it is necessary to implement it. The implementation itself is not difficult, since it should be enough to subtract the number of lines from the script tag, but in any case, it will take time.
Also, to support the takeover mode you described, it is necessary to be able to enable ts-type-expand's language-feature-plugin
for tsserver from the ts-type-expand extension side.
If it is possible to simply replace vscode.vue-language-feature
and call configurePlugin
, it should not be difficult to support, but if this API is not exposed, it will be difficult to support on the ts-type-expand side.
In any case, I understand that there are use cases you want to use in SFC. I will investigate.
from ts-type-expand.
@brawaru We’ve released a new version with added support for Vue.
https://github.com/d-kimuson/ts-type-expand/releases/tag/v1.2.0
from ts-type-expand.
Close.
from ts-type-expand.
Related Issues (20)
- INTERNAL_SERVER_ERROR, Error: Node is not defined HOT 5
- 1.0.1 version not displaying anything HOT 3
- pin or persist an expanded type HOT 2
- Option to omit properties starting with _
- Is this extension broken? HOT 17
- Record is not support HOT 3
- Stopped working completely HOT 3
- Suggestion to modify default Compact Property Length in treeview HOT 3
- Enhancement: Add filtering option to treeview
- Enhancement : Allow sorting tree nodes
- Enhancement : Show type name on node root when possible
- Treeview shows node value, not full type
- Use turborepo for builds. HOT 1
- Add Copy Type Feature HOT 3
- Mapped-Types resolve as unsupported instead of correct type HOT 2
- Popup asking to allow network access after installing the extension HOT 2
- Error: Unexpected intrinsicName Error, [object Object] HOT 3
- Document Supported Platforms (Node, Bun, Deno, etc.) HOT 2
- [question] How do `ts-type-expand` find the imported types?
- [enhancement] TSX/React support
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 ts-type-expand.