Slack Opener
Clicks on slack:// inside the editor do nothing — VS Code will not own
that scheme. This extension opens Slack.app via vscode.env.openExternal,
same as open 'slack://…' on macOS.

What it does
| Surface |
Behavior |
| Command Palette → Slack: Open Slack URL |
Prompt; prefills selection or clipboard if it looks like Slack |
slack://… or https://….slack.com/archives/… in a file |
Clickable; runs the command (does not use slack: as a document URI) |
| Same links in the terminal |
Click → Slack.app |
vscode://codenoevil.slack-opener/open?u=… |
UriHandler for anything that can emit a vscode:// link |
It does not intercept markdown preview or chat-webview clicks on raw
slack://. Use an https archive permalink and run Slack: Open Slack URL
(clipboard), or put the link in a file/terminal.
Converted URL
https://acme.slack.com/archives/C01234567/p1234567890123456
→ slack://channel?team=T01234567&id=C01234567&message=1234567890.123456
Set slackOpener.teamId (T…) when an archive permalink has no team.
Set slackOpener.channelId (C…) when a link has a team but no
channel, or to prefill the command with a workspace home. Archive
permalinks already carry their channel; the setting does not override
it.
Install
Repo: CodeNoEvil/vscode-slack-opener
Either download the latest slack-opener-*.vsix from Actions → package
→ artifacts on main, or build it:
Node 20+.
Clone and build the VSIX:
git clone git@github.com:CodeNoEvil/vscode-slack-opener.git ~/src/vscode-slack-opener
cd ~/src/vscode-slack-opener
npm install
npm test
npm run package
Install it:
code --install-extension slack-opener-0.1.2.vsix
Or Extensions → … → Install from VSIX…. Then Developer: Reload Window.
If you previously installed via symlink
(~/.vscode/extensions/davidbitton.slack-opener-0.1.0), remove that
first so VS Code does not keep the old publisher id.
Settings (Slack Opener):
| Setting |
Default |
Meaning |
slackOpener.teamId |
(empty) |
Workspace team ID (T…) when a Slack URL has no team. |
slackOpener.channelId |
(empty) |
Channel ID (C…) when a Slack URL has no channel, or to prefill the command. |
Use
- Command Palette: Slack: Open Slack URL
- Click a Slack permalink or
slack:// link in a file or the terminal
- From anything that can emit a URI:
vscode://codenoevil.slack-opener/open?u=https%3A%2f%2facme.slack.com%2farchives%2f…
F5 from this folder still works (Extension Development Host).