Fix more type assertions (#230156)

* Fix more type assertions

For #211878

* Fix type error
This commit is contained in:
Matt Bierner
2024-09-30 14:17:06 -07:00
committed by GitHub
parent 27d54aa27a
commit 51fa4d0172
25 changed files with 114 additions and 98 deletions

View File

@@ -198,7 +198,7 @@ export function createLanguageStatusItem(documentSelector: DocumentSelector, sta
statusItem.command = {
command: '_json.showAssociatedSchemaList',
title: l10n.t('Show Schemas'),
arguments: [{ schemas, uri: document.uri.toString() } as ShowSchemasInput]
arguments: [{ schemas, uri: document.uri.toString() } satisfies ShowSchemasInput]
};
} catch (e) {
statusItem.text = l10n.t('Unable to compute used schemas: {0}', e.message);