Skip to content

Commit

Permalink
Merge pull request #536 from CodinGame/issue-535
Browse files Browse the repository at this point in the history
feat: export interfaces returned by registerExtension
  • Loading branch information
CGNonofr authored Nov 18, 2024
2 parents 911247d + 10d8c5d commit 584777e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,31 +45,31 @@ export function registerLocalApiFactory(_apiFactory: ApiFactory): void {
apiFactory = _apiFactory
}

interface RegisterExtensionParams {
export interface RegisterExtensionParams {
path?: string
system?: boolean
readmePath?: string
changelogPath?: string
}

interface RegisterRemoteExtensionParams extends RegisterExtensionParams {
export interface RegisterRemoteExtensionParams extends RegisterExtensionParams {
path: string
}

interface RegisterExtensionResult {
export interface RegisterExtensionResult {
id: string
dispose(): Promise<void>
whenReady(): Promise<void>
isEnabled(): Promise<boolean>
}

interface RegisterRemoteExtensionResult extends RegisterExtensionResult {}
export interface RegisterRemoteExtensionResult extends RegisterExtensionResult {}

interface RegisterLocalExtensionResult extends RegisterExtensionResult {
export interface RegisterLocalExtensionResult extends RegisterExtensionResult {
registerFileUrl: (path: string, url: string) => IDisposable
}

interface RegisterLocalProcessExtensionResult extends RegisterLocalExtensionResult {
export interface RegisterLocalProcessExtensionResult extends RegisterLocalExtensionResult {
getApi(): Promise<typeof vscode>
setAsDefaultApi(): Promise<void>
}
Expand Down

1 comment on commit 584777e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.