Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

330
Views
VSCode extension: How can I remove the error message automatically after x amount of time?

I'm building a VSCode extension and I have an error message which pops up if my condition turns out true. I want the error message to disappear after for example 5 seconds.

I tried the following approach:

let count = 0

if (condition) {
    setInterval(() => {
          count++
    }, 1000);
    while (count <= 5) {    
        vscode.window.showErrorMessage(`Error!`);
    }
}

But that didn't work..., How can I achieve this?

Thanks

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!