Skip to content
This repository was archived by the owner on Jan 11, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/goto/class-provider.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ AbstractProvider = require './abstract-provider'
module.exports =

class ClassProvider extends AbstractProvider
hoverEventSelectors: '.syntax--entity.syntax--inherited-class, .syntax--support.syntax--namespace, .syntax--support.syntax--class, .syntax--comment-clickable .syntax--region'
clickEventSelectors: '.syntax--entity.syntax--inherited-class, .syntax--support.syntax--namespace, .syntax--support.syntax--class'
hoverEventSelectors: '.syntax--entity.syntax--inherited-class, .syntax--support.syntax--namespace, .syntax--support.syntax--class, .syntax--typehinted .syntax--type, .syntax--comment-clickable .syntax--region'
clickEventSelectors: '.syntax--entity.syntax--inherited-class, .syntax--support.syntax--namespace, .syntax--support.syntax--class, .syntax--typehinted .syntax--type'
gotoRegex: /^\\?[A-Z][A-za-z0-9_]*(\\[A-Z][A-Za-z0-9_])*$/

###*
Expand Down
6 changes: 3 additions & 3 deletions lib/goto/function-provider.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ AbstractProvider = require './abstract-provider'
module.exports =

class FunctionProvider extends AbstractProvider
hoverEventSelectors: '.syntax--function-call'
clickEventSelectors: '.syntax--function-call'
gotoRegex: /(?:(?:[a-zA-Z0-9_]*)\s*(?:\(.*\))?\s*(?:->|::)\s*)+([a-zA-Z0-9_]*)/
hoverEventSelectors: '.syntax--function-call .syntax--function, .syntax--method-call .syntax--function'
clickEventSelectors: '.syntax--function-call .syntax--function, .syntax--method-call .syntax--function'
gotoRegex: /(?:(?:[a-zA-Z0-9_]*)\s*(?:\(.*\))?\s*(?:->|::)\s*)+([a-zA-Z0-9_]*)\(/

###*
* Goto the class from the term given.
Expand Down
6 changes: 3 additions & 3 deletions lib/goto/property-provider.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ AbstractProvider = require './abstract-provider'
module.exports =

class PropertyProvider extends AbstractProvider
hoverEventSelectors: '.syntax--property'
clickEventSelectors: '.syntax--property'
hoverEventSelectors: '.syntax--property, .syntax--class.syntax--operator + .syntax--constant'
clickEventSelectors: '.syntax--property, .syntax--class.syntax--operator + .syntax--constant'
gotoRegex: /^(\$\w+)?((->|::)\w+)+/

###*
Expand Down Expand Up @@ -34,7 +34,7 @@ class PropertyProvider extends AbstractProvider
if not value
return

atom.workspace.open(value.declaringStructure.filename, {
atom.workspace.open((value.declaringStructure || value.declaringClass).filename, {
searchAllPanes: true
})

Expand Down
6 changes: 4 additions & 2 deletions lib/services/php-file-parser.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -709,9 +709,11 @@ module.exports =
# If there are multiple matches, just select the first method.
if value instanceof Array
for val in value
if val.isMethod
value = val
if val.isMethod || val.isStatic
return val
break
# return undefined if we didn't find a matching element
return

return value

Expand Down
2 changes: 1 addition & 1 deletion lib/tooltip/class-provider.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ AbstractProvider = require './abstract-provider'
module.exports =

class ClassProvider extends AbstractProvider
hoverEventSelectors: '.syntax--entity.syntax--inherited-class, .syntax--support.syntax--namespace, .syntax--support.syntax--class, .syntax--comment-clickable .syntax--region'
hoverEventSelectors: '.syntax--entity.syntax--inherited-class, .syntax--support.syntax--namespace, .syntax--support.syntax--class, .syntax--typehinted .syntax--type, .syntax--comment-clickable .syntax--region'

###*
* Retrieves a tooltip for the word given.
Expand Down
2 changes: 1 addition & 1 deletion lib/tooltip/function-provider.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ AbstractProvider = require './abstract-provider'
module.exports =

class FunctionProvider extends AbstractProvider
hoverEventSelectors: '.syntax--function-call'
hoverEventSelectors: '.syntax--function-call .syntax--function, .syntax--method-call .syntax--function'

###*
* Retrieves a tooltip for the word given.
Expand Down
2 changes: 1 addition & 1 deletion lib/tooltip/property-provider.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ AbstractProvider = require './abstract-provider'
module.exports =

class PropertyProvider extends AbstractProvider
hoverEventSelectors: '.syntax--property'
hoverEventSelectors: '.syntax--property, .syntax--class.syntax--operator + .syntax--constant'

###*
* Retrieves a tooltip for the word given.
Expand Down