Skip to content

Commit

Permalink
fix: correct document and non-document comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhongtw committed Jan 16, 2025
1 parent 0f549aa commit 493f045
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,8 @@ export async function activate(context: vscode.ExtensionContext) {
vscode.window.showInformationMessage(_t(keys.noCachedPassphrase()));
return;
}
/**
* Because of the lack of the listing function, use quick pick instead.
*/

// Because of the lack of the listing function, use quick pick instead.
await vscode.window.showQuickPick(items, {
title: _t(keys.cachedPassphraseList()),
});
Expand Down
8 changes: 4 additions & 4 deletions src/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export default class KeyStatusManager {
}
}

// Update workspace folders
/** Update workspace folders */
async updateFolders(folders: string[]): Promise<void> {
this.logger.info('Update folder information');
this.keyOfFolders.clear();
Expand All @@ -239,7 +239,7 @@ export default class KeyStatusManager {
});
}

// Change current key according to activate folder
/** Change current key according to activate folder */
async changeActivateFolder(folder: string): Promise<void> {
this._activateFolder = folder;
if (!this.isWorkspaceTrusted) {
Expand Down Expand Up @@ -278,7 +278,7 @@ export default class KeyStatusManager {
return currentKey;
}

// Lock or unlock current key
/** Lock or unlock current key */
async unlockCurrentKey(passphrase: string): Promise<void> {
if (this.activateFolder === undefined) {
throw new Error(this._t(keys.noActiveFolder()));
Expand All @@ -297,7 +297,7 @@ export default class KeyStatusManager {
await this.gpg.unlockByKey(this.currentKey.keygrip, passphrase);
}

// Stop sync key status loop
/** Stop sync key status loop */
dispose(): void {
this.disposed = true;
}
Expand Down

0 comments on commit 493f045

Please sign in to comment.