ilyxa20 / flashdevelop

Automatically exported from code.google.com/p/flashdevelop
0 stars 0 forks source link

Haxe autocompletion triggers "SaveAllModified", saves everything without warning #66

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open a Haxe file
2. Edit anything in it
3. When using autocompletion (pressing "."), it'll save every modified/unsaved 
file in each open tab (it'll even remove their "*" from the file name)

What is the expected output? What do you see instead?
I don't believe this is the expected result, as you might just be testing 
something, and it'll save your file without warning. If you close the IDE, the 
file is saved even if you didn't wanted to save.
This doesn't happen when using autocomplete at a AS3 file. If there's an 
unsaved open AS3 file tab, however, it'll save it as well, when using 
autocomplete in a Haxe file.

What version of the product are you using? On what operating system?
4.4.3 RTM R2784

Please provide any additional information below.
It appears the culprit is:
/trunk/FD4/External/Plugins/HaXeContext/Completion/HaXeCompletion.cs
At line 44:
PluginBase.MainForm.CallCommand("SaveAllModified", null);

If I comment the line out, it'll fix this saving problem, but autocompletion 
won't work anymore.

Original issue reported on code.google.com by neoze...@gmail.com on 6 Sep 2013 at 4:31

GoogleCodeExporter commented 8 years ago
You're right, it should be changed to simply "Save" or save all .hx files maybe.

Original comment by philippe...@gmail.com on 8 Sep 2013 at 7:06

GoogleCodeExporter commented 8 years ago
Fixed in SVN

Original comment by philippe...@gmail.com on 8 Sep 2013 at 8:27