Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/.build-hash
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9843c1b76b4171d8dedafbce80d5fc21c108d343c0854ed8c1bcac51c795aaa6
9202a79f42f75981ee7735133c8aab9fdc680244b7ef5ead82c1a2fda38a1d26
16 changes: 16 additions & 0 deletions lib/element.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
import { Signal, TerminalModel } from './model';
import { IBufferCellPosition, IBufferRange, ITerminalOptions, ITheme, IViewportRange, Terminal as XTerminal } from '@xterm/xterm';
import { Pty } from './pty';
/**
* A stable marker the element sets on itself in `initialize()` (not the
* constructor — see the comment there), regardless of what its tag name
* happens to be. See `getElementName()` in `utils.ts` for why that can vary.
* Everything that needs to find a terminal element (styles, keymaps, the
* context menu, command scoping, `.closest()` lookups) should target this
* attribute instead of the tag name.
*
* This is needed at least temporarily so that an instance of this package can
* be linked via `ppm` and shadow the builtin `terminal` package. It will no
* longer be needed once Pulsar ships a version of `terminal` that does not
* unconditionally register the `pulsar-terminal` element name at `require`
* time.
*/
export declare const TERMINAL_ELEMENT_ATTRIBUTE = "data-pulsar-terminal";
type TooltipMetadata = {
range: IBufferRange;
rangeType?: 'buffer' | 'viewport';
Expand Down Expand Up @@ -73,4 +88,5 @@ export declare class TerminalElement extends HTMLElement {
inspectPoint(cell: IBufferCellPosition): string;
inspectRange(range: IBufferRange | undefined): string;
}
export declare function registerTerminalElement(): void;
export {};
44 changes: 42 additions & 2 deletions lib/element.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/element.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/terminal.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class Terminal {
static inferTerminalModel(event?: CommandEvent): TerminalModel | undefined;
static inferTerminalElement(event: CommandEvent): TerminalElement | null;
static open(uri: string, rawOptions?: OpenOptions): Promise<TerminalModel>;
static getActiveWorkspaceLocation(activeContainer?: Dock | WorkspaceCenter): "center" | "bottom" | "left" | "right" | undefined;
static getActiveWorkspaceLocation(activeContainer?: Dock | WorkspaceCenter): "left" | "right" | "bottom" | "center" | undefined;
static close(): void;
static restart(event?: CommandEvent): void;
static copy(event?: CommandEvent): void;
Expand Down
5 changes: 3 additions & 2 deletions lib/terminal.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/terminal.js.map

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions lib/utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/utils.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading