diff options
author | Alexey Kiryushin <alexey.a.kiryushin@gmail.com> | 2018-11-16 16:19:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-16 16:19:03 +0300 |
commit | 866bfff6ff41a2796329c6bb28db688cbfeed2b8 (patch) | |
tree | 3da173b79af7727969116df212fba597fbddc3a3 /javascript/app/components | |
parent | b5a3048a880c8ce1c2bfa795a39576d02f416be2 (diff) |
Add cross-package 'find references'
Diffstat (limited to 'javascript/app/components')
-rw-r--r-- | javascript/app/components/haskell-module.js | 7 | ||||
-rw-r--r-- | javascript/app/components/identifier-name.js | 3 |
2 files changed, 6 insertions, 4 deletions
diff --git a/javascript/app/components/haskell-module.js b/javascript/app/components/haskell-module.js index cf750b9..a509c58 100644 --- a/javascript/app/components/haskell-module.js +++ b/javascript/app/components/haskell-module.js @@ -162,10 +162,11 @@ function initializeIdentifiers (sourceCodeContainerElement,component) { event.which, currentLineNumber); } else { - if(identifierInfo.sort === "External") { + if(identifierInfo.sort === "External") { component.get('findReferences')(component.get('packageId'), identifierInfo.externalId, - identifierInfo.demangledOccName); + identifierInfo.demangledOccName, + identifierInfo.locationInfo); } } @@ -400,7 +401,7 @@ function initializeExpressionInfo(sourceCodeContainerElement,component) { } export default Ember.Component.extend({ - store : Ember.inject.service('store'), + store : Ember.inject.service('store'), selectedIdentifier : null, isHoveredOverIdentifier : false, hasSelectedExpression : false, diff --git a/javascript/app/components/identifier-name.js b/javascript/app/components/identifier-name.js index 950b8c7..e0f8c3c 100644 --- a/javascript/app/components/identifier-name.js +++ b/javascript/app/components/identifier-name.js @@ -54,7 +54,8 @@ export default Ember.Component.extend({ findReferences (identifierInfo,currentPackageId) { this.get('findReferences')(currentPackageId, identifierInfo.externalId, - identifierInfo.demangledOccName); + identifierInfo.demangledOccName, + identifierInfo.locationInfo); } } }); |