-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d1de0b8
commit b5cd406
Showing
10 changed files
with
16 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
import { bundleIdOrAliasIs, selectBundleNested, type IdeExtensionConfig } from "@inlang/sdk2" | ||
import { selectBundleNested, type IdeExtensionConfig } from "@inlang/sdk2" | ||
import { state } from "./state.js" | ||
|
||
export const getExtensionApi = async (): Promise<IdeExtensionConfig | undefined> => | ||
(await state().project.plugins.get()).find((plugin) => plugin?.meta?.["app.inlang.ideExtension"]) | ||
?.meta?.["app.inlang.ideExtension"] as IdeExtensionConfig | undefined | ||
|
||
/** | ||
* Not needed anymore but left in to reduce refactoring https://github.com/opral/monorepo/pull/3137 | ||
*/ | ||
export const getSelectedBundleByBundleIdOrAlias = async (bundleIdOrAlias: string) => { | ||
return await selectBundleNested(state().project.db) | ||
.where(bundleIdOrAliasIs(bundleIdOrAlias)) | ||
.where("bundle.id", "=", bundleIdOrAlias) | ||
.executeTakeFirst() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 0 additions & 100 deletions
100
inlang/source-code/sdk2/src/query-utilities/bundleIdOrAliasIs.test.ts
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
inlang/source-code/sdk2/src/query-utilities/bundleIdOrAliasIs.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.