diff --git a/data/fixtures/scopes/textual/boundedNonWhitespaceSequence.iteration.scope b/data/fixtures/scopes/plaintext/boundedNonWhitespaceSequence.iteration.scope similarity index 100% rename from data/fixtures/scopes/textual/boundedNonWhitespaceSequence.iteration.scope rename to data/fixtures/scopes/plaintext/boundedNonWhitespaceSequence.iteration.scope diff --git a/data/fixtures/scopes/textual/boundedNonWhitespaceSequence.scope b/data/fixtures/scopes/plaintext/boundedNonWhitespaceSequence.scope similarity index 100% rename from data/fixtures/scopes/textual/boundedNonWhitespaceSequence.scope rename to data/fixtures/scopes/plaintext/boundedNonWhitespaceSequence.scope diff --git a/data/fixtures/scopes/textual/boundedNonWhitespaceSequence2.scope b/data/fixtures/scopes/plaintext/boundedNonWhitespaceSequence2.scope similarity index 100% rename from data/fixtures/scopes/textual/boundedNonWhitespaceSequence2.scope rename to data/fixtures/scopes/plaintext/boundedNonWhitespaceSequence2.scope diff --git a/data/fixtures/scopes/textual/boundedNonWhitespaceSequence3.scope b/data/fixtures/scopes/plaintext/boundedNonWhitespaceSequence3.scope similarity index 100% rename from data/fixtures/scopes/textual/boundedNonWhitespaceSequence3.scope rename to data/fixtures/scopes/plaintext/boundedNonWhitespaceSequence3.scope diff --git a/data/fixtures/scopes/textual/boundedParagraph/boundedParagraph.iteration.scope b/data/fixtures/scopes/plaintext/boundedParagraph/boundedParagraph.iteration.scope similarity index 100% rename from data/fixtures/scopes/textual/boundedParagraph/boundedParagraph.iteration.scope rename to data/fixtures/scopes/plaintext/boundedParagraph/boundedParagraph.iteration.scope diff --git a/data/fixtures/scopes/textual/boundedParagraph/boundedParagraph.scope b/data/fixtures/scopes/plaintext/boundedParagraph/boundedParagraph.scope similarity index 100% rename from data/fixtures/scopes/textual/boundedParagraph/boundedParagraph.scope rename to data/fixtures/scopes/plaintext/boundedParagraph/boundedParagraph.scope diff --git a/data/fixtures/scopes/textual/boundedParagraph/boundedParagraph2.scope b/data/fixtures/scopes/plaintext/boundedParagraph/boundedParagraph2.scope similarity index 100% rename from data/fixtures/scopes/textual/boundedParagraph/boundedParagraph2.scope rename to data/fixtures/scopes/plaintext/boundedParagraph/boundedParagraph2.scope diff --git a/data/fixtures/scopes/textual/boundedParagraph/boundedParagraph3.scope b/data/fixtures/scopes/plaintext/boundedParagraph/boundedParagraph3.scope similarity index 100% rename from data/fixtures/scopes/textual/boundedParagraph/boundedParagraph3.scope rename to data/fixtures/scopes/plaintext/boundedParagraph/boundedParagraph3.scope diff --git a/data/fixtures/scopes/textual/boundedParagraph/boundedParagraph4.scope b/data/fixtures/scopes/plaintext/boundedParagraph/boundedParagraph4.scope similarity index 100% rename from data/fixtures/scopes/textual/boundedParagraph/boundedParagraph4.scope rename to data/fixtures/scopes/plaintext/boundedParagraph/boundedParagraph4.scope diff --git a/data/fixtures/scopes/textual/boundedParagraph/boundedParagraph5.scope b/data/fixtures/scopes/plaintext/boundedParagraph/boundedParagraph5.scope similarity index 100% rename from data/fixtures/scopes/textual/boundedParagraph/boundedParagraph5.scope rename to data/fixtures/scopes/plaintext/boundedParagraph/boundedParagraph5.scope diff --git a/data/fixtures/scopes/textual/boundedParagraph/boundedParagraph6.scope b/data/fixtures/scopes/plaintext/boundedParagraph/boundedParagraph6.scope similarity index 100% rename from data/fixtures/scopes/textual/boundedParagraph/boundedParagraph6.scope rename to data/fixtures/scopes/plaintext/boundedParagraph/boundedParagraph6.scope diff --git a/data/fixtures/scopes/textual/character.scope b/data/fixtures/scopes/plaintext/character.scope similarity index 100% rename from data/fixtures/scopes/textual/character.scope rename to data/fixtures/scopes/plaintext/character.scope diff --git a/data/fixtures/scopes/textual/collectionItem/collectionItem.textual.iteration.scope b/data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual.iteration.scope similarity index 100% rename from data/fixtures/scopes/textual/collectionItem/collectionItem.textual.iteration.scope rename to data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual.iteration.scope diff --git a/data/fixtures/scopes/textual/collectionItem/collectionItem.textual.iteration2.scope b/data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual.iteration2.scope similarity index 100% rename from data/fixtures/scopes/textual/collectionItem/collectionItem.textual.iteration2.scope rename to data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual.iteration2.scope diff --git a/data/fixtures/scopes/textual/collectionItem/collectionItem.textual.iteration3.scope b/data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual.iteration3.scope similarity index 100% rename from data/fixtures/scopes/textual/collectionItem/collectionItem.textual.iteration3.scope rename to data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual.iteration3.scope diff --git a/data/fixtures/scopes/textual/collectionItem/collectionItem.textual.iteration4.scope b/data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual.iteration4.scope similarity index 100% rename from data/fixtures/scopes/textual/collectionItem/collectionItem.textual.iteration4.scope rename to data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual.iteration4.scope diff --git a/data/fixtures/scopes/textual/collectionItem/collectionItem.textual.iteration5.scope b/data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual.iteration5.scope similarity index 100% rename from data/fixtures/scopes/textual/collectionItem/collectionItem.textual.iteration5.scope rename to data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual.iteration5.scope diff --git a/data/fixtures/scopes/textual/collectionItem/collectionItem.textual.iteration6.scope b/data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual.iteration6.scope similarity index 100% rename from data/fixtures/scopes/textual/collectionItem/collectionItem.textual.iteration6.scope rename to data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual.iteration6.scope diff --git a/data/fixtures/scopes/textual/collectionItem/collectionItem.textual.iteration7.scope b/data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual.iteration7.scope similarity index 100% rename from data/fixtures/scopes/textual/collectionItem/collectionItem.textual.iteration7.scope rename to data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual.iteration7.scope diff --git a/data/fixtures/scopes/textual/collectionItem/collectionItem.textual.scope b/data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual.scope similarity index 100% rename from data/fixtures/scopes/textual/collectionItem/collectionItem.textual.scope rename to data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual.scope diff --git a/data/fixtures/scopes/textual/collectionItem/collectionItem.textual10.scope b/data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual10.scope similarity index 100% rename from data/fixtures/scopes/textual/collectionItem/collectionItem.textual10.scope rename to data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual10.scope diff --git a/data/fixtures/scopes/textual/collectionItem/collectionItem.textual11.scope b/data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual11.scope similarity index 100% rename from data/fixtures/scopes/textual/collectionItem/collectionItem.textual11.scope rename to data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual11.scope diff --git a/data/fixtures/scopes/textual/collectionItem/collectionItem.textual12.scope b/data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual12.scope similarity index 100% rename from data/fixtures/scopes/textual/collectionItem/collectionItem.textual12.scope rename to data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual12.scope diff --git a/data/fixtures/scopes/textual/collectionItem/collectionItem.textual13.scope b/data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual13.scope similarity index 100% rename from data/fixtures/scopes/textual/collectionItem/collectionItem.textual13.scope rename to data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual13.scope diff --git a/data/fixtures/scopes/textual/collectionItem/collectionItem.textual14.scope b/data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual14.scope similarity index 100% rename from data/fixtures/scopes/textual/collectionItem/collectionItem.textual14.scope rename to data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual14.scope diff --git a/data/fixtures/scopes/textual/collectionItem/collectionItem.textual15.scope b/data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual15.scope similarity index 100% rename from data/fixtures/scopes/textual/collectionItem/collectionItem.textual15.scope rename to data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual15.scope diff --git a/data/fixtures/scopes/textual/collectionItem/collectionItem.textual2.scope b/data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual2.scope similarity index 100% rename from data/fixtures/scopes/textual/collectionItem/collectionItem.textual2.scope rename to data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual2.scope diff --git a/data/fixtures/scopes/textual/collectionItem/collectionItem.textual3.scope b/data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual3.scope similarity index 100% rename from data/fixtures/scopes/textual/collectionItem/collectionItem.textual3.scope rename to data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual3.scope diff --git a/data/fixtures/scopes/textual/collectionItem/collectionItem.textual4.scope b/data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual4.scope similarity index 100% rename from data/fixtures/scopes/textual/collectionItem/collectionItem.textual4.scope rename to data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual4.scope diff --git a/data/fixtures/scopes/textual/collectionItem/collectionItem.textual5.scope b/data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual5.scope similarity index 100% rename from data/fixtures/scopes/textual/collectionItem/collectionItem.textual5.scope rename to data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual5.scope diff --git a/data/fixtures/scopes/textual/collectionItem/collectionItem.textual6.scope b/data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual6.scope similarity index 100% rename from data/fixtures/scopes/textual/collectionItem/collectionItem.textual6.scope rename to data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual6.scope diff --git a/data/fixtures/scopes/textual/collectionItem/collectionItem.textual7.scope b/data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual7.scope similarity index 100% rename from data/fixtures/scopes/textual/collectionItem/collectionItem.textual7.scope rename to data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual7.scope diff --git a/data/fixtures/scopes/textual/collectionItem/collectionItem.textual8.scope b/data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual8.scope similarity index 100% rename from data/fixtures/scopes/textual/collectionItem/collectionItem.textual8.scope rename to data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual8.scope diff --git a/data/fixtures/scopes/textual/collectionItem/collectionItem.textual9.scope b/data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual9.scope similarity index 100% rename from data/fixtures/scopes/textual/collectionItem/collectionItem.textual9.scope rename to data/fixtures/scopes/plaintext/collectionItem/collectionItem.textual9.scope diff --git a/data/fixtures/scopes/textual/document.scope b/data/fixtures/scopes/plaintext/document.scope similarity index 100% rename from data/fixtures/scopes/textual/document.scope rename to data/fixtures/scopes/plaintext/document.scope diff --git a/data/fixtures/scopes/textual/identifier.scope b/data/fixtures/scopes/plaintext/identifier.scope similarity index 100% rename from data/fixtures/scopes/textual/identifier.scope rename to data/fixtures/scopes/plaintext/identifier.scope diff --git a/data/fixtures/scopes/textual/interior.surroundingPair.scope b/data/fixtures/scopes/plaintext/interior.surroundingPair.scope similarity index 100% rename from data/fixtures/scopes/textual/interior.surroundingPair.scope rename to data/fixtures/scopes/plaintext/interior.surroundingPair.scope diff --git a/data/fixtures/scopes/textual/line.scope b/data/fixtures/scopes/plaintext/line.scope similarity index 100% rename from data/fixtures/scopes/textual/line.scope rename to data/fixtures/scopes/plaintext/line.scope diff --git a/data/fixtures/scopes/textual/line2.scope b/data/fixtures/scopes/plaintext/line2.scope similarity index 100% rename from data/fixtures/scopes/textual/line2.scope rename to data/fixtures/scopes/plaintext/line2.scope diff --git a/data/fixtures/scopes/textual/nonWhitespaceSequence.scope b/data/fixtures/scopes/plaintext/nonWhitespaceSequence.scope similarity index 100% rename from data/fixtures/scopes/textual/nonWhitespaceSequence.scope rename to data/fixtures/scopes/plaintext/nonWhitespaceSequence.scope diff --git a/data/fixtures/scopes/textual/paragraph.scope b/data/fixtures/scopes/plaintext/paragraph.scope similarity index 100% rename from data/fixtures/scopes/textual/paragraph.scope rename to data/fixtures/scopes/plaintext/paragraph.scope diff --git a/data/fixtures/scopes/textual/sentence.scope b/data/fixtures/scopes/plaintext/sentence.scope similarity index 100% rename from data/fixtures/scopes/textual/sentence.scope rename to data/fixtures/scopes/plaintext/sentence.scope diff --git a/data/fixtures/scopes/textual/surroundingPair/surroundingPair.iteration.scope b/data/fixtures/scopes/plaintext/surroundingPair/surroundingPair.iteration.scope similarity index 100% rename from data/fixtures/scopes/textual/surroundingPair/surroundingPair.iteration.scope rename to data/fixtures/scopes/plaintext/surroundingPair/surroundingPair.iteration.scope diff --git a/data/fixtures/scopes/textual/surroundingPair/surroundingPair.iteration2.scope b/data/fixtures/scopes/plaintext/surroundingPair/surroundingPair.iteration2.scope similarity index 100% rename from data/fixtures/scopes/textual/surroundingPair/surroundingPair.iteration2.scope rename to data/fixtures/scopes/plaintext/surroundingPair/surroundingPair.iteration2.scope diff --git a/data/fixtures/scopes/textual/surroundingPair/surroundingPair.scope b/data/fixtures/scopes/plaintext/surroundingPair/surroundingPair.scope similarity index 100% rename from data/fixtures/scopes/textual/surroundingPair/surroundingPair.scope rename to data/fixtures/scopes/plaintext/surroundingPair/surroundingPair.scope diff --git a/data/fixtures/scopes/textual/surroundingPair/surroundingPair2.scope b/data/fixtures/scopes/plaintext/surroundingPair/surroundingPair2.scope similarity index 100% rename from data/fixtures/scopes/textual/surroundingPair/surroundingPair2.scope rename to data/fixtures/scopes/plaintext/surroundingPair/surroundingPair2.scope diff --git a/data/fixtures/scopes/textual/surroundingPair/surroundingPair3.scope b/data/fixtures/scopes/plaintext/surroundingPair/surroundingPair3.scope similarity index 100% rename from data/fixtures/scopes/textual/surroundingPair/surroundingPair3.scope rename to data/fixtures/scopes/plaintext/surroundingPair/surroundingPair3.scope diff --git a/data/fixtures/scopes/textual/surroundingPair/surroundingPair4.scope b/data/fixtures/scopes/plaintext/surroundingPair/surroundingPair4.scope similarity index 100% rename from data/fixtures/scopes/textual/surroundingPair/surroundingPair4.scope rename to data/fixtures/scopes/plaintext/surroundingPair/surroundingPair4.scope diff --git a/data/fixtures/scopes/textual/surroundingPair/surroundingPair5.scope b/data/fixtures/scopes/plaintext/surroundingPair/surroundingPair5.scope similarity index 100% rename from data/fixtures/scopes/textual/surroundingPair/surroundingPair5.scope rename to data/fixtures/scopes/plaintext/surroundingPair/surroundingPair5.scope diff --git a/data/fixtures/scopes/textual/surroundingPair/surroundingPair6.scope b/data/fixtures/scopes/plaintext/surroundingPair/surroundingPair6.scope similarity index 100% rename from data/fixtures/scopes/textual/surroundingPair/surroundingPair6.scope rename to data/fixtures/scopes/plaintext/surroundingPair/surroundingPair6.scope diff --git a/data/fixtures/scopes/textual/token.scope b/data/fixtures/scopes/plaintext/token.scope similarity index 100% rename from data/fixtures/scopes/textual/token.scope rename to data/fixtures/scopes/plaintext/token.scope diff --git a/data/fixtures/scopes/textual/url.scope b/data/fixtures/scopes/plaintext/url.scope similarity index 100% rename from data/fixtures/scopes/textual/url.scope rename to data/fixtures/scopes/plaintext/url.scope diff --git a/data/fixtures/scopes/textual/word.scope b/data/fixtures/scopes/plaintext/word.scope similarity index 100% rename from data/fixtures/scopes/textual/word.scope rename to data/fixtures/scopes/plaintext/word.scope diff --git a/data/fixtures/scopes/textual/word2.scope b/data/fixtures/scopes/plaintext/word2.scope similarity index 100% rename from data/fixtures/scopes/textual/word2.scope rename to data/fixtures/scopes/plaintext/word2.scope diff --git a/packages/common/src/index.ts b/packages/common/src/index.ts index 45fd51b454..d09a33453c 100644 --- a/packages/common/src/index.ts +++ b/packages/common/src/index.ts @@ -30,9 +30,9 @@ export * from "./ide/types/RawTreeSitterQueryProvider"; export * from "./ide/types/TutorialContentProvider"; export * from "./ide/util/messages"; export * from "./scopeSupportFacets/languageScopeSupport"; +export * from "./scopeSupportFacets/PlaintextScopeSupportFacetInfos"; export * from "./scopeSupportFacets/scopeSupportFacetInfos"; export * from "./scopeSupportFacets/scopeSupportFacets.types"; -export * from "./scopeSupportFacets/textualScopeSupportFacetInfos"; export * from "./StoredTargetKey"; export * from "./testUtil/asyncSafety"; export * from "./testUtil/extractTargetedMarks"; diff --git a/packages/common/src/scopeSupportFacets/textualScopeSupportFacetInfos.ts b/packages/common/src/scopeSupportFacets/PlaintextScopeSupportFacetInfos.ts similarity index 95% rename from packages/common/src/scopeSupportFacets/textualScopeSupportFacetInfos.ts rename to packages/common/src/scopeSupportFacets/PlaintextScopeSupportFacetInfos.ts index 8fe3e2de83..5192a950a8 100644 --- a/packages/common/src/scopeSupportFacets/textualScopeSupportFacetInfos.ts +++ b/packages/common/src/scopeSupportFacets/PlaintextScopeSupportFacetInfos.ts @@ -1,10 +1,10 @@ import type { ScopeSupportFacetInfo, - TextualScopeSupportFacet, + PlaintextScopeSupportFacet, } from "./scopeSupportFacets.types"; -export const textualScopeSupportFacetInfos: Record< - TextualScopeSupportFacet, +export const plaintextScopeSupportFacetInfos: Record< + PlaintextScopeSupportFacet, ScopeSupportFacetInfo > = { character: { diff --git a/packages/common/src/scopeSupportFacets/scopeSupportFacets.types.ts b/packages/common/src/scopeSupportFacets/scopeSupportFacets.types.ts index 0a3bbef0b8..42e0e08714 100644 --- a/packages/common/src/scopeSupportFacets/scopeSupportFacets.types.ts +++ b/packages/common/src/scopeSupportFacets/scopeSupportFacets.types.ts @@ -284,7 +284,7 @@ export enum ScopeSupportFacetLevel { export type ScopeSupportFacet = (typeof scopeSupportFacets)[number]; -export type TextualScopeSupportFacet = +export type PlaintextScopeSupportFacet = | "character" | "word" | "token" diff --git a/packages/cursorless-engine/src/scripts/transformRecordedTests/moveFile.ts b/packages/cursorless-engine/src/scripts/transformRecordedTests/moveFile.ts index c6e51dd70a..8a00c41440 100644 --- a/packages/cursorless-engine/src/scripts/transformRecordedTests/moveFile.ts +++ b/packages/cursorless-engine/src/scripts/transformRecordedTests/moveFile.ts @@ -17,7 +17,7 @@ export default async function moveFile(file: string) { } const childDirName = inputFixture.languageId === "plaintext" - ? "textual" + ? "plaintext" : `parseTree/${inputFixture.languageId}`; const childDir = path.join(parent, childDirName); await mkdir(childDir, { recursive: true }); diff --git a/packages/cursorless-vscode-e2e/src/suite/scopes.vscode.test.ts b/packages/cursorless-vscode-e2e/src/suite/scopes.vscode.test.ts index 0c9a7fad62..6467409598 100644 --- a/packages/cursorless-vscode-e2e/src/suite/scopes.vscode.test.ts +++ b/packages/cursorless-vscode-e2e/src/suite/scopes.vscode.test.ts @@ -1,7 +1,7 @@ import type { ScopeSupportFacet, ScopeType, - TextualScopeSupportFacet, + PlaintextScopeSupportFacet, } from "@cursorless/common"; import { asyncSafety, @@ -9,7 +9,7 @@ import { scopeSupportFacetInfos, ScopeSupportFacetLevel, shouldUpdateFixtures, - textualScopeSupportFacetInfos, + plaintextScopeSupportFacetInfos, } from "@cursorless/common"; import { getScopeTestPathsRecursively } from "@cursorless/node-common"; import { getCursorlessApi, openNewEditor } from "@cursorless/vscode-common"; @@ -76,8 +76,8 @@ suite("Scope test cases", async function () { */ async function testLanguageSupport(languageId: string, testedFacets: string[]) { const supportedFacets = (() => { - if (languageId === "textual") { - return Object.keys(textualScopeSupportFacetInfos); + if (languageId === "plaintext") { + return Object.keys(plaintextScopeSupportFacetInfos); } const scopeSupport = languageScopeSupport[languageId]; @@ -174,8 +174,8 @@ function getFacetInfo( isIteration: boolean; } { const facetInfo = - languageId === "textual" - ? textualScopeSupportFacetInfos[facetId as TextualScopeSupportFacet] + languageId === "plaintext" + ? plaintextScopeSupportFacetInfos[facetId as PlaintextScopeSupportFacet] : scopeSupportFacetInfos[facetId as ScopeSupportFacet]; if (facetInfo == null) { diff --git a/packages/meta-updater/src/updatesScopeSupportFacetInfos.ts b/packages/meta-updater/src/updatesScopeSupportFacetInfos.ts index c5da07d35f..cf27003b72 100644 --- a/packages/meta-updater/src/updatesScopeSupportFacetInfos.ts +++ b/packages/meta-updater/src/updatesScopeSupportFacetInfos.ts @@ -1,9 +1,9 @@ import { scopeSupportFacetInfos, serializeScopeType, - textualScopeSupportFacetInfos, + plaintextScopeSupportFacetInfos, type ScopeSupportFacet, - type TextualScopeSupportFacet, + type PlaintextScopeSupportFacet, } from "@cursorless/common"; import type { FormatPluginFnOptions } from "@pnpm/meta-updater"; @@ -17,7 +17,7 @@ export function updatesScopeSupportFacetInfos( const facetsInfos = { ...scopeSupportFacetInfos, - ...textualScopeSupportFacetInfos, + ...plaintextScopeSupportFacetInfos, }; const facets = Object.keys(facetsInfos).sort(); @@ -26,7 +26,7 @@ export function updatesScopeSupportFacetInfos( for (const facet of facets) { const facetInfo = - facetsInfos[facet as ScopeSupportFacet | TextualScopeSupportFacet]; + facetsInfos[facet as ScopeSupportFacet | PlaintextScopeSupportFacet]; const scopeType = serializeScopeType(facetInfo.scopeType); if (scopeType !== currentScopeType) { if (currentScopeType != null) {