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

Add Web Types to improve code assistance in WebStorm IDE and other JetBrains IDEs #22135

Merged
merged 1 commit into from
Nov 14, 2022

Conversation

piotrtomiak
Copy link
Contributor

This contribution is to heavily improve coding experience in JetBrains IDEs (e.g. WebStorm). It contains information about components (props, events, slots) and directives. Each element is documented with a link to the documentation. With this file included, you get following experience:

element-ui-screencast 2022-09-06 11_17_09

Please make sure these boxes are checked before submitting your PR, thank you!

  • Make sure you follow Element's contributing guide (中文 | English | Español | Français).
  • Make sure you are merging your commits to dev branch.
  • Add some descriptions and refer relative issues for you PR.

@webvs2
Copy link
Contributor

webvs2 commented Sep 6, 2022

Wow, that sounds pretty good. @piotrtomiak

@linghengqian
Copy link

Carbon Copy @xinguanhua .

Copy link

@alexlyul alexlyul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IDEA hints does not work yet

@@ -0,0 +1,4195 @@
{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello! It seems the package of element-ui@2.15.12 does not include this web-types.json but only it's reference from package.json ("web-types": "./web-types.json")

Copy link

@syrm-ll syrm-ll Nov 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#22271

#22261

另外, 即使手动下载 web-types.json 仍然有些类型提示缺失/错误, 我准备在 element-ui 下个版本 和 IDEA 2022.3 发布后测试这个问题

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

求解决

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

很遗憾,最新版本2.15.13,依旧没有解决,点击组件名称还是无法跳入组件源码

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

很遗憾,最新版本2.15.13,依旧没有解决,点击组件名称还是无法跳入组件源码

对,要看源码现在只能在node_modules里面找到然后看了

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

很遗憾,最新版本2.15.13,依旧没有解决,点击组件名称还是无法跳入组件源码

我找了几个小时,原来大家也都有这个问题,那就没事了。话说现在都6月份了,这个问题也还没解决,麻了

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

webstrom2023.1.4,element-ui2.15.13 还是提示Unknown html tag-xxxxx,点击组件名称无法跳转到组件源码

@lixing0323
Copy link

弄了1天才发现element-ui 最新版本有问题,我差点怀疑人生了。各种尝试,,,才发现v2.15.11有问题,求尽快更新,要么以后就别优化ide了。

@jayzch
Copy link

jayzch commented Feb 1, 2023

弄了1天才发现element-ui 最新版本有问题,我差点怀疑人生了。各种尝试,,,才发现v2.15.11有问题,求尽快更新,要么以后就别优化ide了。

闹心

hzsrc pushed a commit to hzsrc/element that referenced this pull request Feb 2, 2023
@young-3303
Copy link

2.15.14 版本使用Ctrl依然无法跳转到源码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet