Well I wasn’t restarting before, so that might explain it. When I follow the steps you outline, I see the same behavior. When I don’t restart the editor, I get the expected behavior. This is definitely a bug that should be addressed. I would think the original intent was to modify select files of a package. Hmm, I’d like to report this to jps to get this addressed, though I don’t know where the best way to get his attention is. I’ll add a post to the latest dev release. But I don’t know if he will look at it. That being said, I’ll probably repost it when the next dev release occurs.
edit:
My java example works fine. So I took a look at the console. There are errors loading the .py files when you override the snippet.
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", line 1522, in _find_and_load_unlocked
ImportError: No module named 'HTML.encode_html_entities'
reloading plugin HTML.html_completions
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", line 1522, in _find_and_load_unlocked
ImportError: No module named 'HTML.html_completions'