From c3b4b0bebca07a69f6c47d680f0c18d859cb599c Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 20 Oct 2025 13:09:58 -0300 Subject: language: drop externalLinkSpec prop, just import directly this lets us totally drop "internal" but exported function initializeLanguageObject - we'll still need to provide the external link spec in essentially the exact same way in the future, when external link spec is dynamic, but presently there's no need for this function or providing at all. --- src/data/language.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src/data/language.js') diff --git a/src/data/language.js b/src/data/language.js index 8dc06e7e..e97267c0 100644 --- a/src/data/language.js +++ b/src/data/language.js @@ -8,7 +8,6 @@ import yaml from 'js-yaml'; import {annotateError, annotateErrorWithFile, showAggregate, withAggregate} from '#aggregate'; -import {externalLinkSpec} from '#external-links'; import {colors, logWarn} from '#cli'; import {empty, splitKeys, withEntries} from '#sugar'; import T from '#things'; @@ -247,16 +246,8 @@ async function processLanguageSpecFromFile(file, processLanguageSpecOpts) { } } -export function initializeLanguageObject() { - const language = new Language(); - - language.externalLinkSpec = externalLinkSpec; - - return language; -} - export async function processLanguageFile(file) { - const language = initializeLanguageObject(); + const language = new Language() const properties = await processLanguageSpecFromFile(file); return Object.assign(language, properties); } @@ -267,7 +258,7 @@ export function watchLanguageFile(file, { const basename = path.basename(file); const events = new EventEmitter(); - const language = initializeLanguageObject(); + const language = new Language(); let emittedReady = false; let successfullyAppliedLanguage = false; -- cgit 1.3.0-6-gf8a5