@@ -39,33 +39,33 @@ import {
3939
4040function registerOpenViewsCommands (
4141 context : ExtensionContext ,
42- outputChannel : any
42+ outputChannel : any ,
4343) {
4444 const showOutputCommand = commands . registerCommand (
4545 "gitguardian.showOutput" ,
4646 ( ) => {
4747 outputChannel . show ( ) ;
48- }
48+ } ,
4949 ) ;
5050
5151 const openSidebarCommand = commands . registerCommand (
5252 "gitguardian.openSidebar" ,
5353 ( ) => {
5454 commands . executeCommand ( "workbench.view.extension.gitguardian" ) ;
55- }
55+ } ,
5656 ) ;
5757
5858 const openProblemsCommand = commands . registerCommand (
5959 "gitguardian.openProblems" ,
6060 ( ) => {
6161 commands . executeCommand ( "workbench.actions.view.problems" ) ;
62- }
62+ } ,
6363 ) ;
6464
6565 context . subscriptions . push (
6666 showOutputCommand ,
6767 openSidebarCommand ,
68- openProblemsCommand
68+ openProblemsCommand ,
6969 ) ;
7070}
7171
@@ -76,50 +76,50 @@ export async function activate(context: ExtensionContext) {
7676 const ggshieldResolver = new GGShieldResolver (
7777 outputChannel ,
7878 context ,
79- configuration
79+ configuration ,
8080 ) ;
8181 const ggshieldViewProvider = new GitGuardianWebviewProvider (
8282 configuration ,
8383 context . extensionUri ,
84- context
84+ context ,
8585 ) ;
8686
8787 const ggshieldRemediationMessageViewProvider =
8888 new GitGuardianRemediationMessageWebviewProvider (
8989 configuration ,
9090 context . extensionUri ,
91- context
91+ context ,
9292 ) ;
9393 const ggshieldQuotaViewProvider = new GitGuardianQuotaWebviewProvider (
9494 configuration ,
9595 context . extensionUri ,
96- context
96+ context ,
9797 ) ;
9898 window . registerWebviewViewProvider ( "gitguardianView" , ggshieldViewProvider ) ;
9999 window . registerWebviewViewProvider (
100100 "gitguardianRemediationMessageView" ,
101- ggshieldRemediationMessageViewProvider
101+ ggshieldRemediationMessageViewProvider ,
102102 ) ;
103103 window . registerWebviewViewProvider (
104104 "gitguardianQuotaView" ,
105- ggshieldQuotaViewProvider
105+ ggshieldQuotaViewProvider ,
106106 ) ;
107107 context . subscriptions . push (
108108 ggshieldViewProvider ,
109109 ggshieldRemediationMessageViewProvider ,
110- ggshieldQuotaViewProvider
110+ ggshieldQuotaViewProvider ,
111111 ) ;
112112
113113 createStatusBarItem ( context ) ;
114114
115115 //generic commands to open correct view on status bar click
116116 registerOpenViewsCommands ( context , outputChannel ) ;
117117 commands . registerCommand ( "gitguardian.refreshQuota" , ( ) =>
118- ggshieldQuotaViewProvider . refresh ( )
118+ ggshieldQuotaViewProvider . refresh ( ) ,
119119 ) ;
120120
121121 context . subscriptions . push (
122- languages . registerHoverProvider ( "*" , new GitGuardianSecretHoverProvider ( ) )
122+ languages . registerHoverProvider ( "*" , new GitGuardianSecretHoverProvider ( ) ) ,
123123 ) ;
124124
125125 if ( ! checkGitInstalled ( ) ) {
@@ -149,12 +149,12 @@ export async function activate(context: ExtensionContext) {
149149 scanFile (
150150 textDocument . fileName ,
151151 textDocument . uri ,
152- ggshieldResolver . configuration
152+ ggshieldResolver . configuration ,
153153 ) ;
154154 }
155155 } ) ,
156156 workspace . onDidCloseTextDocument ( ( textDocument ) =>
157- cleanUpFileDiagnostics ( textDocument . uri )
157+ cleanUpFileDiagnostics ( textDocument . uri ) ,
158158 ) ,
159159 commands . registerCommand ( "gitguardian.quota" , ( ) => {
160160 showAPIQuota ( ggshieldResolver . configuration ) ;
@@ -173,12 +173,12 @@ export async function activate(context: ExtensionContext) {
173173 ignoreSecret (
174174 ggshieldResolver . configuration ,
175175 diagnosticData . secretSha ,
176- secretName
176+ secretName ,
177177 ) ;
178178 scanFile (
179179 currentFile ,
180180 Uri . file ( currentFile ) ,
181- ggshieldResolver . configuration
181+ ggshieldResolver . configuration ,
182182 ) ;
183183 } ) ,
184184 commands . registerCommand ( "gitguardian.authenticate" , async ( ) => {
@@ -187,7 +187,7 @@ export async function activate(context: ExtensionContext) {
187187 ggshieldResolver . configuration ,
188188 outputChannel ,
189189 ggshieldViewProvider . getView ( ) as WebviewView ,
190- context
190+ context ,
191191 )
192192 . then ( async ( ) => {
193193 await updateAuthenticationStatus ( context , configuration ) ;
@@ -212,8 +212,8 @@ export async function activate(context: ExtensionContext) {
212212 ggshieldViewProvider . refresh ( ) ;
213213 ggshieldRemediationMessageViewProvider . refresh ( ) ;
214214 ggshieldQuotaViewProvider . refresh ( ) ;
215- }
216- )
215+ } ,
216+ ) ,
217217 ) ;
218218}
219219
0 commit comments