-
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
.phpstorm.meta.php:
<?php
namespace PHPSTORM_META {
xAdvancedCompletion(\My\Stuff\Example::formatDate(), 1, 'date_format');
}User code:
$x = new Example();
$x->formatDate($val, '<caret>');Plugin's built-in .phpstorm.meta.php:
<?php
namespace PHPSTORM_META {
function xAdvancedCompletion($functionReference, $argumentIndex, $completionList) {
return "xAdvancedCompletion " . $functionReference . " at " . $argumentIndex . ": " . $completionList;
}
registerArgumentsSet('x_advanced_completion_lists', 'date_format', 'strftime_format' /*...*/);
expectedArguments(\PHPSTORM_META\xAdvancedCompletion(), 2, argumentsSet('x_advanced_completion_lists');
}Solves #19
Metadata
Metadata
Assignees
Labels
No labels