-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add ts-nocheck for configureGit function
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,12 +94,13 @@ class SnykExtension extends SnykLib implements IExtension { | |
|
||
try { | ||
await this.initializeExtension(vscodeContext, snykConfiguration); | ||
await this.configureGitHandlers(); | ||
this.configureGitHandlers(); | ||
} catch (e) { | ||
ErrorHandler.handle(e, Logger); | ||
} | ||
} | ||
|
||
// @ts-nocheck: we use any to prevent loading types from external extension | ||
Check failure on line 103 in src/snyk/extension.ts GitHub Actions / Build and Test (ubuntu-latest)
Check failure on line 103 in src/snyk/extension.ts GitHub Actions / Build and Test (macos-latest)
|
||
private configureGitHandlers(): void { | ||
// Get the Git extension | ||
const gitExtension = vscode.extensions.getExtension('vscode.git')?.exports; | ||
|
@@ -113,7 +114,6 @@ class SnykExtension extends SnykLib implements IExtension { | |
|
||
// Check if there are any repositories | ||
const repositories = git?.repositories; | ||
Check failure on line 116 in src/snyk/extension.ts GitHub Actions / Build and Test (ubuntu-latest)
|
||
|
||
if (!repositories || repositories.length === 0) { | ||
Check failure on line 117 in src/snyk/extension.ts GitHub Actions / Build and Test (ubuntu-latest)
|
||
return; | ||
} | ||
|