Some DX issue or Bugs #5437
baixiaoyu2997
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hi Johnson Chu, 我在这里分享一些目前已知的问题或者DX问题,抱歉,英文不好,防止产生歧义就直接说中文了,因为最近切换到了cursor所以为了保证问题的确定性,切换回vsocde进行的测试:
System info
Issue
在普通script中最后一行定义type会导致高亮失败,使用interface不会有这个问题, Syntax highlighting requires new-line or semi-colon between script blocks. #2060

template中使用as会导致高亮失败(正好今天早上在搜索这个问题的时候,发现是上游问题),Highlight error on html tag name starting with

template
#4769不支持在template快速修复中import外部文件 (这个我真的很需要), 相关issue: Bug: IDE Auto Import/Quick Fix Not Working for Vue Package Component in Template #4865

不支持在sfc中使用
Typescript: remove unused imports
(不确定这个是不是bug,希望可以支持), Support forTypescript: remove unused imports
#5440can't use onFocus with nuxt/ui when enabled strictTemplates #5433
组件jsdoc丢失, JSDoc missing in template #5441



在import位置会显示jsdoc, 但是在template中还是没有
vscode的eslint的快速修复功能,对于整个文件禁用某个规则时,注释会被添加到template顶部,而不是script顶部,目前通过调整sfc标签的顺序解决了这个问题
有时需要为template中的prop添加ts注释,但是做不到,不知道有什么好的处理方式吗, More user-friendly template comments #5442

feat(typescript-plugin): skip declaration files in goto components definition #5221
Beta Was this translation helpful? Give feedback.
All reactions