skitscript / extension-vscode

MIT License
0 stars 0 forks source link

Autocomplete #78

Open siliconspecter opened 2 weeks ago

siliconspecter commented 2 weeks ago

Jump to -> suggest labels. Jump to <anything> when -> suggest flag. Jump to <anything> when not -> suggest flag. Jump to <anything> when <anything>, -> suggest flag. Jump to <anything> when <anything> and -> suggest flag, add period. Jump to <anything> when <anything> or -> suggest flag, add period. Jump to <anything> when not <anything>, -> suggest flag. Jump to <anything> when not <anything> and -> suggest flag, add period. Jump to <anything> when not <anything> or -> suggest flag, add period. <anything> leads to -> suggest labels. <anything> leads to <anything> when -> suggest flag, not. <anything> leads to <anything> when not -> suggest flag. <anything> leads to <anything> when <anything>, -> suggest flag. <anything> leads to <anything> when <anything> and -> suggest flag, add period. <anything> leads to <anything> when <anything> or -> suggest flag, add period. <anything> leads to <anything> when not <anything>, -> suggest flag. <anything> leads to <anything> when not <anything> and -> suggest flag, add period. <anything> leads to <anything> when not <anything> or -> suggest flag, add period. Set -> suggest flag. Set <anything>, -> suggest flag. Set <anything> and -> suggest flag, add period. Clear -> suggest flag. Clear <anything>, -> suggest flag. Clear <anything> and -> suggest flag, add period. <character name> -> suggest is, enters, exits. <character name> is -> suggest emote, add period. <character name> enters -> suggest animation. <character name> enters <animation> -> suggest period, emotes (with comma and period). <character name> exits -> suggest animation. <character name> exits <animation -> suggest period, emotes (with comma and period). <character name>, -> suggest character name. <character name> and -> suggest character name. <character name> is -> suggest emote name. <character names> and <character name> -> suggest are, enter, exit. <character names> and <character name> are -> suggest emote, add period. <character names> and <character name> exit -> suggest exit animation names. <character names> and <character name> exit <animation> -> suggest period, emotes (with comma and period). <character names> and <character name> enter -> suggest entry animation names, add period. <character names> and <character name> enter <animation> -> suggest period, emotes (with comma and period). ~ -> Suggest any currently referenced and undeclared label.

siliconspecter commented 2 weeks ago

Looks like the API to make this function is registerCompletionItemProvider. Note that the file won't be parseable in most of these examples, so an identifier cache will be required. Also, it should not suggest identifiers which are already on the line, e.g. the same flag twice.