Skip to content

Commit 39c6b3e

Browse files
committed
Fixed indent
1 parent a5f92a2 commit 39c6b3e

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

vscode/src/extension.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -510,28 +510,28 @@ export function activate(context: ExtensionContext): VSNetBeansAPI {
510510

511511
context.subscriptions.push(vscode.commands.registerCommand(COMMAND_PREFIX + ".delete.cache", async () => {
512512
const storagePath = context.storageUri?.fsPath;
513-
if(!storagePath){
513+
if (!storagePath) {
514514
vscode.window.showErrorMessage('Cannot find workspace path');
515515
return;
516516
}
517-
517+
518518
const userDir = path.join(storagePath, "userdir");
519519
if (userDir && fs.existsSync(userDir)) {
520520
const confirmation = await vscode.window.showInformationMessage('Are you sure you want to delete cache for this workspace and reload the window ?',
521521
'Yes', 'Cancel');
522522
if (confirmation === 'Yes') {
523-
try{
524-
await stopClient(client);
525-
deactivated=true;
526-
await killNbProcess(false,log);
527-
await fs.promises.rmdir(userDir, {recursive : true});
528-
await vscode.window.showInformationMessage("Cache deleted successfully",'Reload window');
529-
}catch(err){
530-
await vscode.window.showErrorMessage('Error deleting the cache','Reload window');
531-
}finally{
532-
vscode.commands.executeCommand("workbench.action.reloadWindow");
533-
}
523+
try {
524+
await stopClient(client);
525+
deactivated = true;
526+
await killNbProcess(false, log);
527+
await fs.promises.rmdir(userDir, { recursive: true });
528+
await vscode.window.showInformationMessage("Cache deleted successfully", 'Reload window');
529+
} catch (err) {
530+
await vscode.window.showErrorMessage('Error deleting the cache', 'Reload window');
531+
} finally {
532+
vscode.commands.executeCommand("workbench.action.reloadWindow");
534533
}
534+
}
535535
} else {
536536
vscode.window.showErrorMessage('Cannot find userdir path');
537537
}

0 commit comments

Comments
 (0)