question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extension not working at the first time VS Code startup

See original GitHub issue

the 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>

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
alexanderniebuhrcommented, Aug 30, 2021
1reaction
teralescommented, Aug 25, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found