In VSCode when using the "SuiteScript: Compare to ...
# suitescript
e
In VSCode when using the "SuiteScript: Compare to Account File" feature, the compare works the FIRST time I use it... but then if I try to compare a different file, It compares the new file to the FIRST file from the file cabinet. I have to reload VSCode between EVERY file comparison. ex: I use "Compare to Account File" on a file called "first.js" and VSCode shows the diffeditor for the local version of "first.js" compared to "first.js" from the file cabinet (as expected) But then when I use "Compare to Account File" of a file called "second.js", VSCode shows the diffeditor for the local version of "second.js" compared to "*first.js*" from the file cabinet (doesn't compare it to second.js from the file cabinet) Has anyone else seen this or know how I can fix it?
facepalm 1
s
I'd recommend developing a flow that doesn't really involve comparing as a normal course of business
i.e. have your version control be the source of truth, and you push that truth to the target environment. Changes only made via source control.
e
^ This is definitely ideal, but not always possible in contexts where you don't own the account or have exclusive control over the features/files.
e
Exactly that @erictgrubaugh In this case, changes were pushed to clients production account, but never committed to the repo. I just want to compare files to visualize which changes were made / what needs to be committed to the repo to get it back "up to date"
s
Maybe take a look at Salto.io?
e
👍🏻 1
e
This is cliche, but have you tried restarting?
e
Though cliche, you're not wrong for suggesting it. I will fully restart my mac after work today. Haven't done so in a while
p
I am having this same issue, is this a known issue for VS Code. I haven’t encountered this before.