UNPKG

cloudstudio

Version:

Run VS Code on a remote server.

19 lines (18 loc) 1.01 kB
import * as vscode from 'vscode'; import { Registry } from './common-protocol'; export declare enum AuthProviderType { cloudstudio = "cloudstudio" } export declare class CloudStudioAuthenticationProvider implements vscode.AuthenticationProvider { protected sessionChangeEmitter: vscode.EventEmitter<vscode.AuthenticationProviderAuthenticationSessionsChangeEvent>; readonly onDidChangeSessions: vscode.Event<vscode.AuthenticationProviderAuthenticationSessionsChangeEvent>; protected session?: vscode.AuthenticationSession; setSession(session: vscode.AuthenticationSession): void; getSessions(scopes?: readonly string[]): Promise<readonly vscode.AuthenticationSession[]>; createSession(scopes: readonly string[]): Promise<vscode.AuthenticationSession>; removeSession(sessionId: string): Promise<void>; } export declare class AuthenticationRegistry implements Registry { protected readonly authenticationProvider: CloudStudioAuthenticationProvider; register(): Promise<void>; }