Skip to content

Commit

Permalink
feat(@bridge/project): "openFile" method
Browse files Browse the repository at this point in the history
  • Loading branch information
Joelant05 committed Jul 2, 2022
1 parent 215d17f commit 5f6300a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/Extensions/Scripts/Modules/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import {
} from '/@/components/Projects/Export/Extensions/Exporter'
import { TPackTypeId } from '/@/components/Data/PackType'
import { Project } from '/@/components/Projects/Project/Project'
import { AnyFileHandle } from '/@/components/FileSystem/Types'
import { IOpenTabOptions } from '/@/components/TabSystem/TabSystem'

export const ProjectModule = async ({
disposables,
Expand Down Expand Up @@ -60,5 +62,9 @@ export const ProjectModule = async ({

return disposable
},

async openFile(fileHandle: AnyFileHandle, opts: IOpenTabOptions) {
await app.project.openFile(fileHandle, opts)
},
}
}

0 comments on commit 5f6300a

Please sign in to comment.