Skip to content

Commit 141b0e6

Browse files
committed
🤖 refactor: update VS Code extension branding from 'cmux' to 'mux'
- Update extension name, display name, and description in package.json - Update command IDs from cmux.* to mux.* - Update all user-facing strings in error messages and UI - Fix domain reference to use correct live domain (cmux.io) - Update GitHub workflows to use mux-*.vsix artifact naming - Add VS Code marketplace publishing to release workflow The extension now correctly uses 'mux' as the product name while pointing to the correct documentation domain. Generated with `mux`
1 parent 7f65d77 commit 141b0e6

File tree

9 files changed

+39
-31
lines changed

9 files changed

+39
-31
lines changed

.github/actions/build-vscode-extension/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: "Build VS Code Extension"
2-
description: "Build the cmux VS Code extension"
2+
description: "Build the mux VS Code extension"
33

44
runs:
55
using: "composite"

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,6 @@ jobs:
107107
uses: actions/upload-artifact@v4
108108
with:
109109
name: vscode-extension
110-
path: vscode/cmux-*.vsix
110+
path: vscode/mux-*.vsix
111111
retention-days: 30
112112
if-no-files-found: error

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,17 @@ jobs:
7777
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7878
run: |
7979
gh release upload ${{ github.event.release.tag_name }} \
80-
vscode/cmux-*.vsix \
80+
vscode/mux-*.vsix \
8181
--clobber
8282
83+
- name: Publish to VS Code Marketplace
84+
if: secrets.VSCE_PAT != ''
85+
working-directory: vscode
86+
env:
87+
VSCE_PAT: ${{ secrets.VSCE_PAT }}
88+
run: |
89+
bunx vsce publish -p $VSCE_PAT
90+
8391
build-windows:
8492
name: Build and Release Windows
8593
runs-on: windows-latest

vscode/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Change Log
22

3-
All notable changes to the "cmux" extension will be documented in this file.
3+
All notable changes to the "mux" extension will be documented in this file.
44

55
## [0.1.0] - 2024-11-11
66

77
### Added
88
- Initial release
9-
- Command to open cmux workspaces from VS Code and Cursor
9+
- Command to open mux workspaces from VS Code and Cursor
1010
- Support for local workspaces
1111
- Support for SSH workspaces via Remote-SSH extension
1212
- Automatically detects VS Code Remote-SSH (`ms-vscode-remote.remote-ssh`)

vscode/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# cmux VS Code Extension
1+
# mux VS Code Extension
22

3-
Open [cmux](https://cmux.io) workspaces from VS Code or Cursor.
3+
Open [mux](https://cmux.io) workspaces from VS Code or Cursor.
44

55
## Installation
66

7-
Download the latest `.vsix` from [cmux releases](https://github.com/coder/cmux/releases) and install:
7+
Download the latest `.vsix` from [mux releases](https://github.com/coder/mux/releases) and install:
88

99
```bash
10-
code --install-extension cmux-0.1.0.vsix
10+
code --install-extension mux-0.1.0.vsix
1111
```
1212

1313
## Usage
1414

15-
`Cmd+Shift+P` → "cmux: Open Workspace" → Select workspace
15+
`Cmd+Shift+P` → "mux: Open Workspace" → Select workspace
1616

1717
## Requirements
1818

vscode/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "cmux",
3-
"displayName": "cmux",
4-
"description": "Open cmux workspaces directly from VS Code",
2+
"name": "mux",
3+
"displayName": "mux",
4+
"description": "Open mux workspaces directly from VS Code",
55
"version": "0.1.0",
66
"publisher": "coder",
77
"icon": "icon.png",
@@ -15,21 +15,21 @@
1515
"Other"
1616
],
1717
"keywords": [
18-
"cmux",
18+
"mux",
1919
"workspace",
2020
"remote",
2121
"ssh",
2222
"development"
2323
],
2424
"activationEvents": [
25-
"onCommand:cmux.openWorkspace"
25+
"onCommand:mux.openWorkspace"
2626
],
2727
"main": "./out/extension.js",
2828
"contributes": {
2929
"commands": [
3030
{
31-
"command": "cmux.openWorkspace",
32-
"title": "cmux: Open Workspace"
31+
"command": "mux.openWorkspace",
32+
"title": "mux: Open Workspace"
3333
}
3434
]
3535
},
@@ -48,7 +48,7 @@
4848
},
4949
"repository": {
5050
"type": "git",
51-
"url": "https://github.com/coder/cmux.git",
51+
"url": "https://github.com/coder/mux.git",
5252
"directory": "vscode"
5353
},
5454
"license": "AGPL-3.0-only",

vscode/src/cmuxConfig.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ export async function getAllWorkspaces(): Promise<WorkspaceWithContext[]> {
2525
const workspaces = await config.getAllWorkspaceMetadata();
2626
const extensionMeta = readExtensionMetadata();
2727

28-
console.log(`[cmux] Read ${extensionMeta.size} entries from extension metadata`);
28+
console.log(`[mux] Read ${extensionMeta.size} entries from extension metadata`);
2929

3030
// Enrich with extension metadata
3131
const enriched: WorkspaceWithContext[] = workspaces.map((ws) => {
3232
const meta = extensionMeta.get(ws.id);
3333
if (meta) {
34-
console.log(`[cmux] ${ws.id}: recency=${meta.recency}, streaming=${meta.streaming}`);
34+
console.log(`[mux] ${ws.id}: recency=${meta.recency}, streaming=${meta.streaming}`);
3535
}
3636
return {
3737
...ws,

vscode/src/extension.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,22 @@ function createWorkspaceQuickPickItem(
4747
}
4848

4949
/**
50-
* Command: Open a cmux workspace
50+
* Command: Open a mux workspace
5151
*/
5252
async function openWorkspaceCommand() {
5353
// Get all workspaces, this is intentionally not cached.
5454
const workspaces = await getAllWorkspaces();
5555

5656
if (workspaces.length === 0) {
5757
const selection = await vscode.window.showInformationMessage(
58-
"No cmux workspaces found. Create a workspace in cmux first.",
59-
"Open cmux"
58+
"No mux workspaces found. Create a workspace in mux first.",
59+
"Open mux"
6060
);
6161

62-
// User can't easily open cmux from VS Code, so just inform them
63-
if (selection === "Open cmux") {
62+
// User can't easily open mux from VS Code, so just inform them
63+
if (selection === "Open mux") {
6464
vscode.window.showInformationMessage(
65-
"Please open the cmux application to create workspaces."
65+
"Please open the mux application to create workspaces."
6666
);
6767
}
6868
return;
@@ -75,7 +75,7 @@ async function openWorkspaceCommand() {
7575
const quickPick = vscode.window.createQuickPick<
7676
vscode.QuickPickItem & { workspace: WorkspaceWithContext }
7777
>();
78-
quickPick.placeholder = "Select a cmux workspace to open";
78+
quickPick.placeholder = "Select a mux workspace to open";
7979
quickPick.matchOnDescription = true;
8080
quickPick.matchOnDetail = false;
8181
quickPick.items = allItems;
@@ -126,7 +126,7 @@ async function openWorkspaceCommand() {
126126
*/
127127
export function activate(context: vscode.ExtensionContext) {
128128
// Register the openWorkspace command
129-
const disposable = vscode.commands.registerCommand("cmux.openWorkspace", openWorkspaceCommand);
129+
const disposable = vscode.commands.registerCommand("mux.openWorkspace", openWorkspaceCommand);
130130

131131
context.subscriptions.push(disposable);
132132
}

vscode/src/workspaceOpener.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export async function openWorkspace(workspace: WorkspaceWithContext) {
2929
// Check if Remote-SSH is installed
3030
if (!isRemoteSshInstalled()) {
3131
const selection = await vscode.window.showErrorMessage(
32-
'cmux: The "Remote - SSH" extension is required to open SSH workspaces. ' +
32+
'mux: The "Remote - SSH" extension is required to open SSH workspaces. ' +
3333
"Please install it from the Extensions marketplace.",
3434
"Open Extensions"
3535
);
@@ -45,7 +45,7 @@ export async function openWorkspace(workspace: WorkspaceWithContext) {
4545
}
4646

4747
if (workspace.runtimeConfig.type !== "ssh") {
48-
vscode.window.showErrorMessage("cmux: Workspace is not configured for SSH.");
48+
vscode.window.showErrorMessage("mux: Workspace is not configured for SSH.");
4949
return;
5050
}
5151

@@ -63,7 +63,7 @@ export async function openWorkspace(workspace: WorkspaceWithContext) {
6363
});
6464
} catch (error) {
6565
const selection = await vscode.window.showErrorMessage(
66-
`cmux: Failed to open SSH workspace on host "${host}". ` +
66+
`mux: Failed to open SSH workspace on host "${host}". ` +
6767
`Make sure the host is configured in your ~/.ssh/config or in the Remote-SSH extension. ` +
6868
`Error: ${error instanceof Error ? error.message : String(error)}`,
6969
"Open SSH Config"

0 commit comments

Comments
 (0)