Converting warning to errors on eslint and fixing copyright issues. (#17910)
* Adding recommended extension * Fixing linting errors * use undefined instead of null * Update eslint configuration and add eslint-plugin-deprecation * Reverting code changes * reverting more code changes * more null changes and change rule to warn
This commit is contained in:
Родитель
96b3109710
Коммит
b981673813
|
@ -3,21 +3,29 @@
|
|||
import tseslint from 'typescript-eslint';
|
||||
import notice from "eslint-plugin-notice";
|
||||
import jsdoc from 'eslint-plugin-jsdoc';
|
||||
import deprecationPlugin from "eslint-plugin-deprecation";
|
||||
import { fixupPluginRules } from "@eslint/compat";
|
||||
|
||||
export default [
|
||||
{
|
||||
files: ['**/*.ts', '**/*.tsx'],
|
||||
ignores: ['src/prompts/**/*.ts'], // Ignore prompts files as they are copied from other repos
|
||||
ignores: ['src/prompts/**/*.ts', 'typings/**.*.d.ts'], // Ignore prompts files as they are copied from other repos
|
||||
languageOptions: {
|
||||
parser: tseslint.parser
|
||||
parser: tseslint.parser,
|
||||
parserOptions: {
|
||||
project: "./tsconfig.json"
|
||||
},
|
||||
},
|
||||
plugins: {
|
||||
notice,
|
||||
jsdoc
|
||||
jsdoc,
|
||||
['@typescript-eslint']: tseslint.plugin,
|
||||
// @ts-ignore
|
||||
["deprecation"]: fixupPluginRules(deprecationPlugin),
|
||||
},
|
||||
rules: {
|
||||
"notice/notice": [
|
||||
"warn",
|
||||
"error",
|
||||
{
|
||||
template: `/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
@ -66,6 +74,46 @@ export default [
|
|||
"no-var": "off",
|
||||
"semi": "off",
|
||||
"jsdoc/no-types": "warn",
|
||||
"no-restricted-syntax": [
|
||||
'warn',
|
||||
"Literal[raw='null']"
|
||||
],
|
||||
"@typescript-eslint/no-explicit-any": "warn",
|
||||
// Not really that useful, there are valid reasons to have empty functions
|
||||
"@typescript-eslint/no-empty-function": "off",
|
||||
"@typescript-eslint/no-inferrable-types": [
|
||||
"warn",
|
||||
{
|
||||
"ignoreParameters": true,
|
||||
"ignoreProperties": true
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/no-unused-vars": [
|
||||
"warn",
|
||||
{
|
||||
"argsIgnorePattern": "^_"
|
||||
}
|
||||
],
|
||||
"deprecation/deprecation": "warn",
|
||||
"@typescript-eslint/no-floating-promises": [
|
||||
"warn",
|
||||
{
|
||||
"ignoreVoid": true
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/naming-convention": [
|
||||
"warn",
|
||||
{
|
||||
"selector": "property",
|
||||
"modifiers": [
|
||||
"private"
|
||||
],
|
||||
"format": [
|
||||
"camelCase"
|
||||
],
|
||||
"leadingUnderscore": "require"
|
||||
}
|
||||
]
|
||||
},
|
||||
}
|
||||
];
|
|
@ -62,6 +62,7 @@
|
|||
"@angular/platform-browser-dynamic": "~2.1.2",
|
||||
"@angular/router": "~3.1.2",
|
||||
"@angular/upgrade": "~2.1.2",
|
||||
"@eslint/compat": "^1.1.0",
|
||||
"@eslint/js": "^9.5.0",
|
||||
"@types/azdata": "^1.44.0",
|
||||
"@types/ejs": "^3.1.0",
|
||||
|
@ -87,6 +88,7 @@
|
|||
"decache": "^4.1.0",
|
||||
"del": "^2.2.1",
|
||||
"eslint": "^9.5.0",
|
||||
"eslint-plugin-deprecation": "^3.0.0",
|
||||
"eslint-plugin-jsdoc": "^48.2.12",
|
||||
"eslint-plugin-notice": "^1.0.0",
|
||||
"gulp": "^4.0.2",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import SqlToolsServiceClient from '../languageservice/serviceclient';
|
||||
import { IAzureSession } from '../models/interfaces';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import { IAccount } from '../models/contracts/azure';
|
||||
|
@ -49,8 +49,8 @@ export class AccountStore {
|
|||
/**
|
||||
* Adds an account to the account store.
|
||||
*
|
||||
* @param {IAccount} account the account to add
|
||||
* @returns {Promise<void>} a Promise that returns when the account was saved
|
||||
* @param account the account to add
|
||||
* @returns a Promise that returns when the account was saved
|
||||
*/
|
||||
public async addAccount(account: IAccount): Promise<void> {
|
||||
if (account) {
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as os from 'os';
|
||||
import * as crypto from 'crypto';
|
||||
import * as vscode from 'vscode';
|
||||
|
|
|
@ -23,7 +23,6 @@ export type GetTenantsResponseData = {
|
|||
};
|
||||
export type ErrorResponseBodyWithError = Required<ErrorResponseBody>;
|
||||
|
||||
// tslint:disable:no-null-keyword
|
||||
export abstract class MsalAzureAuth {
|
||||
protected readonly loginEndpointUrl: string;
|
||||
protected readonly redirectUri: string;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as Constants from '../constants/constants';
|
||||
import * as LocalizedConstants from '../constants/localizedConstants';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { IConnectionProfile } from '../models/interfaces';
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import VscodeWrapper from './vscodeWrapper';
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import SqlToolsServerClient from '../languageservice/serviceclient';
|
||||
import * as Contracts from '../models/contracts';
|
||||
|
@ -28,8 +29,8 @@ export class CredentialStore implements ICredentialStore {
|
|||
|
||||
/**
|
||||
* Gets a credential saved in the credential store
|
||||
* @param {string} credentialId the ID uniquely identifying this credential
|
||||
* @returns {Promise<Credential>} Promise that resolved to the credential, or undefined if not found
|
||||
* @param credentialId the ID uniquely identifying this credential
|
||||
* @returns Promise that resolved to the credential, or undefined if not found
|
||||
*/
|
||||
public async readCredential(credentialId: string): Promise<Contracts.Credential> {
|
||||
let cred: Contracts.Credential = new Contracts.Credential();
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
// This code is originally from https://github.com/microsoft/vsts-vscode
|
||||
// License: https://github.com/Microsoft/vsts-vscode/blob/master/LICENSE.txt
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import {
|
||||
CreateFirewallRuleRequest, HandleFirewallRuleRequest,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as tmp from 'tmp';
|
||||
import { ILogger } from '../models/interfaces';
|
||||
import * as vscodeMssql from 'vscode-mssql';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import {
|
||||
|
@ -74,10 +74,10 @@ class LanguageClientErrorHandler {
|
|||
/**
|
||||
* Callback for language service client error
|
||||
*
|
||||
* @param {Error} error
|
||||
* @param {Message} message
|
||||
* @param {number} count
|
||||
* @returns {ErrorAction}
|
||||
* @param error
|
||||
* @param message
|
||||
* @param count
|
||||
* @returns
|
||||
*
|
||||
* @memberOf LanguageClientErrorHandler
|
||||
*/
|
||||
|
@ -92,7 +92,7 @@ class LanguageClientErrorHandler {
|
|||
/**
|
||||
* Callback for language service client closed
|
||||
*
|
||||
* @returns {CloseAction}
|
||||
* @returns
|
||||
*
|
||||
* @memberOf LanguageClientErrorHandler
|
||||
*/
|
||||
|
@ -238,7 +238,7 @@ export default class SqlToolsServiceClient {
|
|||
* Gets the known service version of the backing tools service. This can be useful for filtering
|
||||
* commands that are not supported if the tools service is below a certain known version
|
||||
*
|
||||
* @returns {number}
|
||||
* @returns
|
||||
* @memberof SqlToolsServiceClient
|
||||
*/
|
||||
public getServiceVersion(): number {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import SqlToolsServiceClient from '../languageservice/serviceclient';
|
||||
import ConnectionManager from '../controllers/connectionManager';
|
||||
|
|
|
@ -15,8 +15,8 @@ import * as Utils from './utils';
|
|||
* if connection to Azure
|
||||
*
|
||||
* @export connectionInfo/fixupConnectionCredentials
|
||||
* @param {Interfaces.IConnectionCredentials} connCreds connection to be fixed up
|
||||
* @returns {Interfaces.IConnectionCredentials} the updated connection
|
||||
* @param connCreds connection to be fixed up
|
||||
* @returns the updated connection
|
||||
*/
|
||||
export function fixupConnectionCredentials(connCreds: IConnectionInfo): IConnectionInfo {
|
||||
if (!connCreds.server) {
|
||||
|
@ -89,9 +89,9 @@ function isAzureDatabase(server: string): boolean {
|
|||
* Gets a label describing a connection in the picklist UI
|
||||
*
|
||||
* @export connectionInfo/getPicklistLabel
|
||||
* @param {Interfaces.IConnectionCredentials} connCreds connection to create a label for
|
||||
* @param {Interfaces.CredentialsQuickPickItemType} itemType type of quickpick item to display - this influences the icon shown to the user
|
||||
* @returns {string} user readable label
|
||||
* @param connCreds connection to create a label for
|
||||
* @param itemType type of quickpick item to display - this influences the icon shown to the user
|
||||
* @returns user readable label
|
||||
*/
|
||||
export function getPicklistLabel(connCreds: IConnectionInfo, itemType: Interfaces.CredentialsQuickPickItemType): string {
|
||||
let profile: Interfaces.IConnectionProfile = <Interfaces.IConnectionProfile>connCreds;
|
||||
|
@ -107,8 +107,8 @@ export function getPicklistLabel(connCreds: IConnectionInfo, itemType: Interface
|
|||
* Gets a description for a connection to display in the picklist UI
|
||||
*
|
||||
* @export connectionInfo/getPicklistDescription
|
||||
* @param {Interfaces.IConnectionCredentials} connCreds connection
|
||||
* @returns {string} description
|
||||
* @param connCreds connection
|
||||
* @returns description
|
||||
*/
|
||||
export function getPicklistDescription(connCreds: IConnectionInfo): string {
|
||||
let desc: string = `[${getConnectionDisplayString(connCreds)}]`;
|
||||
|
@ -119,8 +119,8 @@ export function getPicklistDescription(connCreds: IConnectionInfo): string {
|
|||
* Gets detailed information about a connection, which can be displayed in the picklist UI
|
||||
*
|
||||
* @export connectionInfo/getPicklistDetails
|
||||
* @param {Interfaces.IConnectionCredentials} connCreds connection
|
||||
* @returns {string} details
|
||||
* @param connCreds connection
|
||||
* @returns details
|
||||
*/
|
||||
export function getPicklistDetails(connCreds: IConnectionInfo): string {
|
||||
// In the current spec this is left empty intentionally. Leaving the method as this may change in the future
|
||||
|
@ -132,8 +132,8 @@ export function getPicklistDetails(connCreds: IConnectionInfo): string {
|
|||
* information that can be shown in a number of different UI locations
|
||||
*
|
||||
* @export connectionInfo/getConnectionDisplayString
|
||||
* @param {Interfaces.IConnectionCredentials} conn connection
|
||||
* @returns {string} display string that can be used in status view or other locations
|
||||
* @param conn connection
|
||||
* @returns display string that can be used in status view or other locations
|
||||
*/
|
||||
export function getConnectionDisplayString(creds: IConnectionInfo): string {
|
||||
// Update the connection text
|
||||
|
@ -166,9 +166,9 @@ function appendIfNotEmpty(connectionText: string, value: string): string {
|
|||
* Gets a formatted display version of a username, or the domain user if using Integrated authentication
|
||||
*
|
||||
* @export connectionInfo/getUserNameOrDomainLogin
|
||||
* @param {Interfaces.IConnectionCredentials} conn connection
|
||||
* @param {string} [defaultValue] optional default value to use if username is empty and this is not an Integrated auth profile
|
||||
* @returns {string}
|
||||
* @param conn connection
|
||||
* @param [defaultValue] optional default value to use if username is empty and this is not an Integrated auth profile
|
||||
* @returns
|
||||
*/
|
||||
export function getUserNameOrDomainLogin(creds: IConnectionInfo, defaultValue?: string): string {
|
||||
if (!defaultValue) {
|
||||
|
@ -186,8 +186,8 @@ export function getUserNameOrDomainLogin(creds: IConnectionInfo, defaultValue?:
|
|||
* Gets a detailed tooltip with information about a connection
|
||||
*
|
||||
* @export connectionInfo/getTooltip
|
||||
* @param {Interfaces.IConnectionCredentials} connCreds connection
|
||||
* @returns {string} tooltip
|
||||
* @param connCreds connection
|
||||
* @returns tooltip
|
||||
*/
|
||||
export function getTooltip(connCreds: IConnectionInfo, serverInfo?: IServerInfo): string {
|
||||
|
||||
|
|
|
@ -51,8 +51,8 @@ export class ConnectionProfile extends ConnectionCredentials implements IConnect
|
|||
}
|
||||
/**
|
||||
* Creates a new profile by prompting the user for information.
|
||||
* @param {IPrompter} prompter that asks user the questions needed to complete a profile
|
||||
* @param {IConnectionProfile} (optional) default profile values that will be prefilled for questions, if any
|
||||
* @param prompter that asks user the questions needed to complete a profile
|
||||
* @param (optional) default profile values that will be prefilled for questions, if any
|
||||
* @returns Promise - resolves to undefined if profile creation was not completed, or IConnectionProfile if completed
|
||||
*/
|
||||
public static async createProfile(
|
||||
|
|
|
@ -65,11 +65,11 @@ export class ConnectionStore {
|
|||
* Creates a formatted credential usable for uniquely identifying a SQL Connection.
|
||||
* This string can be decoded but is not optimized for this.
|
||||
* @static
|
||||
* @param {string} server name of the server - required
|
||||
* @param {string} database name of the database - optional
|
||||
* @param {string} user name of the user - optional
|
||||
* @param {string} itemType type of the item (MRU or Profile) - optional
|
||||
* @returns {string} formatted string with server, DB and username
|
||||
* @param server name of the server - required
|
||||
* @param database name of the database - optional
|
||||
* @param user name of the user - optional
|
||||
* @param itemType type of the item (MRU or Profile) - optional
|
||||
* @returns formatted string with server, DB and username
|
||||
*/
|
||||
public static formatCredentialId(server: string, database?: string, user?: string, itemType?: string, isConnectionString?: boolean): string {
|
||||
if (Utils.isEmpty(server) && !isConnectionString) {
|
||||
|
@ -113,7 +113,7 @@ export class ConnectionStore {
|
|||
* Load connections from MRU and profile list and return them as a formatted picklist.
|
||||
* Note: connections will not include password value
|
||||
*
|
||||
* @returns {Promise<IConnectionCredentialsQuickPickItem[]>}
|
||||
* @returns
|
||||
*/
|
||||
public getPickListItems(): IConnectionCredentialsQuickPickItem[] {
|
||||
let pickListItems: IConnectionCredentialsQuickPickItem[] = this.loadAllConnections(false);
|
||||
|
@ -129,7 +129,7 @@ export class ConnectionStore {
|
|||
* Gets all connection profiles stored in the user settings
|
||||
* Note: connections will not include password value
|
||||
*
|
||||
* @returns {IConnectionCredentialsQuickPickItem[]}
|
||||
* @returns
|
||||
*/
|
||||
public getProfilePickListItems(getWorkspaceProfiles: boolean): IConnectionCredentialsQuickPickItem[] {
|
||||
return this.loadProfiles(getWorkspaceProfiles);
|
||||
|
@ -176,8 +176,8 @@ export class ConnectionStore {
|
|||
/**
|
||||
* public for testing purposes. Validates whether a password should be looked up from the credential store or not
|
||||
*
|
||||
* @param {IConnectionProfile} connectionCreds
|
||||
* @returns {boolean}
|
||||
* @param connectionCreds
|
||||
* @returns
|
||||
* @memberof ConnectionStore
|
||||
*/
|
||||
public shouldLookupSavedPassword(connectionCreds: IConnectionProfile): boolean {
|
||||
|
@ -193,9 +193,9 @@ export class ConnectionStore {
|
|||
* Saves a connection profile to the user settings.
|
||||
* Password values are stored to a separate credential store if the "savePassword" option is true
|
||||
*
|
||||
* @param {IConnectionProfile} profile the profile to save
|
||||
* @param {forceWritePlaintextPassword} whether the plaintext password should be written to the settings file
|
||||
* @returns {Promise<IConnectionProfile>} a Promise that returns the original profile, for help in chaining calls
|
||||
* @param profile the profile to save
|
||||
* @param whether the plaintext password should be written to the settings file
|
||||
* @returns a Promise that returns the original profile, for help in chaining calls
|
||||
*/
|
||||
public async saveProfile(profile: IConnectionProfile, forceWritePlaintextPassword?: boolean): Promise<IConnectionProfile> {
|
||||
// Add the profile to the saved list, taking care to clear out the password field if necessary
|
||||
|
@ -222,7 +222,7 @@ export class ConnectionStore {
|
|||
* Gets the list of recently used connections. These will not include the password - a separate call to
|
||||
* {addSavedPassword} is needed to fill that before connecting
|
||||
*
|
||||
* @returns {IConnectionInfo[]} the array of connections, empty if none are found
|
||||
* @returns the array of connections, empty if none are found
|
||||
*/
|
||||
public getRecentlyUsedConnections(): IConnectionInfo[] {
|
||||
let configValues = this._context.globalState.get<IConnectionInfo[]>(Constants.configRecentConnections);
|
||||
|
@ -236,8 +236,8 @@ export class ConnectionStore {
|
|||
* Adds a connection to the recently used list.
|
||||
* Password values are stored to a separate credential store if the "savePassword" option is true
|
||||
*
|
||||
* @param {IConnectionInfo} conn the connection to add
|
||||
* @returns {Promise<void>} a Promise that returns when the connection was saved
|
||||
* @param conn the connection to add
|
||||
* @returns a Promise that returns when the connection was saved
|
||||
*/
|
||||
public addRecentlyUsed(conn: IConnectionInfo): Promise<void> {
|
||||
const self = this;
|
||||
|
@ -361,9 +361,9 @@ export class ConnectionStore {
|
|||
* Removes a profile from the user settings and deletes any related password information
|
||||
* from the credential store
|
||||
*
|
||||
* @param {IConnectionProfile} profile the profile to be removed
|
||||
* @param {Boolean} keepCredentialStore optional value to keep the credential store after a profile removal
|
||||
* @returns {Promise<boolean>} true if successful
|
||||
* @param profile the profile to be removed
|
||||
* @param keepCredentialStore optional value to keep the credential store after a profile removal
|
||||
* @returns true if successful
|
||||
*/
|
||||
public async removeProfile(profile: IConnectionProfile, keepCredentialStore: boolean = false): Promise<boolean> {
|
||||
let profileFound = await this._connectionConfig.removeConnection(profile);
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* Represents a tenant information for an account.
|
||||
*/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { RequestType } from 'vscode-languageclient';
|
||||
import * as mssql from 'vscode-mssql';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { RequestType } from 'vscode-languageclient';
|
||||
import * as vscodeMssql from 'vscode-mssql';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { RequestType, NotificationType } from 'vscode-languageclient';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { NotificationType, RequestType } from 'vscode-languageclient';
|
||||
import { ConnectionDetails } from 'vscode-mssql';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { NodeInfo } from './nodeInfo';
|
||||
import { RequestType, NotificationType } from 'vscode-languageclient';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { ObjectMetadata } from 'vscode-mssql';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { ExpandParams } from './expandNodeRequest';
|
||||
import { RequestType } from 'vscode-jsonrpc';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { RequestType } from 'vscode-languageclient';
|
||||
import * as mssql from 'vscode-mssql';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { RequestType } from 'vscode-jsonrpc';
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { RequestType } from 'vscode-languageclient';
|
||||
import * as mssql from 'vscode-mssql';
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as os from 'os';
|
||||
import { ILogger } from './interfaces';
|
||||
import * as Utils from './utils';
|
||||
|
|
|
@ -214,8 +214,8 @@ function isSameAuthenticationType(currentAuthenticationType: string, expectedAut
|
|||
* If not, match on all key properties (server, db, auth type, user) being identical.
|
||||
* Other properties are ignored for this purpose
|
||||
*
|
||||
* @param {IConnectionProfile} currentProfile the profile to check
|
||||
* @param {IConnectionProfile} expectedProfile the profile to try
|
||||
* @param currentProfile the profile to check
|
||||
* @param expectedProfile the profile to try
|
||||
* @returns boolean that is true if the profiles match
|
||||
*/
|
||||
export function isSameProfile(currentProfile: IConnectionProfile, expectedProfile: IConnectionProfile): boolean {
|
||||
|
@ -247,8 +247,8 @@ export function isSameProfile(currentProfile: IConnectionProfile, expectedProfil
|
|||
* match on all key properties (connectionString or server, db, auth type, user) being identical.
|
||||
* Other properties are ignored for this purpose
|
||||
*
|
||||
* @param {IConnectionInfo} conn the connection to check
|
||||
* @param {IConnectionInfo} expectedConn the connection to try to match
|
||||
* @param conn the connection to check
|
||||
* @param expectedConn the connection to try to match
|
||||
* @returns boolean that is true if the connections match
|
||||
*/
|
||||
export function isSameConnection(conn: IConnectionInfo, expectedConn: IConnectionInfo): boolean {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import * as LocalizedConstants from '../constants/localizedConstants';
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as path from 'path';
|
||||
import * as vscode from 'vscode';
|
||||
import * as Constants from '../constants/constants';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import * as LocalizedConstants from '../constants/localizedConstants';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import ConnectionManager from '../controllers/connectionManager';
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import SqlToolsServiceClient from '../languageservice/serviceclient';
|
||||
import ConnectionManager from '../controllers/connectionManager';
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as path from 'path';
|
||||
import { TreeNodeInfo } from './treeNodeInfo';
|
||||
import { IConnectionProfile } from '../models/interfaces';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import { NodeInfo } from '../models/contracts/objectExplorer/nodeInfo';
|
||||
|
|
|
@ -149,6 +149,5 @@ export function createProxy(protocol: IMessageProtocol, handler: any, isClient:
|
|||
messageProxy.dispose();
|
||||
}
|
||||
};
|
||||
// tslint:disable-next-line: no-null-keyword
|
||||
return new Proxy(Object.create(null), proxy);
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import * as path from 'path';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import * as path from 'path';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import SqlToolsServiceClient from '../languageservice/serviceclient';
|
||||
import ConnectionManager from '../controllers/connectionManager';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { IAzureAccountService, IAzureAccountSession } from 'vscode-mssql';
|
||||
import { AccountStore } from '../azure/accountStore';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as mssql from 'vscode-mssql';
|
||||
import { AccountStore } from '../azure/accountStore';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import SqlToolsServiceClient from '../languageservice/serviceclient';
|
||||
import * as dacFxContracts from '../models/contracts/dacFx/dacFxContracts';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import SqlToolsServiceClient from '../languageservice/serviceclient';
|
||||
import * as schemaCompareContracts from '../models/contracts/schemaCompare/schemaCompareContracts';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import SqlToolsServiceClient from '../languageservice/serviceclient';
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import AdsTelemetryReporter, { TelemetryEventMeasures, TelemetryEventProperties } from '@microsoft/ads-extension-telemetry';
|
||||
import * as vscodeMssql from 'vscode-mssql';
|
||||
import { IConnectionProfile } from '../models/interfaces';
|
||||
|
|
|
@ -639,7 +639,7 @@ export class ConnectionUI {
|
|||
firewallRuleNameAnswer = value;
|
||||
},
|
||||
default: defaultFirewallRuleName
|
||||
}, ,
|
||||
},
|
||||
{
|
||||
type: QuestionTypes.expand,
|
||||
name: LocalizedConstants.aad,
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { NgModule, ValueProvider } from '@angular/core';
|
||||
import { BrowserModule } from '@angular/platform-browser';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import {
|
||||
Component, OnInit, Inject, forwardRef, ViewChild, ViewChildren, QueryList, ElementRef,
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { Component, Output, EventEmitter, Inject, forwardRef, OnInit } from '@angular/core';
|
||||
import { ISlickRange } from '../../../../../models/interfaces';
|
||||
import { ShortcutService } from './../services/shortcuts.service';
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { Component, Output, EventEmitter, Inject, forwardRef, OnInit } from '@angular/core';
|
||||
import { ShortcutService } from './../services/shortcuts.service';
|
||||
import * as Constants from './../constants';
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { Directive, Output, EventEmitter, ElementRef, Inject, forwardRef } from '@angular/core';
|
||||
|
||||
@Directive({
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { Directive, Output, EventEmitter, ElementRef, Inject, forwardRef, Input } from '@angular/core';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* Bootstraps the angular module
|
||||
*/
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { Subject } from 'rxjs/Subject';
|
||||
import { Injectable, OnDestroy } from '@angular/core';
|
||||
import { ISlickRange } from 'angular2-slickgrid';
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { Injectable, Inject, forwardRef } from '@angular/core';
|
||||
|
||||
import { DataService } from './data.service';
|
||||
|
|
|
@ -106,7 +106,7 @@ gulp.task('ext:localization:xliff-to-ts', function () {
|
|||
.pipe(through.obj(function (file, enc, callback) {
|
||||
// convert xliff into json document
|
||||
let dict = convertXmlToDictionary(String(file.contents));
|
||||
var contents = ['/* tslint:disable */',
|
||||
var contents = ['/* eslint-disable */',
|
||||
'// THIS IS A COMPUTER GENERATED FILE. CHANGES IN THIS FILE WILL BE OVERWRITTEN.',
|
||||
'// TO ADD LOCALIZED CONSTANTS, ADD YOUR CONSTANT TO THE ENU XLIFF FILE UNDER ~/localization/xliff/enu/constants/localizedConstants.enu.xlf AND REBUILD THE PROJECT',
|
||||
'import * as nls from \'vscode-nls\';'];
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import * as TypeMoq from 'typemoq';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { AzureController } from '../src/azure/azureController';
|
||||
import * as assert from 'assert';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as TypeMoq from 'typemoq';
|
||||
import * as figures from 'figures';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as assert from 'assert';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as TypeMoq from 'typemoq';
|
||||
import VscodeWrapper from '../src/controllers/vscodeWrapper';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as TypeMoq from 'typemoq';
|
||||
import * as vscode from 'vscode';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as assert from 'assert';
|
||||
import * as TypeMoq from 'typemoq';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import * as TypeMoq from 'typemoq';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import * as TypeMoq from 'typemoq';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as assert from 'assert';
|
||||
import * as TypeMoq from 'typemoq';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import * as TypeMoq from 'typemoq';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as assert from 'assert';
|
||||
import * as TypeMoq from 'typemoq';
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import * as TypeMoq from 'typemoq';
|
||||
import SqlToolsServiceClient from '../src/languageservice/serviceclient';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
//
|
||||
// PLEASE DO NOT MODIFY / DELETE UNLESS YOU KNOW WHAT YOU ARE DOING
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as assert from 'assert';
|
||||
import * as vscode from 'vscode';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as TypeMoq from 'typemoq';
|
||||
import VscodeWrapper from '../src/controllers/vscodeWrapper';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import * as paths from 'path';
|
||||
|
@ -104,7 +104,7 @@ class CoverageRunner {
|
|||
/**
|
||||
* Writes a coverage report. Note that as this is called in the process exit callback, all calls must be synchronous.
|
||||
*
|
||||
* @returns {void}
|
||||
* @returns
|
||||
*
|
||||
* @memberOf CoverageRunner
|
||||
*/
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import DecompressProvider from '../src/languageservice/decompressProvider';
|
||||
import { IPackage, IStatusView } from '../src/languageservice/interfaces';
|
||||
import { ILogger } from '../src/models/interfaces';
|
||||
import { assert } from 'chai';
|
||||
import HttpClient, { IDownloadProgress } from '../src/languageservice/httpClient';
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
|
||||
suite('Language Service Tests', () => {
|
||||
|
||||
suite('Decompress Provider Tests', () => {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as TypeMoq from 'typemoq';
|
||||
import ListPrompt from '../src/prompts/list';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as LocalizedConstants from '../src/constants/localizedConstants';
|
||||
import * as assert from 'assert';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as TypeMoq from 'typemoq';
|
||||
import * as vscode from 'vscode';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import * as TypeMoq from 'typemoq';
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import * as TypeMoq from 'typemoq';
|
||||
import { ObjectExplorerProvider } from '../src/objectExplorer/objectExplorerProvider';
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as path from 'path';
|
||||
import { ObjectExplorerUtils } from '../src/objectExplorer/objectExplorerUtils';
|
||||
import { expect, assert } from 'chai';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as assert from 'assert';
|
||||
import * as TypeMoq from 'typemoq';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as assert from 'assert';
|
||||
import { expect } from 'chai';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as TypeMoq from 'typemoq';
|
||||
import PromptFactory from '../src/prompts/factory';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as TypeMoq from 'typemoq';
|
||||
import * as assert from 'assert';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as TypeMoq from 'typemoq';
|
||||
import * as assert from 'assert';
|
||||
|
@ -168,13 +168,13 @@ suite('Query Runner tests', () => {
|
|||
let batchStart: QueryExecuteBatchNotificationParams = {
|
||||
ownerUri: 'uri',
|
||||
batchSummary: {
|
||||
executionElapsed: null, // tslint:disable-line:no-null-keyword
|
||||
executionEnd: null, // tslint:disable-line:no-null-keyword
|
||||
executionElapsed: null,
|
||||
executionEnd: null,
|
||||
executionStart: new Date().toISOString(),
|
||||
hasError: false,
|
||||
id: 0,
|
||||
selection: { startLine: 0, endLine: 0, startColumn: 3, endColumn: 3 },
|
||||
resultSetSummaries: null // tslint:disable-line:no-null-keyword
|
||||
resultSetSummaries: null
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -228,8 +228,8 @@ suite('Query Runner tests', () => {
|
|||
testVscodeWrapper.object
|
||||
);
|
||||
queryRunner.batchSets[0] = {
|
||||
executionElapsed: null, // tslint:disable-line:no-null-keyword
|
||||
executionEnd: null, // tslint:disable-line:no-null-keyword
|
||||
executionElapsed: null,
|
||||
executionEnd: null,
|
||||
executionStart: new Date().toISOString(),
|
||||
hasError: false,
|
||||
id: 0,
|
||||
|
@ -287,8 +287,8 @@ suite('Query Runner tests', () => {
|
|||
testQueryNotificationHandler.object,
|
||||
testVscodeWrapper.object);
|
||||
queryRunner.batchSets[0] = {
|
||||
executionElapsed: null, // tslint:disable-line:no-null-keyword
|
||||
executionEnd: null, // tslint:disable-line:no-null-keyword
|
||||
executionElapsed: null,
|
||||
executionEnd: null,
|
||||
executionStart: new Date().toISOString(),
|
||||
hasError: false,
|
||||
id: 0,
|
||||
|
@ -333,8 +333,8 @@ suite('Query Runner tests', () => {
|
|||
testQueryNotificationHandler.object,
|
||||
testVscodeWrapper.object);
|
||||
queryRunner.batchSets[0] = {
|
||||
executionElapsed: null, // tslint:disable-line:no-null-keyword
|
||||
executionEnd: null, // tslint:disable-line:no-null-keyword
|
||||
executionElapsed: null,
|
||||
executionEnd: null,
|
||||
executionStart: new Date().toISOString(),
|
||||
hasError: false,
|
||||
id: 0,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as TypeMoq from 'typemoq';
|
||||
import * as assert from 'assert';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { assert } from 'chai';
|
||||
import * as TypeMoq from 'typemoq';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as TypeMoq from 'typemoq';
|
||||
import * as assert from 'assert';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as TypeMoq from 'typemoq';
|
||||
import * as assert from 'assert';
|
||||
|
|
|
@ -11,13 +11,11 @@ suite('Stub Status View tests', function (): void {
|
|||
let stubStatusView: StubStatusView;
|
||||
let logStub: sinon.SinonSpy;
|
||||
|
||||
// tslint:disable-next-line no-invalid-this Mocha injects the Suite as the this context
|
||||
this.beforeAll(function (): void {
|
||||
logStub = sinon.stub();
|
||||
stubStatusView = new StubStatusView(logStub);
|
||||
});
|
||||
|
||||
// tslint:disable-next-line no-invalid-this Mocha injects the Suite as the this context
|
||||
this.afterAll(function (): void {
|
||||
sinon.restore();
|
||||
});
|
||||
|
@ -48,13 +46,11 @@ suite('Stub Logger tests', function (): void {
|
|||
let stubLogger: StubLogger;
|
||||
let logStub: sinon.SinonSpy;
|
||||
|
||||
// tslint:disable-next-line no-invalid-this Mocha injects the Suite as the this context
|
||||
this.beforeEach(function (): void {
|
||||
logStub = sinon.stub();
|
||||
stubLogger = new StubLogger(logStub);
|
||||
});
|
||||
|
||||
// tslint:disable-next-line no-invalid-this Mocha injects the Suite as the this context
|
||||
this.afterEach(function (): void {
|
||||
sinon.restore();
|
||||
});
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { SqlOutputContentProvider } from '../src/models/sqlOutputContentProvider';
|
||||
import VscodeWrapper from '../src/controllers/vscodeWrapper';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as assert from 'assert';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as TypeMoq from 'typemoq';
|
||||
import { IQuestion, IPrompter, IPromptCallback } from '../src/prompts/question';
|
||||
|
@ -50,7 +50,6 @@ function createWorkspaceConfiguration(items: { [key: string]: any }, workspaceIt
|
|||
};
|
||||
},
|
||||
update(section: string, value: any, global?: boolean): Thenable<void> {
|
||||
// tslint:disable-next-line no-invalid-this Test currently expects the object to contain the property values, so allowing this until further investigation can be done
|
||||
this[section] = value;
|
||||
|
||||
global = global === undefined ? true : global;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as TypeMoq from 'typemoq';
|
||||
import * as vscode from 'vscode';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { expect, assert } from 'chai';
|
||||
import * as Utils from './../src/models/utils';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import * as TypeMoq from 'typemoq';
|
||||
|
|
21
yarn.lock
21
yarn.lock
|
@ -200,6 +200,11 @@
|
|||
resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.10.1.tgz#361461e5cb3845d874e61731c11cfedd664d83a0"
|
||||
integrity sha512-Zm2NGpWELsQAD1xsJzGQpYfvICSsFkEpU0jxBjfdC6uNEWXcHnfs9hScFWtXVDVl+rBQJGrl4g1vcKIejpH9dA==
|
||||
|
||||
"@eslint/compat@^1.1.0":
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/@eslint/compat/-/compat-1.1.0.tgz#fdc7d19a66820770bf58ced0342153769d8686f0"
|
||||
integrity sha512-s9Wi/p25+KbzxKlDm3VshQdImhWk+cbdblhwGNnyCU5lpSwtWa4v7VQCxSki0FAUrGA3s8nCWgYzAH41mwQVKQ==
|
||||
|
||||
"@eslint/config-array@^0.16.0":
|
||||
version "0.16.0"
|
||||
resolved "https://registry.yarnpkg.com/@eslint/config-array/-/config-array-0.16.0.tgz#bb3364fc39ee84ec3a62abdc4b8d988d99dfd706"
|
||||
|
@ -515,7 +520,7 @@
|
|||
semver "^7.6.0"
|
||||
ts-api-utils "^1.3.0"
|
||||
|
||||
"@typescript-eslint/utils@7.13.1":
|
||||
"@typescript-eslint/utils@7.13.1", "@typescript-eslint/utils@^7.0.0":
|
||||
version "7.13.1"
|
||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-7.13.1.tgz#611083379caa0d3a2c09d126c65065a3e4337ba2"
|
||||
integrity sha512-h5MzFBD5a/Gh/fvNdp9pTfqJAbuQC4sCN2WzuXme71lqFJsZtLbjxfSk4r3p02WIArOF9N94pdsLiGutpDbrXQ==
|
||||
|
@ -2147,6 +2152,15 @@ escodegen@1.8.x:
|
|||
optionalDependencies:
|
||||
source-map "~0.2.0"
|
||||
|
||||
eslint-plugin-deprecation@^3.0.0:
|
||||
version "3.0.0"
|
||||
resolved "https://registry.yarnpkg.com/eslint-plugin-deprecation/-/eslint-plugin-deprecation-3.0.0.tgz#c0b6bce543c2a01f231d39a1c54fdfebf3560d48"
|
||||
integrity sha512-JuVLdNg/uf0Adjg2tpTyYoYaMbwQNn/c78P1HcccokvhtRphgnRjZDKmhlxbxYptppex03zO76f97DD/yQHv7A==
|
||||
dependencies:
|
||||
"@typescript-eslint/utils" "^7.0.0"
|
||||
ts-api-utils "^1.3.0"
|
||||
tslib "^2.3.1"
|
||||
|
||||
eslint-plugin-jsdoc@^48.2.12:
|
||||
version "48.2.12"
|
||||
resolved "https://registry.yarnpkg.com/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-48.2.12.tgz#e8411c87e55db3f21a288e04bf7e1fb5fa62dfa9"
|
||||
|
@ -6241,6 +6255,11 @@ tslib@^2.2.0:
|
|||
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.0.tgz#803b8cdab3e12ba581a4ca41c8839bbb0dacb09e"
|
||||
integrity sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==
|
||||
|
||||
tslib@^2.3.1:
|
||||
version "2.6.3"
|
||||
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.3.tgz#0438f810ad7a9edcde7a241c3d80db693c8cbfe0"
|
||||
integrity sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==
|
||||
|
||||
tunnel-agent@^0.6.0:
|
||||
version "0.6.0"
|
||||
resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd"
|
||||
|
|
Загрузка…
Ссылка в новой задаче