Skip to content

Commit aeba140

Browse files
authored
Merge pull request #4204 from silamon/proposedApiCheck
Remove check proposed api checks
2 parents aea7680 + 073aa6d commit aeba140

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

src/browser/public/Terminal.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ export class Terminal implements ITerminalApi {
7878

7979
public get element(): HTMLElement | undefined { return this._core.element; }
8080
public get parser(): IParser {
81-
this._checkProposedApi();
8281
if (!this._parser) {
8382
this._parser = new ParserApi(this._core);
8483
}
@@ -92,7 +91,6 @@ export class Terminal implements ITerminalApi {
9291
public get rows(): number { return this._core.rows; }
9392
public get cols(): number { return this._core.cols; }
9493
public get buffer(): IBufferNamespaceApi {
95-
this._checkProposedApi();
9694
if (!this._buffer) {
9795
this._buffer = new BufferNamespaceApi(this._core);
9896
}
@@ -148,7 +146,6 @@ export class Terminal implements ITerminalApi {
148146
this._core.attachCustomKeyEventHandler(customKeyEventHandler);
149147
}
150148
public registerLinkProvider(linkProvider: ILinkProvider): IDisposable {
151-
this._checkProposedApi();
152149
return this._core.registerLinkProvider(linkProvider);
153150
}
154151
public registerCharacterJoiner(handler: (text: string) => [number, number][]): number {

src/headless/public/Terminal.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('Headless API Tests', function (): void {
2222

2323
it('Proposed API check', async () => {
2424
term = new Terminal({ allowProposedApi: false });
25-
throws(() => term.buffer, (error) => error.message === 'You must set the allowProposedApi option to true to use proposed API');
25+
throws(() => term.markers, (error) => error.message === 'You must set the allowProposedApi option to true to use proposed API');
2626
});
2727

2828
it('write', async () => {

test/api/Terminal.api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('API Integration Tests', function(): void {
3535
await openTerminal(page, { allowProposedApi: false });
3636
await page.evaluate(`
3737
try {
38-
window.term.buffer;
38+
window.term.markers;
3939
} catch (e) {
4040
window.throwMessage = e.message;
4141
}

0 commit comments

Comments
 (0)