mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Remove any
This commit is contained in:
@ -219,9 +219,9 @@ export class PawDrawEditorProvider implements vscode.CustomEditorProvider<PawDra
|
||||
openContext: { backupId?: string },
|
||||
_token: vscode.CancellationToken
|
||||
): Promise<PawDrawDocument> {
|
||||
const document = await PawDrawDocument.create(uri, openContext.backupId, {
|
||||
const document: PawDrawDocument = await PawDrawDocument.create(uri, openContext.backupId, {
|
||||
getFileData: async () => {
|
||||
const webviewsForDocument: any = Array.from(this.webviews.get(document.uri));
|
||||
const webviewsForDocument = Array.from(this.webviews.get(document.uri));
|
||||
if (!webviewsForDocument.length) {
|
||||
throw new Error('Could not find webview to save for');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user