- Edited
I've had to switch to VS Code because nothing I tried fixed this issue.
My employer bought 3 years of VS because I told them it would be the IDE I'm using for this project and now I'm going to have to tell them this plugin is incredibly buggy in VS.
I disabled every plugin, I repaired VS, I remade my solution, and nothing fixed the issue. I even installed the preview version of the extension from the 23rd.
It happens within JS code. The specific block was JQuery. Here is the block in question:
<?if($user->getID()){?>
$(document).ready(function(){
setTimeout(function(){
showLogoutModal();
setTimeout(function(){
if ($('#modal-confirm-hidden').val() == "false") {
window.location = "<?=modURL("login_logout")."&errmsg=" . ERROR_LOGIN_EXPIRED;?>"
}
}, <?= LOGIN_WARNING_SECONDS * 1000; ?>);
}, <?= (LOGIN_MAX_SECONDS - LOGIN_WARNING_SECONDS) * 1000; ?>);
});
<?}?>
I'm using short tags.
I apologize for being curt with this post but I've had numerous problems in the month I've used this plugin with Visual Studio 2022 from autocomplete deleting huge chunks of code to formatting indenting endlessly and now this bug where I can not work around it at all.
They are currently doing a request for funds to purchase the plugin but if I can't switch between VS and VS Code when I have problems I don't know if I can do it.