uni-helper / uni-helper-vscode

uni-app 的 VSCode 扩展包
MIT License
9 stars 3 forks source link

对typescirpt有支持吗? #16

Closed JoyfulAndSpeedyMan closed 2 months ago

JoyfulAndSpeedyMan commented 2 months ago

描述问题

安装插件后,所有的标签全部都有个警告,看起来很烦人 image

复现

<template>
    <view>
        <button @click="login">登录</button>
        <view>

        </view>
    </view>
</template>

系统信息

win10

使用的包管理器

pnpm

核对

ModyQyW commented 2 months ago

降级到volar2.0.12或1.8.27,跟本插件无关。

JoyfulAndSpeedyMan commented 2 months ago

Volar已经停止支持,无法在vscode插件市场下载了。目前可以通过正常渠道下载的只有Vue - Official。其中我尝试了Vue - Official的2.0.12版本,但是问题依旧存在。 还有更好的解决方案吗?这个插件未来会考虑支持Vue - Official吗?(受够了HBulderX的代码提示经常不翼而飞😭)

ModyQyW commented 1 month ago

@JoyfulAndSpeedyMan 这跟本插件无关,你需要的是 https://github.com/uni-helper/uni-app-types ,配置 tsconfig 就可以了。