Open margusf opened 13 years ago
I cannot reproduce this behaviour. Does this happen always with your grammar or only occasionally?
It always behaves like that...
Example with log:
offset: 229 Token: "(Command)!loadStackFile" Token: "(Command)!loadStackFile", prefix: "!lo"
//This is correct //Now with the suggestions pop-up open type the letter "n"
offset: 230 Token: "(Command)!loadStackFile" Token: "(Command)!loadStackFile", prefix: "!loa" WARNING: NULL MESSAGE HANDLER!
//And suggestions according to the prefix "!loa" are shown (should be "!lon") //Now type another "n"
offset: 231 Token: "(Command)!lonadStackFile" Token: "(Command)!lonadStackFile", prefix: "!lona" WARNING: NULL MESSAGE HANDLER!
SimplicitasContentProposer:76
getToken(ctlr: ee.cyber.simplicitas.imp.parser.SimplicitasParseController, offset: Int) : ee.cyber.simplicitas.GenericToken
ei anna alati tokenit selle viimase seisuga...
Kui sa avad oma programmis contentAssist ja trükid mingi tähe, siis proposalCtx.node'ist saab mul ühe võrra pikema prefixi, aga vana sisuga.
Näiteks ( | tähistab kursorit):
abc|d23 ->(Ctrl+Space)-> array("abcd variant","abce teine","abcmidagi")
kui nüüd trükkida 'e' täht, siis token=(Rule)abcd23, prefix="abcd" ja proposali tulemus on array("abce teine")