mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Merge from vscode bd0efff9e3f36d6b3e1045cee9887003af8034d7
This commit is contained in:
146
src/vs/vscode.proposed.d.ts
vendored
146
src/vs/vscode.proposed.d.ts
vendored
@@ -25,7 +25,7 @@ declare module 'vscode' {
|
||||
displayName: string;
|
||||
id: string;
|
||||
};
|
||||
scopes: string[]
|
||||
scopes: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -141,12 +141,12 @@ declare module 'vscode' {
|
||||
* within a session has changed for a provider. Fires with the ids of the providers
|
||||
* that have had session data change.
|
||||
*/
|
||||
export const onDidChangeSessions: Event<{ [providerId: string]: AuthenticationSessionsChangeEvent }>;
|
||||
export const onDidChangeSessions: Event<{ [providerId: string]: AuthenticationSessionsChangeEvent; }>;
|
||||
}
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region Alex - resolvers
|
||||
//#region @alexdima - resolvers
|
||||
|
||||
export interface RemoteAuthorityResolverContext {
|
||||
resolveAttempt: number;
|
||||
@@ -160,20 +160,20 @@ declare module 'vscode' {
|
||||
}
|
||||
|
||||
export interface ResolvedOptions {
|
||||
extensionHostEnv?: { [key: string]: string | null };
|
||||
extensionHostEnv?: { [key: string]: string | null; };
|
||||
}
|
||||
|
||||
export interface TunnelOptions {
|
||||
remoteAddress: { port: number, host: string };
|
||||
remoteAddress: { port: number, host: string; };
|
||||
// The desired local port. If this port can't be used, then another will be chosen.
|
||||
localAddressPort?: number;
|
||||
label?: string;
|
||||
}
|
||||
|
||||
export interface TunnelDescription {
|
||||
remoteAddress: { port: number, host: string };
|
||||
remoteAddress: { port: number, host: string; };
|
||||
//The complete local address(ex. localhost:1234)
|
||||
localAddress: { port: number, host: string } | string;
|
||||
localAddress: { port: number, host: string; } | string;
|
||||
}
|
||||
|
||||
export interface Tunnel extends TunnelDescription {
|
||||
@@ -248,7 +248,7 @@ declare module 'vscode' {
|
||||
|
||||
export interface ResourceLabelFormatting {
|
||||
label: string; // myLabel:/${path}
|
||||
// TODO@isi
|
||||
// TODO@isidorn
|
||||
// eslint-disable-next-line vscode-dts-literal-or-types
|
||||
separator: '/' | '\\' | '';
|
||||
tildify?: boolean;
|
||||
@@ -284,7 +284,7 @@ declare module 'vscode' {
|
||||
//#region read/write in chunks: https://github.com/microsoft/vscode/issues/84515
|
||||
|
||||
export interface FileSystemProvider {
|
||||
open?(resource: Uri, options: { create: boolean }): number | Thenable<number>;
|
||||
open?(resource: Uri, options: { create: boolean; }): number | Thenable<number>;
|
||||
close?(fd: number): void | Thenable<void>;
|
||||
read?(fd: number, pos: number, data: Uint8Array, offset: number, length: number): number | Thenable<number>;
|
||||
write?(fd: number, pos: number, data: Uint8Array, offset: number, length: number): number | Thenable<number>;
|
||||
@@ -326,7 +326,7 @@ declare module 'vscode' {
|
||||
|
||||
/**
|
||||
* A file glob pattern to match file paths against.
|
||||
* TODO@roblou - merge this with the GlobPattern docs/definition in vscode.d.ts.
|
||||
* TODO@roblourens merge this with the GlobPattern docs/definition in vscode.d.ts.
|
||||
* @see [GlobPattern](#GlobPattern)
|
||||
*/
|
||||
export type GlobString = string;
|
||||
@@ -731,42 +731,7 @@ declare module 'vscode' {
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region debug: https://github.com/microsoft/vscode/issues/88230
|
||||
|
||||
/**
|
||||
* A DebugConfigurationProviderTriggerKind specifies when the `provideDebugConfigurations` method of a `DebugConfigurationProvider` is triggered.
|
||||
* Currently there are two situations: to provide the initial debug configurations for a newly created launch.json or
|
||||
* to provide dynamically generated debug configurations when the user asks for them through the UI (e.g. via the "Select and Start Debugging" command).
|
||||
* A trigger kind is used when registering a `DebugConfigurationProvider` with #debug.registerDebugConfigurationProvider.
|
||||
*/
|
||||
export enum DebugConfigurationProviderTriggerKind {
|
||||
/**
|
||||
* `DebugConfigurationProvider.provideDebugConfigurations` is called to provide the initial debug configurations for a newly created launch.json.
|
||||
*/
|
||||
Initial = 1,
|
||||
/**
|
||||
* `DebugConfigurationProvider.provideDebugConfigurations` is called to provide dynamically generated debug configurations when the user asks for them through the UI (e.g. via the "Select and Start Debugging" command).
|
||||
*/
|
||||
Dynamic = 2
|
||||
}
|
||||
|
||||
export namespace debug {
|
||||
/**
|
||||
* Register a [debug configuration provider](#DebugConfigurationProvider) for a specific debug type.
|
||||
* The optional [triggerKind](#DebugConfigurationProviderTriggerKind) can be used to specify when the `provideDebugConfigurations` method of the provider is triggered.
|
||||
* Currently two trigger kinds are possible: with the value `Initial` (or if no trigger kind argument is given) the `provideDebugConfigurations` method is used to provide the initial debug configurations to be copied into a newly created launch.json.
|
||||
* With the trigger kind `Dynamic` the `provideDebugConfigurations` method is used to dynamically determine debug configurations to be presented to the user (in addition to the static configurations from the launch.json).
|
||||
* Please note that the `triggerKind` argument only applies to the `provideDebugConfigurations` method: so the `resolveDebugConfiguration` methods are not affected at all.
|
||||
* Registering a single provider with resolve methods for different trigger kinds, results in the same resolve methods called multiple times.
|
||||
* More than one provider can be registered for the same type.
|
||||
*
|
||||
* @param type The debug type for which the provider is registered.
|
||||
* @param provider The [debug configuration provider](#DebugConfigurationProvider) to register.
|
||||
* @param triggerKind The [trigger](#DebugConfigurationProviderTrigger) for which the 'provideDebugConfiguration' method of the provider is registered.
|
||||
* @return A [disposable](#Disposable) that unregisters this provider when being disposed.
|
||||
*/
|
||||
export function registerDebugConfigurationProvider(debugType: string, provider: DebugConfigurationProvider, triggerKind?: DebugConfigurationProviderTriggerKind): Disposable;
|
||||
}
|
||||
//#region debug
|
||||
|
||||
// deprecated debug API
|
||||
|
||||
@@ -809,7 +774,7 @@ declare module 'vscode' {
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region Joao: SCM validation
|
||||
//#region @joaomoreno: SCM validation
|
||||
|
||||
/**
|
||||
* Represents the validation type of the Source Control input.
|
||||
@@ -859,7 +824,7 @@ declare module 'vscode' {
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region Joao: SCM selected provider
|
||||
//#region @joaomoreno: SCM selected provider
|
||||
|
||||
export interface SourceControl {
|
||||
|
||||
@@ -1062,7 +1027,7 @@ declare module 'vscode' {
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region Joh -> exclusive document filters
|
||||
//#region @jrieken -> exclusive document filters
|
||||
|
||||
export interface DocumentFilter {
|
||||
exclusive?: boolean;
|
||||
@@ -1070,7 +1035,7 @@ declare module 'vscode' {
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region Alex - OnEnter enhancement
|
||||
//#region @alexdima - OnEnter enhancement
|
||||
export interface OnEnterRule {
|
||||
/**
|
||||
* This rule will only execute if the text above the this line matches this regular expression.
|
||||
@@ -1579,7 +1544,7 @@ declare module 'vscode' {
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region Peng: Notebook
|
||||
//#region @rebornix: Notebook
|
||||
|
||||
export enum CellKind {
|
||||
Markdown = 1,
|
||||
@@ -1632,7 +1597,7 @@ declare module 'vscode' {
|
||||
* }
|
||||
* }
|
||||
*/
|
||||
data: { [key: string]: any };
|
||||
data: { [key: string]: any; };
|
||||
}
|
||||
|
||||
export type CellOutput = CellStreamOutput | CellErrorOutput | CellDisplayOutput;
|
||||
@@ -1713,6 +1678,8 @@ declare module 'vscode' {
|
||||
* Defaults to true.
|
||||
*/
|
||||
hasExecutionOrder?: boolean;
|
||||
|
||||
displayOrder?: GlobPattern[];
|
||||
}
|
||||
|
||||
export interface NotebookDocument {
|
||||
@@ -1804,13 +1771,54 @@ declare module 'vscode' {
|
||||
// readonly contentChanges: ReadonlyArray<TextDocumentContentChangeEvent>;
|
||||
}
|
||||
|
||||
export interface NotebookCellData {
|
||||
readonly cellKind: CellKind;
|
||||
readonly source: string;
|
||||
language: string;
|
||||
outputs: CellOutput[];
|
||||
metadata: NotebookCellMetadata;
|
||||
}
|
||||
|
||||
export interface NotebookData {
|
||||
readonly cells: NotebookCellData[];
|
||||
readonly languages: string[];
|
||||
readonly metadata: NotebookDocumentMetadata;
|
||||
}
|
||||
|
||||
export interface NotebookContentProvider {
|
||||
openNotebook(uri: Uri): NotebookData | Promise<NotebookData>;
|
||||
saveNotebook(document: NotebookDocument, cancellation: CancellationToken): Promise<void>;
|
||||
saveNotebookAs(targetResource: Uri, document: NotebookDocument, cancellation: CancellationToken): Promise<void>;
|
||||
readonly onDidChangeNotebook: Event<void>;
|
||||
// revert?(document: NotebookDocument, cancellation: CancellationToken): Thenable<void>;
|
||||
// backup?(document: NotebookDocument, cancellation: CancellationToken): Thenable<CustomDocumentBackup>;
|
||||
|
||||
/**
|
||||
* Responsible for filling in outputs for the cell
|
||||
*/
|
||||
executeCell(document: NotebookDocument, cell: NotebookCell | undefined, token: CancellationToken): Promise<void>;
|
||||
}
|
||||
|
||||
export namespace notebook {
|
||||
export function registerNotebookContentProvider(
|
||||
notebookType: string,
|
||||
provider: NotebookContentProvider
|
||||
): Disposable;
|
||||
|
||||
export function registerNotebookProvider(
|
||||
notebookType: string,
|
||||
provider: NotebookProvider
|
||||
): Disposable;
|
||||
|
||||
export function registerNotebookOutputRenderer(type: string, outputSelector: NotebookOutputSelector, renderer: NotebookOutputRenderer): Disposable;
|
||||
export function registerNotebookOutputRenderer(
|
||||
type: string,
|
||||
outputSelector: NotebookOutputSelector,
|
||||
renderer: NotebookOutputRenderer
|
||||
): Disposable;
|
||||
|
||||
export const onDidOpenNotebookDocument: Event<NotebookDocument>;
|
||||
export const onDidCloseNotebookDocument: Event<NotebookDocument>;
|
||||
// export const onDidChangeVisibleNotebookEditors: Event<NotebookEditor[]>;
|
||||
|
||||
// remove activeNotebookDocument, now that there is activeNotebookEditor.document
|
||||
export let activeNotebookDocument: NotebookDocument | undefined;
|
||||
@@ -1865,7 +1873,7 @@ declare module 'vscode' {
|
||||
//#endregion
|
||||
|
||||
|
||||
//#region eamodio - timeline: https://github.com/microsoft/vscode/issues/84297
|
||||
//#region @eamodio - timeline: https://github.com/microsoft/vscode/issues/84297
|
||||
|
||||
export class TimelineItem {
|
||||
/**
|
||||
@@ -1888,7 +1896,7 @@ declare module 'vscode' {
|
||||
/**
|
||||
* The icon path or [ThemeIcon](#ThemeIcon) for the timeline item.
|
||||
*/
|
||||
iconPath?: Uri | { light: Uri; dark: Uri } | ThemeIcon;
|
||||
iconPath?: Uri | { light: Uri; dark: Uri; } | ThemeIcon;
|
||||
|
||||
/**
|
||||
* A human readable string describing less prominent details of the timeline item.
|
||||
@@ -1951,7 +1959,7 @@ declare module 'vscode' {
|
||||
* Use `undefined` to signal that there are no more items to be returned.
|
||||
*/
|
||||
readonly cursor: string | undefined;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* An array of [timeline items](#TimelineItem).
|
||||
@@ -1969,7 +1977,7 @@ declare module 'vscode' {
|
||||
* An optional maximum number timeline items or the all timeline items newer (inclusive) than the timestamp or id that should be returned.
|
||||
* If `undefined` all timeline items should be returned.
|
||||
*/
|
||||
limit?: number | { timestamp: number; id?: string };
|
||||
limit?: number | { timestamp: number; id?: string; };
|
||||
}
|
||||
|
||||
export interface TimelineProvider {
|
||||
@@ -2033,7 +2041,7 @@ declare module 'vscode' {
|
||||
*
|
||||
* - Any code actions of `kind` are returned by the provider.
|
||||
*/
|
||||
readonly documentation?: ReadonlyArray<{ readonly kind: CodeActionKind, readonly command: Command }>;
|
||||
readonly documentation?: ReadonlyArray<{ readonly kind: CodeActionKind, readonly command: Command; }>;
|
||||
}
|
||||
|
||||
//#endregion
|
||||
@@ -2072,26 +2080,4 @@ declare module 'vscode' {
|
||||
}
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region Comment
|
||||
export interface CommentOptions {
|
||||
/**
|
||||
* An optional string to show on the comment input box when it's collapsed.
|
||||
*/
|
||||
prompt?: string;
|
||||
|
||||
/**
|
||||
* An optional string to show as placeholder in the comment input box when it's focused.
|
||||
*/
|
||||
placeHolder?: string;
|
||||
}
|
||||
|
||||
export interface CommentController {
|
||||
/**
|
||||
* Comment controller options
|
||||
*/
|
||||
options?: CommentOptions;
|
||||
}
|
||||
|
||||
//#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user