mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-26 01:25:38 -05:00
Renable Strict TSLint (#5018)
* removes more builder references * remove builder from profiler * formatting * fix profiler dailog * remove builder from oatuhdialog * remove the rest of builder references * formatting * add more strict null checks to base * enable strict tslint rules * fix formatting * fix compile error * fix the rest of the hygeny issues and add pipeline step * fix pipeline files
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
'use strict';
|
||||
|
||||
import { ConnectionProfile } from 'sql/platform/connection/common/connectionProfile';
|
||||
import * as WorkbenchUtils from 'sql/workbench/common/sqlWorkbenchUtils';
|
||||
@@ -703,8 +702,6 @@ export class ConnectionManagementService extends Disposable implements IConnecti
|
||||
/**
|
||||
* Returns a formatted URI in case the database field is empty for the original
|
||||
* URI, which happens when the connected database is master or the default database
|
||||
* @param uri
|
||||
* @param connectionProfile
|
||||
*/
|
||||
public getFormattedUri(uri: string, connectionProfile: IConnectionProfile): string {
|
||||
if (this._connectionStatusManager.isDefaultTypeUri(uri)) {
|
||||
@@ -718,11 +715,10 @@ export class ConnectionManagementService extends Disposable implements IConnecti
|
||||
* Sends a notification that the language flavor for a given URI has changed.
|
||||
* For SQL, this would be the specific SQL implementation being used.
|
||||
*
|
||||
* @param {string} uri the URI of the resource whose language has changed
|
||||
* @param {string} language the base language
|
||||
* @param {string} flavor the specific language flavor that's been set
|
||||
* @param uri the URI of the resource whose language has changed
|
||||
* @param language the base language
|
||||
* @param flavor the specific language flavor that's been set
|
||||
* @throws {Error} if the provider is not in the list of registered providers
|
||||
* @memberof ConnectionManagementService
|
||||
*/
|
||||
public doChangeLanguageFlavor(uri: string, language: string, provider: string): void {
|
||||
if (this._providers.has(provider)) {
|
||||
@@ -738,8 +734,7 @@ export class ConnectionManagementService extends Disposable implements IConnecti
|
||||
|
||||
/**
|
||||
* Ensures that a default language flavor is set for a URI, if none has already been defined.
|
||||
* @param {string} uri document identifier
|
||||
* @memberof ConnectionManagementService
|
||||
* @param uri document identifier
|
||||
*/
|
||||
public ensureDefaultLanguageFlavor(uri: string): void {
|
||||
if (!this.getProviderIdFromUri(uri)) {
|
||||
@@ -973,7 +968,7 @@ export class ConnectionManagementService extends Disposable implements IConnecti
|
||||
return new Promise<boolean>((resolve, reject) => {
|
||||
// If the URI is connected, disconnect it and the editor
|
||||
if (self.isConnected(owner.uri)) {
|
||||
var connection = self.getConnectionProfile(owner.uri);
|
||||
let connection = self.getConnectionProfile(owner.uri);
|
||||
owner.onDisconnect();
|
||||
resolve(self.doDisconnect(owner.uri, connection));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user