Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create remote-ssh-stable-commands.md #7725

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

eleanorjboyd
Copy link
Member

Closes #7549 We got this request from an extension developer, in addition to just writing this doc we would have to commit to maintaining these functions. I think this is reasonable given how vital they are to the core functionality of the Remote-SSH extension. If this is carried through, comments should be added alongside the functions and the interface to alert future developers.

Closes #7549
We got this request from an extension developer, in addition to just writing this doc we would have to commit to maintaining these functions. I think this is reasonable given how vital they are to the core functionality of the Remote-SSH extension. If this is carried through, comments should be added alongside the functions and the interface to alert future developers.
@eleanorjboyd
Copy link
Member Author

Another note- this could also go in the remote-release wiki. I am not sure which is a better spot for it.

@eleanorjboyd eleanorjboyd dismissed a stale review via 67523e0 February 15, 2023 23:05
@eleanorjboyd eleanorjboyd changed the title Create emote-ssh-stable-commands.md Create remote-ssh-stable-commands.md Feb 16, 2023
emote-ssh-stable-commands.md Outdated Show resolved Hide resolved
emote-ssh-stable-commands.md Outdated Show resolved Hide resolved
emote-ssh-stable-commands.md Outdated Show resolved Hide resolved
emote-ssh-stable-commands.md Outdated Show resolved Hide resolved
emote-ssh-stable-commands.md Outdated Show resolved Hide resolved
`opensshremotes.cleanDevBox` - This command uninstalls the Vs Code server on the remote. This command causes the [`interactivelyPickSshHost`](#Interactively-Pick-Ssh-Host) to engage, see below for details on how this picker works.
- parameters: none
- returns: none
- this command is called with the command palette command "Uninstall VS Code Server from Host..."
Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think I full understand how cleanRemoteServer and cleanDevBox differ. From my understanding, it is just that cleanDevBox logs the output of this action, runs showInformationMessage to pop up info and handles the cleaning in a try-catch block which displays an additional message back to the user based on success / failure. I would want to have a clear distinction between the two in this doc so help clarifying would be great.

Copy link
Member

@roblourens roblourens Feb 17, 2023

Choose a reason for hiding this comment

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

The naming isn't great, but cleanRemoteServer only deletes the server bits that were installed, while cleanDevBox deletes everything including remote extensions and user data

https://github.com/microsoft/vscode-remote-ssh/blob/7d7471b56c345ab22e1bf391126f86722dcacba4/open-ssh-remote/src/clean-remote.ts#L55

I think that nice logging that you noticed should have been added to both

@@ -0,0 +1,45 @@
The Remote-SSH extension is a private repo that other extensions rely on for varying functionality. Below is a list of commands that we will comitt to keeping stable like an API. These commands, now published externally here, will be maintained and changes will not be made without sufficient warning to allow for other dependent extensions to function correctly.
Copy link
Member

Choose a reason for hiding this comment

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

commit

Copy link
Member

Choose a reason for hiding this comment

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

Don't say that we'll make breaking changes but warn extension authors about it. That conflicts with saying that we are committing to keeping it stable. We shouldn't make breaking changes.

Copy link
Member

Choose a reason for hiding this comment

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

There is still a typo for commit

remote-ssh-stable-commands.md Outdated Show resolved Hide resolved
remote-ssh-stable-commands.md Outdated Show resolved Hide resolved
@Nickochoa32 Nickochoa32 linked an issue Feb 27, 2023 that may be closed by this pull request
Closed
@fanch1122

This comment was marked as off-topic.

@eleanorjboyd
Copy link
Member Author

@fanch1122 please create an issue for this bug if you would like assistance

@Nickochoa32 Nickochoa32 linked an issue Mar 9, 2023 that may be closed by this pull request
@wellhungwguy wellhungwguy linked an issue Mar 25, 2023 that may be closed by this pull request
@@ -0,0 +1,27 @@
The Remote-SSH extension is a private repo that other extensions rely on for varying functionality. Below is a list of commands that we will comitt to keeping stable like an API. These commands, now published externally here, will be maintained.
Copy link
Member

Choose a reason for hiding this comment

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

I don't think any of this paragraph of necessary, you can just delete it


## Interface Definitions

##### IOpenWindowsArgs Definition
Copy link
Member

Choose a reason for hiding this comment

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

Why does this go from a level 2 to level 5 markdown header?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wiki Outlining Remote SSH Commands for External removing balances in all my wallets QPZKVCTU 6
4 participants