clemos / haxe-sublime-bundle

Sublime Text bundle for Haxe programming language
Apache License 2.0
237 stars 86 forks source link

Custom snippets are not available. #98

Closed RealyUniqueName closed 11 years ago

RealyUniqueName commented 11 years ago

Once i got code completion working properly, i am unable to use my custom code snippets :) Snippets shortcuts don't appear in completion list.

clemos commented 11 years ago

Weird, Do you see the snippets from the bundle ? (for example: prop) Also, how are your snippets defined / can you give an example file ?

RealyUniqueName commented 11 years ago

Forgot to say: i'm on refactoring branch. Snippets from bundle are not available also.

Here is an example snippet:

<snippet>
    <content><![CDATA[
/**
* ${7:Description}
*
*/
${1:static }public ${2:inline }function ${4:functionName} (${5:/* args */}) : ${6:Void} {
    ${0://code...}
}//function ${4:functionName}()
]]></content>
    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
    <tabTrigger>public</tabTrigger>
    <!-- Optional: Set a scope to limit where the snippet will trigger -->
    <scope>source.haxe</scope>
</snippet>
frabbit commented 11 years ago

it seems that this is a regressen, i will try to fix it.

frabbit commented 11 years ago

should be fixed now, could you try the latest revision?

RealyUniqueName commented 11 years ago

Thanks for a fast fix!