Merge branch 'main' into welcome

This commit is contained in:
Mikayla 2023-11-27 18:51:19 -08:00
commit 8faa1f6e58
No known key found for this signature in database
188 changed files with 6979 additions and 6715 deletions

View file

@ -59,7 +59,6 @@ if ! git show-ref --quiet refs/heads/${prev_minor_branch_name}; then
echo "previous branch ${minor_branch_name} doesn't exist"
exit 1
fi
# TODO kb anything else for RELEASE_CHANNEL == nightly needs to be done below?
if [[ $(git show ${prev_minor_branch_name}:crates/zed/RELEASE_CHANNEL) != preview ]]; then
echo "release channel on branch ${prev_minor_branch_name} should be preview"
exit 1

View file

@ -123,7 +123,6 @@ CARGO_TARGET_DIR="$TARGET_DIR" cargo doc --workspace --no-deps --open \
--exclude snippet \
--exclude sqlez \
--exclude sqlez_macros \
--exclude storybook3 \
--exclude sum_tree \
--exclude terminal \
--exclude terminal_view \

View file

@ -4,6 +4,7 @@ const {spawn, execFileSync} = require('child_process')
const RESOLUTION_REGEX = /(\d+) x (\d+)/
const DIGIT_FLAG_REGEX = /^--?(\d+)$/
const ZED_2_MODE = "--zed2"
const args = process.argv.slice(2)
@ -14,6 +15,7 @@ if (digitMatch) {
instanceCount = parseInt(digitMatch[1])
args.shift()
}
const isZed2 = args.some(arg => arg === ZED_2_MODE);
if (instanceCount > 4) {
throw new Error('Cannot spawn more than 4 instances')
}
@ -70,11 +72,12 @@ const positions = [
`${instanceWidth},${instanceHeight}`
]
execFileSync('cargo', ['build'], {stdio: 'inherit'})
const buildArgs = isZed2 ? ["build", "-p", "zed2"] : ["build"]
const zedBinary = isZed2 ? "target/debug/Zed2" : "target/debug/Zed"
execFileSync('cargo', buildArgs, { stdio: 'inherit' })
setTimeout(() => {
for (let i = 0; i < instanceCount; i++) {
spawn('target/debug/Zed', i == 0 ? args : [], {
spawn(zedBinary, i == 0 ? args : [], {
stdio: 'inherit',
env: {
ZED_IMPERSONATE: users[i],