Skip to content

Commit

Permalink
Revert changes to ui_comm.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wesm committed Apr 1, 2024
1 parent 4a6c952 commit f81aadd
Showing 1 changed file with 0 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,6 @@ class UiFrontendEvent(str, enum.Enum):
# Execute a Positron command
ExecuteCommand = "execute_command"

# Open a workspace
OpenWorkspace = "open_workspace"

# Show a URL in Positron's Viewer pane
ShowUrl = "show_url"


class BusyParams(BaseModel):
"""
Expand Down Expand Up @@ -262,20 +256,6 @@ class ShowQuestionParams(BaseModel):
)


class ShowDialogParams(BaseModel):
"""
Show a dialog
"""

title: str = Field(
description="The title of the dialog",
)

message: str = Field(
description="The message to display in the dialog",
)


class PromptStateParams(BaseModel):
"""
New state of the primary and secondary prompts
Expand Down Expand Up @@ -320,30 +300,6 @@ class ExecuteCommandParams(BaseModel):
)


class OpenWorkspaceParams(BaseModel):
"""
Open a workspace
"""

path: str = Field(
description="The path for the workspace to be opened",
)

new_window: bool = Field(
description="Should the workspace be opened in a new window?",
)


class ShowUrlParams(BaseModel):
"""
Show a URL in Positron's Viewer pane
"""

url: str = Field(
description="The URL to display",
)


EditorContext.update_forward_refs()

TextDocument.update_forward_refs()
Expand All @@ -364,16 +320,10 @@ class ShowUrlParams(BaseModel):

ShowQuestionParams.update_forward_refs()

ShowDialogParams.update_forward_refs()

PromptStateParams.update_forward_refs()

WorkingDirectoryParams.update_forward_refs()

DebugSleepParams.update_forward_refs()

ExecuteCommandParams.update_forward_refs()

OpenWorkspaceParams.update_forward_refs()

ShowUrlParams.update_forward_refs()

0 comments on commit f81aadd

Please sign in to comment.