iTrace-Dev / iTrace-Atom

iTrace plugin for Atom that connects to iTrace-Core
GNU General Public License v3.0
1 stars 0 forks source link

Atom Plugin Files Don't Save File Path #10

Open Joshua2000B opened 2 years ago

Joshua2000B commented 2 years ago

When saving elements in the Atom plugin file, the source_file_path attribute does not contain the full file path, just the file name.

psybers commented 1 year ago

That is probably this line: https://github.com/iTrace-Dev/iTrace-Atom/blob/dd5da81ed3fcc9a253687731fe373c2bcf7a6142/lib/editor-handler.js#L50

getBaseName() just gives you a filename (with no path). I am not sure what type file is, but that probably is the full path if you just turn it into a string.