Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

positron-pull-vscode-server

БесплатноЗапускает вложенные скриптыНе проверен

Use when pulling changes from rstudio/vscode-server into Positron — fetching upstream, triaging commits, and applying diffs

posit-devот posit-dev★ 4 361 звезда на GitHub

Об этом скилле

Pull Upstream vscode-server Changes

Ports changes from rstudio/vscode-server into Positron as a single "upstream merge from vscode-server" commit. A full git merge is not possible — the two repos are parallel VSCode forks with no shared git ancestry — so changes are applied manually and bundled into one commit.

When to Use This Skill

Use this skill when:

  • Pulling new bug fixes or features from rstudio/vscode-server into Positron
  • Deciding which upstream commits are relevant to port

Prerequisites

The upstream remote must be configured. If git remote -v doesn't show it, set it up:

git remote add upstream [email protected]:rstudio/vscode-server.git
git remote set-url --push upstream DISABLE
gh repo set-default posit-dev/positron   # gh otherwise treats the "upstream" remote as the base repo

Without the gh repo set-default, gh pr create targets rstudio/vscode-server and fails with "No commits between main and ...".

Workflow

Step 1: Fetch and enumerate

Use the helper script to fetch upstream and list candidates in one shot:

.claude/skills/positron-pull-vscode-server/scripts/enumerate-upstream.sh <baseline-sha>

Find <baseline-sha> — it's the upstream/main HEAD recorded after the previous run. After each run, note it for next time:

git rev-parse upstream/main

If starting fresh with no recorded SHA, look at the Brings in: lines of the last upstream merge commit, find the earliest of those commits on upstream/main, and use its parent SHA as the baseline.

This skill ports across a shared Microsoft VSCode baseline. Two independent signals indicate the baseline relationship:

  • Version/distro parity (the reliable signal): compare version and distro in package.json on main vs upstream/main. If both match, the repos share a baseline — proceed. A Merge 1.NNN.0 / Merge rel-* commit in the range is then a reconciliation merge that brought vscode-server up to the baseline Positron already has; skip the merge itself but still port the feature/bugfix PRs interleaved around it. If version or distro differ, the repos have diverged — stop and sync the Microsoft baseline before porting anything.
  • Microsoft-author commits (coarse backstop): the enumerate script also errors out if Microsoft-authored commits appear in the range. This catches obvious divergence but is not authoritative — a baseline can differ without a Microsoft-authored commit landing in the exact range, which is why the version/distro check above is the one to trust.

The script outputs all new commits on upstream/main since the baseline, with file stats per candidate.

Step 1b: Check the backlog when the user names a single PR/issue

If the user asks to pull one specific PR or issue (rather than "pull everything new"), run the backlog check before porting it. The single requested PR is rarely the only thing waiting upstream, and silently porting just that one leaves the rest of the backlog undiscovered.

.claude/skills/positron-pull-vscode-server/scripts/check-backlog.sh

The script auto-derives the baseline from the most recent "upstream merge from vscode-server" commit (searching all refs, since that merge often lives on a dedicated pull-vscode-server branch, not main). Pass an explicit <baseline-sha> to override.

The script already filters two classes of merge so they are never candidates:

  • Microsoft baseline merges (Merge 1.NNN.0 from upstream, Merge rel-*, merge/1.NNN.0 branches). These are reconciliation merges that bring vscode-server up to a Microsoft VSCode baseline Positron tracks independently. They are not portable PRs, are never considered, and must not appear in the PR body's "Considered but not included" list.
  • update-extension-* (rstudio.rstudio-workbench) bumps when Positron is not behind. The script compares the rstudio.rstudio-workbench version in product.json on main vs upstream/main. If Positron's version is equal or newer, the bump is already covered and is dropped. Only when Positron is behind does the script keep update-extension-* as a candidate worth considering.

It also lists open Positron PRs that are already porting a candidate (another person's vscode-server port, or the bot's update-extension-* bump PR) under "Already being ported by an open Positron PR" and drops them from the candidates. Leave those out of your PR, even when they'd otherwise be portable: they'll land on their own and duplicating them causes conflicts and a noisy diff. If the script couldn't reach gh, run gh pr list --repo posit-dev/positron --state open --search "vscode-server" and look for open update-extension-* PRs by hand.

It then lists the remaining candidate merges and prints triage guidance. For those:

  1. Confirm the baseline is shared using the version/distro parity check from Step 1. A mismatch means stop and sync the baseline first (the script's baseline-merge filter assu
Полный SKILL.md на GitHub

Установить positron-pull-vscode-server в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

scripts/check-backlog.shscripts/enumerate-upstream.sh

FAQ

Что делает скилл positron-pull-vscode-server?

Use when pulling changes from rstudio/vscode-server into Positron — fetching upstream, triaging commits, and applying diffs

Как установить скилл positron-pull-vscode-server?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл positron-pull-vscode-server запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить positron-pull-vscode-server с