mirror of
https://github.com/coder/coder.git
synced 2026-10-24 01:26:25 +08:00
feat: add OpenIn option to coder_app (#15743)
This PR is the coder/coder part of [the open_in parameter issue](https://github.com/coder/terraform-provider-coder/issues/297) aiming to add a new optional parameter to choose how to open modules. This PR is heavily linked [to this PR](https://github.com/coder/terraform-provider-coder/pull/321). ℹ️ For now, some integrations tests can not be pushed as it requires a release on the terraform-provider repo.
This commit is contained in:
Generated
+6
@@ -2553,6 +2553,7 @@ export interface WorkspaceApp {
|
||||
readonly healthcheck: Healthcheck;
|
||||
readonly health: WorkspaceAppHealth;
|
||||
readonly hidden: boolean;
|
||||
readonly open_in: string;
|
||||
}
|
||||
|
||||
// From codersdk/workspaceapps.go
|
||||
@@ -2560,6 +2561,11 @@ export type WorkspaceAppHealth = "disabled" | "healthy" | "initializing" | "unhe
|
||||
|
||||
export const WorkspaceAppHealths: WorkspaceAppHealth[] = ["disabled", "healthy", "initializing", "unhealthy"];
|
||||
|
||||
// From codersdk/workspaceapps.go
|
||||
export type WorkspaceAppOpenIn = "slim-window" | "tab" | "window";
|
||||
|
||||
export const WorkspaceAppOpenIns: WorkspaceAppOpenIn[] = ["slim-window", "tab", "window"];
|
||||
|
||||
// From codersdk/workspaceapps.go
|
||||
export type WorkspaceAppSharingLevel = "authenticated" | "owner" | "public";
|
||||
|
||||
|
||||
@@ -869,6 +869,7 @@ export const MockWorkspaceApp: TypesGen.WorkspaceApp = {
|
||||
threshold: 0,
|
||||
},
|
||||
hidden: false,
|
||||
open_in: "slim-window",
|
||||
};
|
||||
|
||||
export const MockWorkspaceAgentLogSource: TypesGen.WorkspaceAgentLogSource = {
|
||||
|
||||
Reference in New Issue
Block a user