Skip to content

Commit

Permalink
refactor: remove message.declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelstroschein committed Sep 20, 2024
1 parent ca57ecc commit c9ffb63
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions inlang/source-code/ide-extension/src/commands/createMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { state } from "../utilities/state.js"
import { msg } from "../utilities/messages/msg.js"
import { commands, window } from "vscode"
import { telemetry } from "../services/telemetry/index.js"
import { createMessage, humanId } from "@inlang/sdk2"
import { humanId } from "@inlang/sdk2"
import { CONFIGURATION } from "../configuration.js"
import { getSetting } from "../utilities/settings/index.js"

Expand Down Expand Up @@ -39,12 +39,6 @@ export const createMessageCommand = {
return
}

const message = createMessage({
bundleId,
locale: baseLocale,
text: messageValue,
})

try {
await state()
.project.db.transaction()
Expand All @@ -59,11 +53,8 @@ export const createMessageCommand = {
return await trx
.insertInto("message")
.values({
id: message.id,
bundleId: message.bundleId,
locale: message.locale,
declarations: message.declarations,
selectors: message.selectors,
bundleId,
locale: baseLocale,
})
.returningAll()
.execute()
Expand Down

0 comments on commit c9ffb63

Please sign in to comment.