feat: hack support for webstorm(intellij)#57
Open
zhangciwu wants to merge 1 commit intoeggjs:masterfrom
Open
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.
|
whxaxes
reviewed
Feb 19, 2020
| `\/\/ hack support for webstorm (intellij) | ||
| declare module 'egg' { | ||
| export interface Context { | ||
| service: IService; |
Member
There was a problem hiding this comment.
这样不会导致 ctx 只有一个 service 属性么 ...
Member
There was a problem hiding this comment.
我知道这是追加,但是 webstorm 不是识别不到 egg 的声明么,那这样新加个声明它就可以识别到了?
There was a problem hiding this comment.
大佬能教我操作一下吗, 我也是碰到了webstorm下egg方法跳转不了的问题
|
大佬能教我操作一下吗, 怎么样才能在webstorm上实现egg的方法跳转呢?万分感谢~ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
npm testpassesDescription of change
Support eggjs project code jump within webstorm in a hacky way, in term of issue: #55
用一种比较取巧的方式支持webstorm的eggjs工程代码中的跳转