File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
src/org/klesun/deep_js_completion/completion_providers Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
1
<idea-plugin >
2
2
<id >lv.midiana.misc.idea-plugins.deep-js-completion</id >
3
3
<name >deep-js-completion</name >
4
- <version >2018.10.09 .001</version >
4
+ <version >2018.10.18 .001</version >
5
5
<vendor email =" safronevev@gmail.com" url =" http://midiana.lv/entry/deep-js-completion" >Klesun</vendor >
6
6
7
7
<description ><![CDATA[
Original file line number Diff line number Diff line change @@ -104,13 +104,16 @@ class DeepKeysPvdr extends CompletionProvider[CompletionParameters] {
104
104
val elapsed = System .nanoTime - startTime
105
105
result.addLookupAdvertisement(" Resolved in " + (elapsed / 1000000000.0 ) + " seconds" )
106
106
107
+ // test
108
+ // test
109
+ // test
110
+ // test
111
+
107
112
val nameToLookup = ListMap (suggestions.map(t => t.getLookupString -> t) : _* )
108
113
val builtInSuggestions = new util.ArrayList [LookupElement ]
109
- val jsConfig = JSRootConfiguration .getInstance(psi.getProject)
110
- var onlyTyped = false
111
- if (jsConfig != null ) {
112
- onlyTyped = jsConfig.isOnlyTypeBasedCompletion
113
- }
114
+ val project = if (psi != null ) psi.getProject else null
115
+ val jsConfig = if (project != null ) JSRootConfiguration .getInstance(project) else null
116
+ val onlyTyped = if (jsConfig != null ) jsConfig.isOnlyTypeBasedCompletion else false
114
117
115
118
result.runRemainingContributors(parameters, otherSourceResult => {
116
119
val lookup = otherSourceResult.getLookupElement
You can’t perform that action at this time.
0 commit comments