soef / iobroker.js2fs

replicate ioBroker scripts to files
MIT License
6 stars 0 forks source link

Files should saved with the right extendion #19

Closed Hypnos3 closed 6 years ago

Hypnos3 commented 6 years ago

The adapter saves all files as javascript files with the ending ".js" independend of the type of the script.

For TypeScript the ending ".ts" shoudl be used and for Coffescript ".coffee" so that the external editor uses the right syntax highlightening and the right type checking functionality.

Example VSCode does not work correctly on typescript files which are saved with ending ".js" instead of ".ts".

Editing Blockly javascript files with an external editer could break the Blockly functionality, so for Blockly it will be also nice to have an extension like ".blockly" so that it is visible that this is a blockly javascript file which should not be edited.

To use js2fs also for blocly does make sense if js2fs is used for backup the scripts.