Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update cloudshell runner to use azure cloudshell api #124

Merged
merged 3 commits into from
Jun 12, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions src/azure-account.api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import { Event } from 'vscode';
import { Event, Terminal } from 'vscode';
import { ServiceClientCredentials } from 'ms-rest';
import { AzureEnvironment } from 'ms-rest-azure';
import { SubscriptionModels } from 'azure-arm-resource';
Expand All @@ -22,6 +22,7 @@ export interface AzureAccount {
readonly filters: AzureResourceFilter[];
readonly onFiltersChanged: Event<void>;
readonly waitForFilters: () => Promise<boolean>;
createCloudShell(os: 'Linux' | 'Windows'): CloudShell;
}

export interface AzureSession {
Expand All @@ -36,4 +37,14 @@ export interface AzureSubscription {
readonly subscription: SubscriptionModels.Subscription;
}

export type AzureResourceFilter = AzureSubscription;
export type AzureResourceFilter = AzureSubscription;

export type CloudShellStatus = 'Connecting' | 'Connected' | 'Disconnected';

export interface CloudShell {
readonly status: CloudShellStatus;
readonly onStatusChanged: Event<CloudShellStatus>;
readonly waitForConnection: () => Promise<boolean>;
readonly terminal: Promise<Terminal>;
readonly session: Promise<AzureSession>;
}
266 changes: 0 additions & 266 deletions src/cloudConsole.ts

This file was deleted.

Loading