mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-01 09:35:41 -05:00
* 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
63 lines
2.5 KiB
TypeScript
63 lines
2.5 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* 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/115616 @alexr00
|
|
|
|
export enum PortAutoForwardAction {
|
|
Notify = 1,
|
|
OpenBrowser = 2,
|
|
OpenPreview = 3,
|
|
Silent = 4,
|
|
Ignore = 5,
|
|
OpenBrowserOnce = 6
|
|
}
|
|
|
|
export class PortAttributes {
|
|
/**
|
|
* The port number associated with this this set of attributes.
|
|
*/
|
|
port: number;
|
|
|
|
/**
|
|
* The action to be taken when this port is detected for auto forwarding.
|
|
*/
|
|
autoForwardAction: PortAutoForwardAction;
|
|
|
|
/**
|
|
* Creates a new PortAttributes object
|
|
* @param port the port number
|
|
* @param autoForwardAction the action to take when this port is detected
|
|
*/
|
|
constructor(port: number, autoForwardAction: PortAutoForwardAction);
|
|
}
|
|
|
|
export interface PortAttributesProvider {
|
|
/**
|
|
* Provides attributes for the given port. For ports that your extension doesn't know about, simply
|
|
* return undefined. For example, if `providePortAttributes` is called with ports 3000 but your
|
|
* extension doesn't know anything about 3000 you should return undefined.
|
|
*/
|
|
providePortAttributes(port: number, pid: number | undefined, commandLine: string | undefined, token: CancellationToken): ProviderResult<PortAttributes>;
|
|
}
|
|
|
|
export namespace workspace {
|
|
/**
|
|
* If your extension listens on ports, consider registering a PortAttributesProvider to provide information
|
|
* about the ports. For example, a debug extension may know about debug ports in it's debuggee. By providing
|
|
* this information with a PortAttributesProvider the extension can tell the editor that these ports should be
|
|
* ignored, since they don't need to be user facing.
|
|
*
|
|
* @param portSelector If registerPortAttributesProvider is called after you start your process then you may already
|
|
* know the range of ports or the pid of your process. All properties of a the portSelector must be true for your
|
|
* provider to get called.
|
|
* The `portRange` is start inclusive and end exclusive.
|
|
* @param provider The PortAttributesProvider
|
|
*/
|
|
export function registerPortAttributesProvider(portSelector: { pid?: number; portRange?: [number, number]; commandMatcher?: RegExp }, provider: PortAttributesProvider): Disposable;
|
|
}
|
|
}
|