mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-06-13 07:10:26 +08:00
Update custom editor example to use eslint
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import * as vscode from 'vscode';
|
||||
|
||||
export function disposeAll(disposables: vscode.Disposable[]) {
|
||||
export function disposeAll(disposables: vscode.Disposable[]): void {
|
||||
while (disposables.length) {
|
||||
const item = disposables.pop();
|
||||
if (item) {
|
||||
@ -31,7 +31,7 @@ export abstract class Disposable {
|
||||
return value;
|
||||
}
|
||||
|
||||
protected get isDisposed() {
|
||||
protected get isDisposed(): boolean {
|
||||
return this._isDisposed;
|
||||
}
|
||||
}
|
||||
@ -373,9 +373,11 @@ export class PawDrawEditorProvider implements vscode.CustomEditorProvider<PawDra
|
||||
return;
|
||||
|
||||
case 'response':
|
||||
const callback = this._callbacks.get(message.requestId);
|
||||
callback?.(message.body);
|
||||
return;
|
||||
{
|
||||
const callback = this._callbacks.get(message.requestId);
|
||||
callback?.(message.body);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user