vscode.commands.registerCommand('joplin.test', async () => {
  await vscode.window.withProgress(
    {
      title: 'Test',
      location: vscode.ProgressLocation.Notification,
    },
    async (process) => {
      for (let i = 1; i <= 10; i++) {
        process.report({ increment: 1, message: `Processing ${i}` })
        await new Promise((resolve) => setTimeout(resolve, 1000))
      }
    },
  )
})

@laurent