Skip to content

Commit

Permalink
Modify function docstring descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni-SM committed Aug 16, 2022
1 parent be59326 commit 3f9c9f8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions exts/semu.misc.vscode/semu/misc/vscode/scripts/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _show_notification(self, *args, **kwargs) -> None:
notification = "Unable to start the socket server at {}:{}".format(self._socket_ip, self._socket_port)
status=omni.kit.notification_manager.NotificationStatus.WARNING
else:
notification = "Socket server running at {}:{}".format(self._socket_ip, self._socket_port)
notification = "Embedded VS Code socket server is running at {}:{}".format(self._socket_ip, self._socket_port)
status=omni.kit.notification_manager.NotificationStatus.INFO

ok_button = omni.kit.notification_manager.NotificationButtonInfo("OK", on_complete=None)
Expand All @@ -123,7 +123,7 @@ def _show_notification(self, *args, **kwargs) -> None:
# internal socket methods

def _create_socket(self) -> None:
"""Create a socket server to listen for incoming connections from the IPython kernel
"""Create a socket server to listen for incoming connections from the client
"""
class ServerProtocol(asyncio.Protocol):
def __init__(self, parent) -> None:
Expand All @@ -150,14 +150,14 @@ async def server_task():
task = _get_event_loop().create_task(server_task())

async def _exec_code_async(self, statement: str, transport: asyncio.Transport) -> None:
"""Execute the statement in the Omniverse scope and send the result to the IPython kernel
"""Execute the statement in the Omniverse scope and send the result to the client
:param statement: statement to execute
:type statement: str
:param transport: transport to send the result to the IPython kernel
:param transport: transport to send the result to the client
:type transport: asyncio.Transport
:return: reply dictionary as ipython notebook expects it
:return: reply dictionary as expected by the client
:rtype: dict
"""
_stdout = StringIO()
Expand Down Expand Up @@ -197,7 +197,7 @@ async def _exec_code_async(self, statement: str, transport: asyncio.Transport) -
# add output to reply dictionary for printing
reply["output"] = _stdout.getvalue()

# send the reply to the IPython kernel
# send the reply to the client
reply = json.dumps(reply)
transport.write(reply.encode())

Expand Down

0 comments on commit 3f9c9f8

Please sign in to comment.