mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-29 01:25:37 -05:00
* close * connection is working * formatting * adds all * formatting * formatting and changing how features are initialized * formatting * changed named of typings file * update * updated to use dataprotocol npm * formatting * removed unneeded logging * readd npm shrinkwrap * still not working * removed unnecessary codfe * addressed comments * readded azure resource provider * fix capabilities cacheing * added backwards capat for older protocol * update shrinkwrap * update shrinkwrap * updated shrinkwrap * fixed tests * removed dead code * remove dead code * fix compile * remove backcompat stuff * change location of npm * vbump sqltools * merge master * fix imports * fix build breaks * update for sqlops * update yarn dependencies
31 lines
1.1 KiB
TypeScript
31 lines
1.1 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
'use strict';
|
|
|
|
import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
|
|
import Event from 'vs/base/common/event';
|
|
|
|
import * as sqlops from 'sqlops';
|
|
|
|
export const SERVICE_ID = 'dashboardWebviewService';
|
|
|
|
export interface IDashboardWebview {
|
|
readonly id: string;
|
|
readonly connection: sqlops.connection.Connection;
|
|
readonly serverInfo: sqlops.ServerInfo;
|
|
setHtml(html: string): void;
|
|
onMessage: Event<string>;
|
|
sendMessage(message: string);
|
|
}
|
|
|
|
export interface IDashboardWebviewService {
|
|
_serviceBrand: any;
|
|
onRegisteredWebview: Event<IDashboardWebview>;
|
|
registerWebview(widget: IDashboardWebview);
|
|
}
|
|
|
|
export const IDashboardWebviewService = createDecorator<IDashboardWebviewService>(SERVICE_ID);
|