mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Merge vscode 1.67 (#20883)
* Fix initial build breaks from 1.67 merge (#2514) * Update yarn lock files * Update build scripts * Fix tsconfig * Build breaks * WIP * Update yarn lock files * Misc breaks * Updates to package.json * Breaks * Update yarn * Fix breaks * Breaks * Build breaks * Breaks * Breaks * Breaks * Breaks * Breaks * Missing file * Breaks * Breaks * Breaks * Breaks * Breaks * Fix several runtime breaks (#2515) * Missing files * Runtime breaks * Fix proxy ordering issue * Remove commented code * Fix breaks with opening query editor * Fix post merge break * Updates related to setup build and other breaks (#2516) * Fix bundle build issues * Update distro * Fix distro merge and update build JS files * Disable pipeline steps * Remove stats call * Update license name * Make new RPM dependencies a warning * Fix extension manager version checks * Update JS file * Fix a few runtime breaks * Fixes * Fix runtime issues * Fix build breaks * Update notebook tests (part 1) * Fix broken tests * Linting errors * Fix hygiene * Disable lint rules * Bump distro * Turn off smoke tests * Disable integration tests * Remove failing "activate" test * Remove failed test assertion * Disable other broken test * Disable query history tests * Disable extension unit tests * Disable failing tasks
This commit is contained in:
106
src/vscode-dts/vscode.proposed.notebookEditor.d.ts
vendored
Normal file
106
src/vscode-dts/vscode.proposed.notebookEditor.d.ts
vendored
Normal file
@@ -0,0 +1,106 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
declare module 'vscode' {
|
||||
|
||||
// https://github.com/microsoft/vscode/issues/106744
|
||||
|
||||
/**
|
||||
* Represents a notebook editor that is attached to a {@link NotebookDocument notebook}.
|
||||
*/
|
||||
export enum NotebookEditorRevealType {
|
||||
/**
|
||||
* The range will be revealed with as little scrolling as possible.
|
||||
*/
|
||||
Default = 0,
|
||||
|
||||
/**
|
||||
* The range will always be revealed in the center of the viewport.
|
||||
*/
|
||||
InCenter = 1,
|
||||
|
||||
/**
|
||||
* If the range is outside the viewport, it will be revealed in the center of the viewport.
|
||||
* Otherwise, it will be revealed with as little scrolling as possible.
|
||||
*/
|
||||
InCenterIfOutsideViewport = 2,
|
||||
|
||||
/**
|
||||
* The range will always be revealed at the top of the viewport.
|
||||
*/
|
||||
AtTop = 3
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a notebook editor that is attached to a {@link NotebookDocument notebook}.
|
||||
*/
|
||||
export interface NotebookEditor {
|
||||
/**
|
||||
* The document associated with this notebook editor.
|
||||
*/
|
||||
//todo@api rename to notebook?
|
||||
readonly document: NotebookDocument;
|
||||
|
||||
/**
|
||||
* The selections on this notebook editor.
|
||||
*
|
||||
* The primary selection (or focused range) is `selections[0]`. When the document has no cells, the primary selection is empty `{ start: 0, end: 0 }`;
|
||||
*/
|
||||
selections: readonly NotebookRange[];
|
||||
|
||||
/**
|
||||
* The current visible ranges in the editor (vertically).
|
||||
*/
|
||||
readonly visibleRanges: readonly NotebookRange[];
|
||||
|
||||
/**
|
||||
* Scroll as indicated by `revealType` in order to reveal the given range.
|
||||
*
|
||||
* @param range A range.
|
||||
* @param revealType The scrolling strategy for revealing `range`.
|
||||
*/
|
||||
revealRange(range: NotebookRange, revealType?: NotebookEditorRevealType): void;
|
||||
|
||||
/**
|
||||
* The column in which this editor shows.
|
||||
*/
|
||||
readonly viewColumn?: ViewColumn;
|
||||
}
|
||||
|
||||
export interface NotebookEditorSelectionChangeEvent {
|
||||
/**
|
||||
* The {@link NotebookEditor notebook editor} for which the selections have changed.
|
||||
*/
|
||||
readonly notebookEditor: NotebookEditor;
|
||||
readonly selections: readonly NotebookRange[];
|
||||
}
|
||||
|
||||
export interface NotebookEditorVisibleRangesChangeEvent {
|
||||
/**
|
||||
* The {@link NotebookEditor notebook editor} for which the visible ranges have changed.
|
||||
*/
|
||||
readonly notebookEditor: NotebookEditor;
|
||||
readonly visibleRanges: readonly NotebookRange[];
|
||||
}
|
||||
|
||||
export interface NotebookDocumentShowOptions {
|
||||
readonly viewColumn?: ViewColumn;
|
||||
readonly preserveFocus?: boolean;
|
||||
readonly preview?: boolean;
|
||||
readonly selections?: readonly NotebookRange[];
|
||||
}
|
||||
|
||||
export namespace window {
|
||||
export const visibleNotebookEditors: readonly NotebookEditor[];
|
||||
export const onDidChangeVisibleNotebookEditors: Event<readonly NotebookEditor[]>;
|
||||
export const activeNotebookEditor: NotebookEditor | undefined;
|
||||
export const onDidChangeActiveNotebookEditor: Event<NotebookEditor | undefined>;
|
||||
export const onDidChangeNotebookEditorSelection: Event<NotebookEditorSelectionChangeEvent>;
|
||||
export const onDidChangeNotebookEditorVisibleRanges: Event<NotebookEditorVisibleRangesChangeEvent>;
|
||||
|
||||
export function showNotebookDocument(uri: Uri, options?: NotebookDocumentShowOptions): Thenable<NotebookEditor>;
|
||||
export function showNotebookDocument(document: NotebookDocument, options?: NotebookDocumentShowOptions): Thenable<NotebookEditor>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user