@@ -141,7 +141,7 @@ export default class MainController implements vscode.Disposable {
141
141
* Disposes the controller
142
142
*/
143
143
dispose ( ) : void {
144
- this . deactivate ( ) ;
144
+ void this . deactivate ( ) ;
145
145
}
146
146
147
147
/**
@@ -177,16 +177,16 @@ export default class MainController implements vscode.Disposable {
177
177
// register VS Code commands
178
178
this . registerCommand ( Constants . cmdConnect ) ;
179
179
this . _event . on ( Constants . cmdConnect , ( ) => {
180
- this . runAndLogErrors ( this . onNewConnection ( ) ) ;
180
+ void this . runAndLogErrors ( this . onNewConnection ( ) ) ;
181
181
} ) ;
182
182
this . registerCommand ( Constants . cmdDisconnect ) ;
183
183
this . _event . on ( Constants . cmdDisconnect , ( ) => {
184
- this . runAndLogErrors ( this . onDisconnect ( ) ) ;
184
+ void this . runAndLogErrors ( this . onDisconnect ( ) ) ;
185
185
} ) ;
186
186
this . registerCommand ( Constants . cmdRunQuery ) ;
187
187
this . _event . on ( Constants . cmdRunQuery , ( ) => {
188
- UserSurvey . getInstance ( ) . promptUserForNPSFeedback ( ) ;
189
- this . onRunQuery ( ) ;
188
+ void UserSurvey . getInstance ( ) . promptUserForNPSFeedback ( ) ;
189
+ void this . onRunQuery ( ) ;
190
190
} ) ;
191
191
this . registerCommand ( Constants . cmdManageConnectionProfiles ) ;
192
192
this . _event . on ( Constants . cmdManageConnectionProfiles , async ( ) => {
@@ -198,19 +198,19 @@ export default class MainController implements vscode.Disposable {
198
198
} ) ;
199
199
this . registerCommand ( Constants . cmdRunCurrentStatement ) ;
200
200
this . _event . on ( Constants . cmdRunCurrentStatement , ( ) => {
201
- this . onRunCurrentStatement ( ) ;
201
+ void this . onRunCurrentStatement ( ) ;
202
202
} ) ;
203
203
this . registerCommand ( Constants . cmdChangeDatabase ) ;
204
204
this . _event . on ( Constants . cmdChangeDatabase , ( ) => {
205
- this . runAndLogErrors ( this . onChooseDatabase ( ) ) ;
205
+ void this . runAndLogErrors ( this . onChooseDatabase ( ) ) ;
206
206
} ) ;
207
207
this . registerCommand ( Constants . cmdChooseDatabase ) ;
208
208
this . _event . on ( Constants . cmdChooseDatabase , ( ) => {
209
- this . runAndLogErrors ( this . onChooseDatabase ( ) ) ;
209
+ void this . runAndLogErrors ( this . onChooseDatabase ( ) ) ;
210
210
} ) ;
211
211
this . registerCommand ( Constants . cmdChooseLanguageFlavor ) ;
212
212
this . _event . on ( Constants . cmdChooseLanguageFlavor , ( ) => {
213
- this . runAndLogErrors ( this . onChooseLanguageFlavor ( ) ) ;
213
+ void this . runAndLogErrors ( this . onChooseLanguageFlavor ( ) ) ;
214
214
} ) ;
215
215
this . registerCommand ( Constants . cmdLaunchUserFeedback ) ;
216
216
this . _event . on ( Constants . cmdLaunchUserFeedback , async ( ) => {
@@ -536,7 +536,7 @@ export default class MainController implements vscode.Disposable {
536
536
537
537
// Shows first time notifications on extension installation or update
538
538
// This call is intentionally not awaited to avoid blocking extension activation
539
- this . showFirstLaunchPrompts ( ) ;
539
+ void this . showFirstLaunchPrompts ( ) ;
540
540
541
541
// Handle case where SQL file is the 1st opened document
542
542
const activeTextEditor = this . _vscodeWrapper . activeTextEditor ;
@@ -1269,7 +1269,7 @@ export default class MainController implements vscode.Disposable {
1269
1269
if ( this . canRunCommand ( ) && this . validateTextDocumentHasFocus ( ) ) {
1270
1270
const fileUri = this . _vscodeWrapper . activeTextEditorUri ;
1271
1271
if ( fileUri && this . _vscodeWrapper . isEditingSqlFile ) {
1272
- this . _connectionMgr . onChooseLanguageFlavor ( ) ;
1272
+ void this . _connectionMgr . onChooseLanguageFlavor ( ) ;
1273
1273
} else {
1274
1274
this . _vscodeWrapper . showWarningMessage (
1275
1275
LocalizedConstants . msgOpenSqlFile ,
@@ -1997,7 +1997,7 @@ export default class MainController implements vscode.Disposable {
1997
1997
( await this . _objectExplorerProvider . getChildren ( ) ) . forEach (
1998
1998
( n : TreeNodeInfo ) => {
1999
1999
try {
2000
- this . _objectExplorerProvider . refreshNode ( n ) ;
2000
+ void this . _objectExplorerProvider . refreshNode ( n ) ;
2001
2001
} catch ( e ) {
2002
2002
errorFoundWhileRefreshing = true ;
2003
2003
this . _connectionMgr . client . logger . error ( e ) ;
@@ -2079,11 +2079,11 @@ export default class MainController implements vscode.Disposable {
2079
2079
}
2080
2080
2081
2081
public removeAadAccount ( prompter : IPrompter ) : void {
2082
- this . connectionManager . removeAccount ( prompter ) ;
2082
+ void this . connectionManager . removeAccount ( prompter ) ;
2083
2083
}
2084
2084
2085
2085
public addAadAccount ( ) : void {
2086
- this . connectionManager . addAccount ( ) ;
2086
+ void this . connectionManager . addAccount ( ) ;
2087
2087
}
2088
2088
2089
2089
public onClearAzureTokenCache ( ) : void {
0 commit comments