Skip to content

Commit 0b7a8df

Browse files
committed
feat: added type imports from roo code
1 parent 931bbfc commit 0b7a8df

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/activate/registerPearListener.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as vscode from "vscode"
22
import { ClineProvider } from "../core/webview/ClineProvider"
33
import { assert } from "../utils/util"
44
import { PEARAI_CREATOR_MODE_WEBAPP_MANAGER_SLUG } from "../shared/modes"
5+
import { PearAIExtensionExports } from "@pearai/core"
56

67
export const getPearaiExtension = async () => {
78
const pearAiExtension = vscode.extensions.getExtension("pearai.pearai")
@@ -16,7 +17,7 @@ export const getPearaiExtension = async () => {
1617
}
1718

1819
// TODO: TYPES
19-
export const getpearAIExports = async () => {
20+
export const getpearAIExports = async (): Promise<PearAIExtensionExports> => {
2021
const pearAiExtension = await getPearaiExtension()
2122

2223
assert(!!pearAiExtension.exports, "⚠️⚠️ Error, no PearAI Exports could be found :( ⚠️⚠️");
@@ -30,8 +31,7 @@ type CreatorModeState = "OVERLAY_CLOSED" | "OVERLAY_OPEN" | "OVERLAY_CLOSED_CREA
3031
export const registerPearListener = async (provider: ClineProvider) => {
3132
// Getting the pear ai extension instance
3233
const exports = await getpearAIExports()
33-
34-
exports.pearAPI.creatorMode.onDidRequestExecutePlan(async (msg: any) => {
34+
exports.pearAPI.creatorMode.onDidRequestExecutePlan(async (msg) => {
3535
console.dir(`onDidRequestNewTask triggered with: ${JSON.stringify(msg)}`)
3636

3737
let canContinue = false;

0 commit comments

Comments
 (0)