-
Notifications
You must be signed in to change notification settings - Fork 31
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
feat: hack support for webstorm(intellij) #57
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #57 +/- ##
==========================================
- Coverage 98.25% 97.17% -1.08%
==========================================
Files 19 16 -3
Lines 743 672 -71
Branches 107 99 -8
==========================================
- Hits 730 653 -77
- Misses 5 7 +2
- Partials 8 12 +4
Continue to review full report at Codecov.
|
`\/\/ hack support for webstorm (intellij) | ||
declare module 'egg' { | ||
export interface Context { | ||
service: IService; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这样不会导致 ctx 只有一个 service 属性么 ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
多次定义一个interface是追加,不是覆盖
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我知道这是追加,但是 webstorm 不是识别不到 egg 的声明么,那这样新加个声明它就可以识别到了?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
对,就是这么神奇…… 我已经在本地测试过
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好,我待会验证一下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
大佬能教我操作一下吗, 我也是碰到了webstorm下egg方法跳转不了的问题
大佬能教我操作一下吗, 怎么样才能在webstorm上实现egg的方法跳转呢?万分感谢~ |
Checklist
npm test
passesDescription of change
Support eggjs project code jump within webstorm in a hacky way, in term of issue: #55
用一种比较取巧的方式支持webstorm的eggjs工程代码中的跳转