Skip to content
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

属性写法没有提示 #69

Closed
Mophar-gift opened this issue Jul 11, 2024 · 20 comments
Closed

属性写法没有提示 #69

Mophar-gift opened this issue Jul 11, 2024 · 20 comments
Labels
🐛 bug Something isn't working 💀 error Ooops, got an error

Comments

@Mophar-gift
Copy link

Mophar-gift commented Jul 11, 2024

Describe the bug
在Vue中使用时,标签上直接使用属性写法时,没有提示。
属性简写也没有下划线和提示。

To Reproduce
Steps to reproduce the behavior:

Expected behavior
属性写法也有对应的提示

Screenshots
image
image

Environment
Plugin Version: # 1.5.0
IDE Version: #
Unocss Version(in package.json): # 0.59.4

Unocss Config:
image

@re-ovo
Copy link
Owner

re-ovo commented Jul 11, 2024

是用的vite吗

@Mophar-gift
Copy link
Author

是用的vite吗

是的
"vite": "5.2.10"

@re-ovo
Copy link
Owner

re-ovo commented Jul 11, 2024

是用的vite吗

是的 "vite": "5.2.10"

尝试直接在vite内定义配置

@Mophar-gift
Copy link
Author

Mophar-gift commented Jul 11, 2024

是用的vite吗

是的 "vite": "5.2.10"

尝试直接在vite内定义配置
您好,配置哪些东西可以给一个示例吗,还说直接把uno.config里的配置直接在vite里配置,是这个意思吗

@re-ovo
Copy link
Owner

re-ovo commented Jul 11, 2024

是用的vite吗

是的 "vite": "5.2.10"

尝试直接在vite内定义配置
您好,配置哪些东西可以给一个示例吗,还说直接把uno.config里的配置直接在vite里配置,是这个意思吗

是的

@Mophar-gift
Copy link
Author

是用的vite吗

是的 "vite": "5.2.10"

尝试直接在vite内定义配置
您好,配置哪些东西可以给一个示例吗,还说直接把uno.config里的配置直接在vite里配置,是这个意思吗

是的

刚去试了一下 然而还是没有效果 (ㄒoㄒ)

@re-ovo
Copy link
Owner

re-ovo commented Jul 11, 2024

看看你的vite配置

@Mophar-gift
Copy link
Author

看看你的vite配置

image
使用类的写法是正常的有提示的,直接在标签上使用属性写法则是没有提示

@re-ovo
Copy link
Owner

re-ovo commented Jul 12, 2024

我自己测试是可以的,你定义的shortcuts能正常提示吗

@Mophar-gift
Copy link
Author

我自己测试是可以的,你定义的shortcuts能正常提示吗

可以发一下您的配置看一下吗

@Mophar-gift
Copy link
Author

我自己测试是可以的,你定义的shortcuts能正常提示吗

鼠标移上去可以看到解析是生效的,但是在书写的时候没有任何提示
image

@re-ovo
Copy link
Owner

re-ovo commented Jul 16, 2024

我自己测试是可以的,你定义的shortcuts能正常提示吗

鼠标移上去可以看到解析是生效的,但是在书写的时候没有任何提示 image

可以创建一个可以复现的项目吗,方便我测试,我自己测试没啥问题

@Mophar-gift
Copy link
Author

Mophar-gift commented Jul 17, 2024

我自己测试是可以的,你定义的shortcuts能正常提示吗

鼠标移上去可以看到解析是生效的,但是在书写的时候没有任何提示 image

可以创建一个可以复现的项目吗,方便我测试,我自己测试没啥问题

我猜有没有可能是您对ide做了什么配置,感觉不像是项目配置的问题,为了避免其他因素干扰,我是单独新开了一个项目(pnpm create vue@latest),项目里什么都没有,就安装了一下unocss,您可以直接尝试。
image
image
image
image

您可以按照我的截图随便创建一个新项目尝试一下,在任意vue文件下尝试属性写法,如果您依旧有提示,那我猜测有没有可能是您对插件做了什么配置,我本地的环境如下:
image
image
image

@Mophar-gift
Copy link
Author

您别误会我的意思哦,class里写是没问题的,我的问题一直都是在标签上直接使用属性写法:
image

@re-ovo
Copy link
Owner

re-ovo commented Jul 17, 2024

我知道了,JS语言服务那边循环引用导致JSON.stringify失败了,我剔除掉没用的信息,下个版本应该可以了

@re-ovo re-ovo added 🐛 bug Something isn't working 💀 error Ooops, got an error labels Jul 17, 2024
@re-ovo
Copy link
Owner

re-ovo commented Jul 18, 2024

更新试试

@re-ovo
Copy link
Owner

re-ovo commented Jul 18, 2024

@Mophar-gift

@Mophar-gift
Copy link
Author

更新之后可以了,感谢您的耐心解答~ (^▽^)

@Mophar-gift
Copy link
Author

Mophar-gift commented Jul 18, 2024

顺便再问一个小小的问题,就是在这种属性的写法下, 这种简写符号好像没有下划线
image

@re-ovo
Copy link
Owner

re-ovo commented Jul 18, 2024

顺便再问一个小小的问题,就是在这种属性的写法下, 这种简写符号好像没有下划线 image

开个新issue

@re-ovo re-ovo closed this as completed Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 💀 error Ooops, got an error
Projects
None yet
Development

No branches or pull requests

2 participants