I want to override 1 of PHP’s completions. I don’t want to override the entire PHP.sublime-completions
file, because (I assume) that will be updated by ST occasionally, and I do want those updates.
If I add a completion in my custom completions (Packages/User/RudieCustom/php-custom.sublime-completions
) with the exact same scope/trigger/kind etc, ST just shows both completions, with the exact same label.
My case is microtime()
. ST’s microtime doesn’t include the as_float
argument:
{
"trigger": "microtime()",
"contents": "microtime()",
"kind": "function",
"details": "Return current Unix timestamp with microseconds"
},
and I always want that argument: microtime(true)
, so I copied the whole block and added the true
in contents
. But now there are 2 microtime()
triggers. I can rename my custom one (which I did for now), but I don’t want to keep the old one, I want to override it. Can I do that without editing/copying PHP.sublime-completions
?