diff --git a/package.json b/package.json index ffc6944..980fd98 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,9 @@ "activationEvents": [ "*" ], - "extensionKind": ["ui"], + "extensionKind": [ + "ui" + ], "contributes": { "commands": [ { @@ -215,6 +217,8 @@ "extends": "marine/prettier/node" }, "renovate": { - "extends": ["teal"] + "extends": [ + "teal" + ] } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b58ee04..9b34d17 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -115,6 +115,7 @@ packages: functional-red-black-tree: 1.0.1 regexpp: 3.0.0 tsutils: 3.17.1_typescript@3.7.5 + typescript: 3.7.5 dev: true engines: node: ^8.10.0 || ^10.13.0 || >=11.10.1 @@ -148,6 +149,7 @@ packages: '@typescript-eslint/typescript-estree': 2.17.0_typescript@3.7.5 eslint: 6.8.0 eslint-visitor-keys: 1.1.0 + typescript: 3.7.5 dev: true engines: node: ^8.10.0 || ^10.13.0 || >=11.10.1 @@ -168,6 +170,7 @@ packages: lodash: 4.17.15 semver: 6.3.0 tsutils: 3.17.1_typescript@3.7.5 + typescript: 3.7.5 dev: true engines: node: ^8.10.0 || ^10.13.0 || >=11.10.1 diff --git a/src/extension.ts b/src/extension.ts index 58378bf..a3a4e52 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -23,7 +23,7 @@ export async function activate(context: ExtensionContext) { const regex = new RegExp(pattern); const folders = workspace.workspaceFolders; if (!folders) break; - if (folders.some(folder => regex.test(folder.uri.fsPath))) { + if (folders.some((folder) => regex.test(folder.uri.fsPath))) { isWorkspaceExcluded = true; break; } @@ -122,4 +122,4 @@ export async function deactivate() { await rpc.dispose(); } -process.on('unhandledRejection', err => Logger.log(err as string)); +process.on('unhandledRejection', (err) => Logger.log(err as string)); diff --git a/src/structures/Activity.ts b/src/structures/Activity.ts index 4c282e4..18d2770 100644 --- a/src/structures/Activity.ts +++ b/src/structures/Activity.ts @@ -78,7 +78,7 @@ export default class Activity implements Disposable { const filename = basename(window.activeTextEditor.document.fileName); largeImageKey = knownExtentions[ - Object.keys(knownExtentions).find(key => { + Object.keys(knownExtentions).find((key) => { if (filename.endsWith(key)) return true; const match = /^\/(.*)\/([mgiy]+)$/.exec(key); if (!match) return false; @@ -353,7 +353,7 @@ export default class Activity implements Disposable { if (str.includes('{gitbranch}')) { if (this.client.git?.repositories.length) { - fileDetail.gitbranch = this.client.git.repositories.find(repo => repo.ui.selected)!.state.HEAD!.name; + fileDetail.gitbranch = this.client.git.repositories.find((repo) => repo.ui.selected)!.state.HEAD!.name; } else { fileDetail.gitbranch = 'Unknown'; } @@ -362,7 +362,7 @@ export default class Activity implements Disposable { if (str.includes('{gitreponame}')) { if (this.client.git?.repositories.length) { fileDetail.gitreponame = this.client.git.repositories - .find(repo => repo.ui.selected)! + .find((repo) => repo.ui.selected)! .state.remotes[0].fetchUrl!.split('/')[1] .replace('.git', ''); } else {