Closed subhaze closed 11 years ago
If you use a $ to prefix functions the completion will not complete just leaving you with the $
$
Example:
{ "!name": "mylibrary", "!def": { "point": { "x": "number", "y": "number" } }, "$MyConstructor": { "!type": "fn(arg: string)", "staticFunction": "fn() -> bool", "prototype": { "property": "[number]", "clone": "fn() -> +MyConstructor", "getPoint": "fn(i: number) -> point" } }, "MyConstructor": { "!type": "fn(arg: string)", "staticFunction": "fn() -> bool", "prototype": { "property": "[number]", "clone": "fn() -> +MyConstructor", "getPoint": "fn(i: number) -> point" } }, "someOtherGlobal": "string" }
In the above example MyCon will correctly completed to MyConstructor, however, $MyCon will complete to $
MyCon
MyConstructor
$MyCon
All seems to be well now, patched here https://github.com/marijnh/tern_for_sublime/commit/51d24eded8a81968c4dc124a3d6a1515fbb9a3f1
If you use a
$
to prefix functions the completion will not complete just leaving you with the$
Example:
In the above example
MyCon
will correctly completed toMyConstructor
, however,$MyCon
will complete to$