Extension not working at the first time VS Code startup
See original GitHub issuethe key page.login.ms365
is used in the svelte file, but the extension does not find it in its overview.
Or I am misunderstanding that view
<script>
import { useRouter } from "@svelteuse/router";
import { onMount } from "svelte";
import { msalInstance } from "../logic/auth.js";
import { t } from "svelte-i18n";
onMount(() => {
console.log("onMount Login Page");
async function init() {
let redirectResponse = await msalInstance.handleRedirectPromise();
if (redirectResponse !== null) {
$useRouter.navigate("/");
window.location.reload();
}
}
init();
});
async function handle365Login(event) {
console.log("LOGIN EVENT");
msalInstance.loginRedirect().catch((e) => {
console.error(e);
});
}
</script>
<f-button class="bg-light-300" on:click={(e) => handle365Login(e)}>
{$t("page.login.ms365")}
</f-button>
<style>
</style>
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
vs-code extension doesn't Activate on startup - Stack Overflow
I'm developing a vs-code extension, I wrote a code for cron-jobs (runs extension at a certain time) and it works well. the problem...
Read more >Managing Extensions in Visual Studio Code
VS Code makes it easy to manage your extensions. You can install, disable, update, and uninstall extensions through the Extensions view, the Command...
Read more >VSCode window not responsive on startup, even with ... - GitHub
What I have tried: starting with code --verbose --disable-extensions; deleting my workspace file so that there's no open docs or folders.
Read more >Here's How to Make VSCode Faster
As a last-ditch effort, I would suggest trying out a fresh install of VS Code. It may or may not help, but what...
Read more >VS Code Performance – How to Optimize Visual Studio Code ...
What do you do if the startup of VS Code grows? ... The cold activation time is the first run of the extension...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@antfu @terales works now with my test project. So I think https://github.com/lokalise/i18n-ally/commit/bee57f2816c4cf8eab06e694a4e21832c1d173eb did it
Can’t fix it as we cannot catch the root cause of it. Let’s close for now and stick to reloading VS Code as a workaround.