diff --git a/.changeset/violet-ways-fold.md b/.changeset/violet-ways-fold.md new file mode 100644 index 0000000000..30cc0e3697 --- /dev/null +++ b/.changeset/violet-ways-fold.md @@ -0,0 +1,5 @@ +--- +"vs-code-extension": patch +--- + +remove migrateSettingsFromInlangToSherlock because its no longer needed diff --git a/inlang/source-code/ide-extension/src/utilities/settings/getUserId.ts b/inlang/source-code/ide-extension/src/utilities/settings/getUserId.ts index 469839b6f0..b30cbfd366 100644 --- a/inlang/source-code/ide-extension/src/utilities/settings/getUserId.ts +++ b/inlang/source-code/ide-extension/src/utilities/settings/getUserId.ts @@ -1,5 +1,5 @@ import { randomUUID } from "node:crypto" -import { getSetting, migrateSettingsFromInlangToSherlock, updateSetting } from "./index.js" +import { getSetting, updateSetting } from "./index.js" /** * Returns the user ID. If it doesn't exist yet, it will be generated and persisted. @@ -10,9 +10,7 @@ import { getSetting, migrateSettingsFromInlangToSherlock, updateSetting } from " * console.info(userId) // 123e4567-e89b-12d3-a456-426614174000 */ export async function getUserId() { - // TODO: remove this migrate settings from inlang to sherlock after 01 April 2024 - await migrateSettingsFromInlangToSherlock() - + // Get the user ID const persistedId = await getPersistedId() if (!persistedId) { diff --git a/inlang/source-code/ide-extension/src/utilities/settings/index.ts b/inlang/source-code/ide-extension/src/utilities/settings/index.ts index e5ed9161cd..55434910d3 100644 --- a/inlang/source-code/ide-extension/src/utilities/settings/index.ts +++ b/inlang/source-code/ide-extension/src/utilities/settings/index.ts @@ -35,31 +35,9 @@ export const updateSetting = async (property: SettingsProperty, value: any): Pro * */ export const getSetting = async (property: SettingsProperty): Promise => { - // TODO: remove this migrate settings from inlang to sherlock after 01 April 2024 - migrateSettingsFromInlangToSherlock() - const value = vscode.workspace.getConfiguration("sherlock").get(property) if (value === undefined) { throw new Error(`Could not find configuration property ${property}`) } return value } - -/** - * Migrates settings from the old inlang namespace to the new sherlock namespace. - */ -// TODO: remove this migrate settings from inlang to sherlock after 01 April 2024 -export const migrateSettingsFromInlangToSherlock = async () => { - if (vscode.workspace.getConfiguration("sherlock").get("userId")) { - return - } - - const inlangSettings = vscode.workspace.getConfiguration("inlang") - - for (const property of settingsProperty) { - const value = inlangSettings.get(property) - if (value !== undefined) { - await updateSetting(property, value) - } - } -}