File tree Expand file tree Collapse file tree 4 files changed +126
-109
lines changed Expand file tree Collapse file tree 4 files changed +126
-109
lines changed Original file line number Diff line number Diff line change 33; ; Copyright (C) 2018 Friends of Emacs-PHP development
44
55; ; Author: Martin Tang <martin.tang365@gmail.com>
6+ ; ; Mikael Kermorgant <mikael@kgtech.fi>
67; ; Created: 18 Apr 2018
78; ; Version: 0.1.0
89; ; Keywords: tools, php
@@ -56,15 +57,17 @@ Here we create a temporary syntax table in order to add $ to symbols."
5657 (mapcar
5758 (lambda (suggestion )
5859 (setq candidate (plist-get suggestion :name ))
59- (put-text-property 0 1 'annotation (plist-get suggestion :info ) candidate)
60+ (put-text-property 0 1 'annotation (plist-get suggestion :short_description ) candidate)
6061 (put-text-property 0 1 'type (plist-get suggestion :type ) candidate)
62+ (if (string= (plist-get suggestion :type ) " class" )
63+ (put-text-property 0 1 'class_import (plist-get suggestion :class_import ) candidate))
6164 candidate)
6265 suggestions)))
6366
6467(defun company-phpactor--post-completion (arg )
6568 " Trigger auto-import of completed item ARG when relevant."
66- (if (string= ( get-text-property 0 'type arg) " t " )
67- (phpactor-import-class (get-text-property 0 'annotation arg))))
69+ (if (get-text-property 0 'class_import arg)
70+ (phpactor-import-class (get-text-property 0 'class_import arg))))
6871
6972(defun company-phpactor--annotation (arg )
7073 " Show additional info (ARG) from phpactor as lateral annotation."
Original file line number Diff line number Diff line change 2626 "phpactor/completion" : " dev-master" ,
2727 "phpactor/docblock" : " @dev" ,
2828 "phpactor/path-finder" : " @dev" ,
29- "phpactor/phpactor" : " ^0.7 .0" ,
29+ "phpactor/phpactor" : " ^0.9 .0" ,
3030 "phpactor/source-code-filesystem" : " @dev" ,
3131 "phpactor/worse-reflection" : " @dev" ,
3232 "phpbench/phpbench" : " @dev" ,
You can’t perform that action at this time.
0 commit comments