mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Initial LiveShare extension scaffolding (#7170)
* LiveShare initial shared connection * Various cleanups * Fix type * Fix hygiene
This commit is contained in:
26
extensions/liveshare/src/main.ts
Normal file
26
extensions/liveshare/src/main.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import { GuestSessionManager } from './guestSessionManager';
|
||||
import { HostSessionManager } from './hostSessionManager';
|
||||
|
||||
declare var require: any;
|
||||
let vsls = require('vsls');
|
||||
|
||||
export async function activate(context: vscode.ExtensionContext) {
|
||||
const vslsApi = await vsls.getApi();
|
||||
if (!vslsApi) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* tslint:disable:no-unused-expression */
|
||||
new HostSessionManager(context, vslsApi);
|
||||
new GuestSessionManager(context, vslsApi);
|
||||
/* tslint:enable:no-unused-expression */
|
||||
}
|
||||
|
||||
export function deactivate(): void {
|
||||
}
|
||||
Reference in New Issue
Block a user