diff --git a/src/vs/workbench/api/common/extHost.api.impl.ts b/src/vs/workbench/api/common/extHost.api.impl.ts index 7fc4061486a..67d656ae520 100644 --- a/src/vs/workbench/api/common/extHost.api.impl.ts +++ b/src/vs/workbench/api/common/extHost.api.impl.ts @@ -1199,6 +1199,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I workspace, // types Breakpoint: extHostTypes.Breakpoint, + TerminalOutputAnchor: extHostTypes.TerminalOutputAnchor, CallHierarchyIncomingCall: extHostTypes.CallHierarchyIncomingCall, CallHierarchyItem: extHostTypes.CallHierarchyItem, CallHierarchyOutgoingCall: extHostTypes.CallHierarchyOutgoingCall, diff --git a/src/vs/workbench/api/common/extHostTypes.ts b/src/vs/workbench/api/common/extHostTypes.ts index 4c8ac5c6bce..00052e4f221 100644 --- a/src/vs/workbench/api/common/extHostTypes.ts +++ b/src/vs/workbench/api/common/extHostTypes.ts @@ -45,6 +45,11 @@ function es5ClassCompat(target: Function): any { return Object.assign(target, interceptFunctions); } +export enum TerminalOutputAnchor { + top = 'top', + bottom = 'bottom' +} + @es5ClassCompat export class Disposable { diff --git a/src/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts b/src/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts index 03b0038e080..dd8049baed3 100644 --- a/src/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts +++ b/src/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts @@ -50,10 +50,7 @@ declare module 'vscode' { // support line range/col? see elsewhere uri: Uri; } - const enum OutputAnchor { - top = 'top', - bottom = 'bottom' - } + /** * A matcher that runs on a sub-section of a terminal command's output */ @@ -66,7 +63,7 @@ declare module 'vscode' { /** * Which side of the output to anchor the {@link offset} and {@link length} against. */ - anchor: OutputAnchor; + anchor: TerminalOutputAnchor; /** * How far from either the top or the bottom of the butter to start matching against. */ @@ -84,4 +81,9 @@ declare module 'vscode' { command: string; exitCode?: number; } + + enum TerminalOutputAnchor { + top = 'top', + bottom = 'bottom' + } }