mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-28 17:23:19 -05:00
Add datavirtualization extension (#21594)
* initial * cleanup * Add typings ref * fix compile * remove unused * add missing * another unused * Use newer vscodetestcover * newer dataprotocol * format * cleanup ignores * fix out path * fix entry point * more cleanup * Move into src folder * Handle service client log messages * remove unused
This commit is contained in:
72
extensions/datavirtualization/src/typings/globals/istanbul/index.d.ts
vendored
Normal file
72
extensions/datavirtualization/src/typings/globals/istanbul/index.d.ts
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
// Generated by typings
|
||||
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/56295f5058cac7ae458540423c50ac2dcf9fc711/istanbul/istanbul.d.ts
|
||||
declare module 'istanbul' {
|
||||
namespace istanbul {
|
||||
interface Istanbul {
|
||||
new (options?: any): Istanbul;
|
||||
Collector: Collector;
|
||||
config: Config;
|
||||
ContentWriter: ContentWriter;
|
||||
FileWriter: FileWriter;
|
||||
hook: Hook;
|
||||
Instrumenter: Instrumenter;
|
||||
Report: Report;
|
||||
Reporter: Reporter;
|
||||
Store: Store;
|
||||
utils: ObjectUtils;
|
||||
VERSION: string;
|
||||
Writer: Writer;
|
||||
}
|
||||
|
||||
interface Collector {
|
||||
new (options?: any): Collector;
|
||||
add(coverage: any, testName?: string): void;
|
||||
}
|
||||
|
||||
interface Config {
|
||||
}
|
||||
|
||||
interface ContentWriter {
|
||||
}
|
||||
|
||||
interface FileWriter {
|
||||
}
|
||||
|
||||
interface Hook {
|
||||
hookRequire(matcher: any, transformer: any, options: any): void;
|
||||
unhookRequire(): void;
|
||||
}
|
||||
|
||||
interface Instrumenter {
|
||||
new (options?: any): Instrumenter;
|
||||
instrumentSync(code: string, filename: string): string;
|
||||
}
|
||||
|
||||
interface Report {
|
||||
}
|
||||
|
||||
interface Configuration {
|
||||
new (obj: any, overrides: any): Configuration;
|
||||
}
|
||||
|
||||
interface Reporter {
|
||||
new (cfg?: Configuration, dir?: string): Reporter;
|
||||
add(fmt: string): void;
|
||||
addAll(fmts: Array<string>): void;
|
||||
write(collector: Collector, sync: boolean, callback: Function): void;
|
||||
}
|
||||
|
||||
interface Store {
|
||||
}
|
||||
|
||||
interface ObjectUtils {
|
||||
}
|
||||
|
||||
interface Writer {
|
||||
}
|
||||
}
|
||||
|
||||
var istanbul: istanbul.Istanbul;
|
||||
|
||||
export = istanbul;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"resolution": "main",
|
||||
"tree": {
|
||||
"src": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/56295f5058cac7ae458540423c50ac2dcf9fc711/istanbul/istanbul.d.ts",
|
||||
"raw": "registry:dt/istanbul#0.4.0+20160316155526",
|
||||
"typings": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/56295f5058cac7ae458540423c50ac2dcf9fc711/istanbul/istanbul.d.ts"
|
||||
}
|
||||
}
|
||||
5
extensions/datavirtualization/src/typings/markdown-it-named-headers.d.ts
vendored
Normal file
5
extensions/datavirtualization/src/typings/markdown-it-named-headers.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
declare module 'markdown-it-named-headers' { }
|
||||
65
extensions/datavirtualization/src/typings/mssqlapis.d.ts
vendored
Normal file
65
extensions/datavirtualization/src/typings/mssqlapis.d.ts
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
// This is the place for extensions to expose APIs.
|
||||
|
||||
import * as azdata from 'azdata';
|
||||
import * as vscode from 'vscode';
|
||||
|
||||
/**
|
||||
* The APIs provided by Mssql extension
|
||||
*
|
||||
* @export
|
||||
* @interface MssqlExtensionApi
|
||||
*/
|
||||
export interface MssqlExtensionApi {
|
||||
/**
|
||||
* Gets the object explorer API that supports querying over the connections supported by this extension
|
||||
*
|
||||
* @returns {IMssqlObjectExplorerBrowser}
|
||||
* @memberof IMssqlExtensionApi
|
||||
*/
|
||||
getMssqlObjectExplorerBrowser(): MssqlObjectExplorerBrowser;
|
||||
}
|
||||
|
||||
/**
|
||||
* A browser supporting actions over the object explorer connections provided by this extension.
|
||||
* Currently this is the
|
||||
*
|
||||
* @export
|
||||
* @interface MssqlObjectExplorerBrowser
|
||||
*/
|
||||
export interface MssqlObjectExplorerBrowser {
|
||||
/**
|
||||
* Gets the matching node given a context object, e.g. one from a right-click on a node in Object Explorer
|
||||
*
|
||||
* @param {azdata.ObjectExplorerContext} objectExplorerContext
|
||||
* @returns {Promise<T>}
|
||||
*/
|
||||
getNode<T extends ITreeNode>(objectExplorerContext: azdata.ObjectExplorerContext): Promise<T>;
|
||||
}
|
||||
|
||||
/**
|
||||
* A tree node in the object explorer tree
|
||||
*
|
||||
* @export
|
||||
* @interface ITreeNode
|
||||
*/
|
||||
export interface ITreeNode {
|
||||
getNodeInfo(): azdata.NodeInfo;
|
||||
getChildren(refreshChildren: boolean): ITreeNode[] | Promise<ITreeNode[]>;
|
||||
}
|
||||
|
||||
/**
|
||||
* A HDFS file node. This is a leaf node in the object explorer tree, and its contents
|
||||
* can be queried
|
||||
*
|
||||
* @export
|
||||
* @interface IFileNode
|
||||
* @extends {ITreeNode}
|
||||
*/
|
||||
export interface IFileNode extends ITreeNode {
|
||||
getFileContentsAsString(maxBytes?: number): Promise<string>;
|
||||
}
|
||||
9
extensions/datavirtualization/src/typings/ref.d.ts
vendored
Normal file
9
extensions/datavirtualization/src/typings/ref.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
/// <reference path='../../../../src/vscode-dts/vscode.d.ts'/>
|
||||
/// <reference path='../../../../src/sql/azdata.d.ts'/>
|
||||
/// <reference path='../../../../src/sql/azdata.proposed.d.ts'/>
|
||||
/// <reference types='@types/node'/>
|
||||
Reference in New Issue
Block a user