Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ describe('resolving a runtime for a call, by host kind', () => {
)
mocks.hasWslService = false
await expect(resolveManagedRuntimeEnvironment('/u', 'wsl:ubuntu', noStart)).rejects.toThrow(
'The WSL host Ubuntu isn’t available from your phone right now. Open one of its projects on your computer to connect it.'
'The WSL host Ubuntu isn’t available from your phone right now. On your computer, click Start if it’s stopped; otherwise open one of its projects to connect it.'
)
expect(mocks.ensureForRuntimeCall).not.toHaveBeenCalled()
})
Expand Down
2 changes: 1 addition & 1 deletion src/main/ipc/wsl-host-handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export function registerWslHostHandlers(args: WslHostHandlerArgs): void {
}
wsl.setVisibleWork(visibleWork.report(windowId, ids))
})
// The user switched to a workspace on this host: the focus entry that may boot its distro.
// The user switched to a workspace on this host: connects a running distro, never boots it (E9).
ipcMain.handle('wslHosts:focusHost', (_event, request: { environmentId: string | null }) => {
// null: the user is on a workspace that isn't on a WSL host.
wsl.focusHost(typeof request?.environmentId === 'string' ? request.environmentId : null)
Expand Down
6 changes: 3 additions & 3 deletions src/main/ipc/wsl-move-host-connect.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe('the move driver reaching its WSL host', () => {
recovering: false
})
// A poll finding the distro stopped parks the host.
await expect(service.ensureForRuntimeCall('wsl:ubuntu')).rejects.toThrow('Ubuntu was stopped')
await expect(service.ensureForRuntimeCall('wsl:ubuntu')).rejects.toThrow('Ubuntu is stopped')
connector.connect.mockClear()
return { connector, service }
}
Expand Down Expand Up @@ -77,13 +77,13 @@ describe('the move driver reaching its WSL host', () => {
const { connector, service } = await stoppedAndParkedHost()
await expect(
connectWslMoveHostService(service, userDataPath, 'Ubuntu', 'automatic')
).rejects.toThrow('Ubuntu was stopped')
).rejects.toThrow('Ubuntu is stopped')
// Running again is not enough while parked, even with visible work.
connector.distro.state = 'running'
service.setVisibleWork(['wsl:ubuntu'])
await expect(
connectWslMoveHostService(service, userDataPath, 'Ubuntu', 'automatic')
).rejects.toThrow('Ubuntu was stopped')
).rejects.toThrow('Ubuntu is stopped')
expect(connector.connect).not.toHaveBeenCalled()
})

Expand Down
8 changes: 4 additions & 4 deletions src/main/wsl/wsl-host-add-admission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ export function wslHostAddRefusal(
export const WSL_HOST_REMOVING_MESSAGE = 'This WSL host is being removed.'

export function wslHostNotConnectedMessage(distro: string): string {
return `The WSL host ${distro} isn’t connected. Open one of its projects or connect it in Settings → Remote Orca Servers.`
return `The WSL host ${distro} isn’t connected. If it’s stopped, click Start; otherwise open one of its projects or connect it in Settings → Remote Orca Servers.`
}

export function wslHostStoppedMessage(distro: string): string {
return `${distro} was stopped. Switch to one of its projects, or reconnect it in Settings → Remote Orca Servers, to start it again.`
return `${distro} is stopped. To start it, click Start or open a new terminal in one of its projects.`
}

/** Shown on a paired phone once a stop is confirmed: only the desktop starts a distro. */
export function wslHostStoppedForPhoneMessage(distro: string): string {
return `The WSL host ${distro} isn’t running. Open one of its projects on your computer to start it.`
return `The WSL host ${distro} is stopped. To start it, click Start or open a new terminal in one of its projects on your computer.`
Comment on lines 38 to +39

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Minor · Functional Correctness · Quick win

Supported by static analysis

Script executed:

set -eu
printf '%s\n' '--- changed files and focused diff ---'
git diff --no-ext-diff --unified=25 0d9e02754e65b3e3e46276c707d46e3d5ee2247c 97e59c152bfec9e7728809c1fd34e8988b181ec4 -- \
  src/main/wsl/wsl-host-add-admission.ts \
  tests/e2e/wsl-host-paired-phone.spec.ts

printf '%s\n' '--- message definition and all usages ---'
rg -n -F --glob '*.ts' -e 'wslHostStoppedForPhoneMessage' -e 'wslHostStoppedMessage' src tests || test "$?" -eq 1

printf '%s\n' '--- focused e2e refusal context ---'
file=tests/e2e/wsl-host-paired-phone.spec.ts
hits=$(rg -n -F -e "isn’t running" -e "isn't running" -e "stopped" -e "refus" "$file" || true)
printf '%s\n' "$hits"
while IFS=: read -r line rest; do
  case "$line" in
    ''|*[!0-9]*) continue ;;
  esac
  start=$((line-18)); [ "$start" -lt 1 ] && start=1
  end=$((line+24))
  sed -n "${start},${end}p" "$file"
  printf '%s\n' '---'
done <<EOF
$hits
EOF

printf '%s\n' '--- production admission implementation ---'
sed -n '1,220p' src/main/wsl/wsl-host-add-admission.ts

printf '%s\n' '--- direct callers around phone reach/refusal ---'
rg -n -F --glob '*.ts' -e 'wslHostAddAdmission' -e 'addAdmission' -e 'phone' src/main src/renderer tests/e2e | head -n 200

Repository: stablyai/orca

Length of output: 41542


Script executed:

set -eu
printf '%s\n' '--- phone reach implementation ---'
nl -ba src/main/wsl/wsl-host-phone-reach.ts

printf '%s\n' '--- direct phone refusal callers ---'
rg -n -F --glob '*.ts' -e 'wslHostPhoneRefusal' -e 'WslHostPhoneReach' -e 'phoneReach' src/main tests/e2e || test "$?" -eq 1

printf '%s\n' '--- managed tunnel phone refusal path ---'
nl -ba src/main/ipc/runtime-environments/runtime-environment-managed-tunnel.ts | sed -n '1,180p'
nl -ba src/main/ipc/runtime-environments/runtime-environment-mobile-relay-hosts.ts | sed -n '1,150p'

printf '%s\n' '--- focused tests for phone refusal messages ---'
for file in \
  src/main/ipc/runtime-environments/runtime-environment-managed-tunnel.test.ts \
  src/main/ipc/runtime-environments/runtime-environment-mobile-relay-hosts.test.ts; do
  printf '%s\n' "--- $file"
  rg -n -F -e 'isn’t running' -e 'is stopped' -e 'isn’t available' -e 'wslHostPhoneRefusal' -e 'stopped' "$file" || true
done

Repository: stablyai/orca

Length of output: 25163


Script executed:

set -eu
printf '%s\n' '--- focus reachability contract ---'
nl -ba src/main/wsl/wsl-host-focus-reachability.ts

printf '%s\n' '--- e2e setup and fake WSL status path ---'
file=tests/e2e/wsl-host-paired-phone.spec.ts
nl -ba "$file" | sed -n '1,125p'
nl -ba "$file" | sed -n '180,245p'

printf '%s\n' '--- fake WSL helper bindings ---'
rg -n -F --glob '*.ts' -e 'launchDesktopWithFakeWslPairing' -e 'readFakeWslHostsConfig' -e 'stoppedOnDesktop' -e 'distro-stopped' tests/e2e/helpers src/main/wsl src/main/ipc/runtime-environments || test "$?" -eq 1

Repository: stablyai/orca

Length of output: 15921


Script executed:

set -eu
nl -ba src/main/wsl/wsl-host-e2e-fake-connector.ts | sed -n '1,155p'

Repository: stablyai/orca

Length of output: 7717


Update the stopped-phone refusal assertions.

The stopped-distro scenario reaches the stopped phone refusal branch. The returned message now contains is stopped, so both unchanged isn’t running assertions fail.

Suggested fix
-      expect(JSON.stringify(refused.error)).toContain('isn’t running')
+      expect(JSON.stringify(refused.error)).toContain('is stopped')
...
-      expect(JSON.stringify(refusedAgain.error)).toContain('isn’t running')
+      expect(JSON.stringify(refusedAgain.error)).toContain('is stopped')

}

/** Shown on a paired phone while WSL hosts are switched off, or this one is being removed. */
Expand All @@ -46,7 +46,7 @@ export function wslHostHiddenFromPhoneMessage(distro: string): string {

/** Shown on a paired phone while the desktop can't confirm the host runs (starting, reconnecting). */
export function wslHostUnavailableForPhoneMessage(distro: string): string {
return `The WSL host ${distro} isn’t available from your phone right now. Open one of its projects on your computer to connect it.`
return `The WSL host ${distro} isn’t available from your phone right now. On your computer, click Start if it’s stopped; otherwise open one of its projects to connect it.`
}

export function wslHostRemovalPendingMessage(distro: string): string {
Expand Down
4 changes: 2 additions & 2 deletions src/main/wsl/wsl-host-phone-reach.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { WslHostPhoneGate } from './wsl-host-phone-reach'
import type { WslOrcadConnection } from './wsl-orcad-connection-types'

const STOPPED =
'The WSL host Ubuntu isn’t running. Open one of its projects on your computer to start it.'
'The WSL host Ubuntu is stopped. To start it, click Start or open a new terminal in one of its projects on your computer.'
const NEUTRAL =
'The WSL host Ubuntu isn’t available from your phone right now. Open one of its projects on your computer to connect it.'
'The WSL host Ubuntu isn’t available from your phone right now. On your computer, click Start if it’s stopped; otherwise open one of its projects to connect it.'

const BRIDGE: WslOrcadConnection = {
distro: 'Ubuntu',
Expand Down
12 changes: 6 additions & 6 deletions src/main/wsl/wsl-host-service-runtime-call-stop.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,18 @@ describe('a runtime call that finds the WSL host stopped', () => {

it('says the host stopped, so its panes offer Start instead of a dead prompt', async () => {
const { service } = await stoppedUnderVisibleWork()
await expect(service.ensureForRuntimeCall('wsl:ubuntu')).rejects.toThrow('Ubuntu was stopped')
await expect(service.ensureForRuntimeCall('wsl:ubuntu')).rejects.toThrow('Ubuntu is stopped')
expect(published).toEqual([
expect.objectContaining({ environmentId: 'wsl:ubuntu', state: 'distro-stopped' })
])
// Said once, however many calls meet the stop.
await expect(service.ensureForRuntimeCall('wsl:ubuntu')).rejects.toThrow('Ubuntu was stopped')
await expect(service.ensureForRuntimeCall('wsl:ubuntu')).rejects.toThrow('Ubuntu is stopped')
expect(published).toHaveLength(1)
})

it('reconnects its open work once the distro runs again, without booting it', async () => {
const { connector, service } = await stoppedUnderVisibleWork()
await expect(service.ensureForRuntimeCall('wsl:ubuntu')).rejects.toThrow('Ubuntu was stopped')
await expect(service.ensureForRuntimeCall('wsl:ubuntu')).rejects.toThrow('Ubuntu is stopped')
expect(connector.connect).not.toHaveBeenCalled()

// Started some other way; the gate runs this only on a confirmed running list.
Expand All @@ -78,7 +78,7 @@ describe('a runtime call that finds the WSL host stopped', () => {

it('stays down while nothing shows the host, until it is opened', async () => {
const { connector, service } = await stoppedUnderVisibleWork()
await expect(service.ensureForRuntimeCall('wsl:ubuntu')).rejects.toThrow('Ubuntu was stopped')
await expect(service.ensureForRuntimeCall('wsl:ubuntu')).rejects.toThrow('Ubuntu is stopped')
service.setVisibleWork([])
connector.distro.state = 'running'
deferred.get('Ubuntu:wsl-host-parked:wsl:ubuntu')?.()
Expand All @@ -89,7 +89,7 @@ describe('a runtime call that finds the WSL host stopped', () => {
// e9-reviewer: the stop can land after liveness already reconnected and said ready.
it('says ready again when the host was already back by the time the distro ran', async () => {
const { connector, service } = await stoppedUnderVisibleWork()
await expect(service.ensureForRuntimeCall('wsl:ubuntu')).rejects.toThrow('Ubuntu was stopped')
await expect(service.ensureForRuntimeCall('wsl:ubuntu')).rejects.toThrow('Ubuntu is stopped')
connector.distro.state = 'running'
// Liveness reconnected on its own.
await connector.connect('Ubuntu')
Expand All @@ -109,7 +109,7 @@ describe('a runtime call that finds the WSL host stopped', () => {
expect(refusal).not.toBeInstanceOf(RemoteRuntimeClientError)
expect(refusal).toMatchObject({
message:
'Ubuntu was stopped. Switch to one of its projects, or reconnect it in Settings → Remote Orca Servers, to start it again.'
'Ubuntu is stopped. To start it, click Start or open a new terminal in one of its projects.'
})
})
})
10 changes: 5 additions & 5 deletions src/main/wsl/wsl-host-service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ describe('WslHostService', () => {
connector.connect.mockClear()

// The focused host's polls get a refusal, not a boot, however often they come.
await expect(service.ensureForRuntimeCall('wsl:ubuntu')).rejects.toThrow('Ubuntu was stopped')
await expect(service.ensureForRuntimeCall('wsl:ubuntu')).rejects.toThrow('Ubuntu is stopped')
expect(connector.connect).not.toHaveBeenCalled()

// Switching back to one of its workspaces is navigation: it re-checks, never starts it.
Expand Down Expand Up @@ -480,7 +480,7 @@ describe('WslHostService', () => {
.ensureForRuntimeCall('wsl:ubuntu')
.catch((error: unknown) => error)
expect(refusal).not.toBeInstanceOf(RemoteRuntimeClientError)
expect(String(refusal)).toContain('Ubuntu was stopped')
expect(String(refusal)).toContain('Ubuntu is stopped')
expect(isRecoverableRemoteRuntimeConnectionError({ message: String(refusal) })).toBe(false)
})

Expand All @@ -492,10 +492,10 @@ describe('WslHostService', () => {
await connector.disconnect('Ubuntu')
connector.distro.state = 'stopped'
connector.connect.mockClear()
await expect(service.ensureForRuntimeCall('wsl:ubuntu')).rejects.toThrow('Ubuntu was stopped')
await expect(service.ensureForRuntimeCall('wsl:ubuntu')).rejects.toThrow('Ubuntu is stopped')
// Running again (started some other way) is not enough while parked: still no boot from a poll.
connector.distro.state = 'running'
await expect(service.ensureForRuntimeCall('wsl:ubuntu')).rejects.toThrow('Ubuntu was stopped')
await expect(service.ensureForRuntimeCall('wsl:ubuntu')).rejects.toThrow('Ubuntu is stopped')
expect(connector.connect).not.toHaveBeenCalled()
})

Expand All @@ -522,7 +522,7 @@ describe('WslHostService', () => {
recovering: false
})
connector.isSettling.mockReturnValue(false)
await expect(service.ensureForRuntimeCall('wsl:ubuntu')).rejects.toThrow('Ubuntu was stopped')
await expect(service.ensureForRuntimeCall('wsl:ubuntu')).rejects.toThrow('Ubuntu is stopped')
expect(connector.connect).not.toHaveBeenCalled()
})

Expand Down
2 changes: 1 addition & 1 deletion src/main/wsl/wsl-host-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export class WslHostService {
return
}
if (enabled) {
// Nothing boots here: the window re-reports its focused host, the only one that may (E9).
// Nothing boots here: the window re-reports its focused host, which connects only if running (E9).
return
}
this.disableGeneration += 1
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/settings/WslHostsSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export function WslHostsSection({
? getWslHostsPausedLabel()
: translate(
'auto.components.settings.wslHosts.description',
'Orca runs a server inside each distro. A stopped distro starts only when you open one of its projects or connect it here.'
'Orca runs a server inside each distro. Opening a project never starts a stopped distro: click Start, open a new terminal, or connect it here.'
))}
</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/src/hooks/ipc-events/wsl-host-ipc-bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { selectFolderWorkspaces } from '@/store/workspace-record-selectors'

/**
* The WSL hosts with visible work: the active workspace's, and those of workspaces focused earlier
* in this window that still have tabs (their panes stay mounted). Saved tabs alone never count, so
* a launch boots only the focused host (E9).
* in this window that still have tabs (their panes stay mounted). Saved tabs alone never count, and
* a launch boots none: the focused host connects only if its distro already runs (E9).
*/
export function selectWslHostsWithVisibleWork(
state: AppState,
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/i18n/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -12753,7 +12753,7 @@
"wslHosts": {
"title": "WSL-Hosts",
"experimental": "Experimentell",
"description": "Orca führt in jeder Distribution einen Server aus. Eine gestoppte Distribution startet erst, wenn eines ihrer Projekte geöffnet oder hier eine Verbindung zu ihr hergestellt wird.",
"description": "Orca führt in jeder Distribution einen Server aus. Das Öffnen eines Projekts startet eine gestoppte Distribution nie: Klicke auf „Starten“, öffne ein neues Terminal oder verbinde sie hier.",
"add": "WSL-Distribution hinzufügen",
"connect": "Verbinden",
"forceUpdate": "Update erzwingen",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -12833,7 +12833,7 @@
"wslHosts": {
"title": "WSL hosts",
"experimental": "Experimental",
"description": "Orca runs a server inside each distro. A stopped distro starts only when you open one of its projects or connect it here.",
"description": "Orca runs a server inside each distro. Opening a project never starts a stopped distro: click Start, open a new terminal, or connect it here.",
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
"add": "Add WSL distro",
"connect": "Connect",
"forceUpdate": "Force update",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -12465,7 +12465,7 @@
"wslHosts": {
"title": "Hosts WSL",
"experimental": "Experimental",
"description": "Orca ejecuta un servidor dentro de cada distro. Una distro detenida solo se inicia cuando abres uno de sus proyectos o la conectas aquí.",
"description": "Orca ejecuta un servidor dentro de cada distro. Abrir un proyecto nunca inicia una distro detenida: haz clic en Iniciar, abre una terminal nueva o conéctala aquí.",
"add": "Agregar distro WSL",
"connect": "Conectar",
"turnOn": "Activar en Experimental",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/i18n/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -12689,7 +12689,7 @@
"wslHosts": {
"title": "Hôtes WSL",
"experimental": "Expérimental",
"description": "Orca exécute un serveur dans chaque distro. Une distro arrêtée ne démarre que lorsque vous ouvrez l'un de ses projets ou la connectez ici.",
"description": "Orca exécute un serveur dans chaque distro. Ouvrir un projet ne démarre jamais une distro arrêtée : cliquez sur Démarrer, ouvrez un nouveau terminal ou connectez-la ici.",
"add": "Ajouter une distro WSL",
"connect": "Connecter",
"turnOn": "Activer dans Expérimental",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/i18n/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -12177,7 +12177,7 @@
"wslHosts": {
"title": "WSL ホスト",
"experimental": "実験的機能",
"description": "Orca は各ディストリビューション内でサーバーを実行します。停止中のディストリビューションは、そのプロジェクトを開くか、ここで接続したときにのみ起動します。",
"description": "Orca は各ディストリビューション内でサーバーを実行します。プロジェクトを開いても、停止中のディストリビューションは起動しません。[起動] をクリックするか、新しいターミナルを開くか、ここで接続してください。",
"add": "WSL ディストリビューションを追加",
"connect": "接続",
"turnOn": "実験的機能でオンにする",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/i18n/locales/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -12177,7 +12177,7 @@
"wslHosts": {
"title": "WSL 호스트",
"experimental": "실험적",
"description": "Orca는 각 배포판 안에서 서버를 실행합니다. 중지된 배포판은 해당 배포판의 프로젝트를 열거나 여기에서 연결할 때만 시작됩니다.",
"description": "Orca는 각 배포판 안에서 서버를 실행합니다. 프로젝트를 열어도 중지된 배포판은 시작되지 않습니다. [시작]을 클릭하거나, 새 터미널을 열거나, 여기에서 연결하세요.",
"add": "WSL 배포판 추가",
"connect": "연결",
"turnOn": "실험적에서 켜기",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/i18n/locales/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -9008,7 +9008,7 @@
"wslHosts": {
"title": "Hosts WSL",
"experimental": "Experimental",
"description": "O Orca executa um servidor dentro de cada distribuição. Uma distribuição parada só é iniciada quando você abre um dos projetos dela ou a conecta aqui.",
"description": "O Orca executa um servidor dentro de cada distribuição. Abrir um projeto nunca inicia uma distribuição parada: clique em Iniciar, abra um novo terminal ou conecte-a aqui.",
"add": "Adicionar distribuição WSL",
"connect": "Conectar",
"forceUpdate": "Forçar atualização",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/i18n/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -13119,7 +13119,7 @@
"wslHosts": {
"title": "Серверы WSL",
"experimental": "Экспериментальные",
"description": "Orca запускает сервер внутри каждого дистрибутива. Остановленный дистрибутив запускается только при открытии его проекта или подключении здесь.",
"description": "Orca запускает сервер внутри каждого дистрибутива. Открытие проекта никогда не запускает остановленный дистрибутив: нажмите «Запустить», откройте новый терминал или подключите его здесь.",
"add": "Добавить дистрибутив WSL",
"connect": "Подключиться",
"forceUpdate": "Принудительно обновить",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/i18n/locales/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -12739,7 +12739,7 @@
"wslHosts": {
"title": "WSL ana makineleri",
"experimental": "Deneysel",
"description": "Orca her dağıtımın içinde bir sunucu çalıştırır. Durdurulmuş bir dağıtım yalnızca projelerinden birini açtığınızda veya buradan bağlandığınızda başlar.",
"description": "Orca her dağıtımın içinde bir sunucu çalıştırır. Bir proje açmak durdurulmuş bir dağıtımı asla başlatmaz: Başlat’a tıklayın, yeni bir terminal açın veya buradan bağlanın.",
"add": "WSL dağıtımı ekle",
"connect": "Bağlan",
"forceUpdate": "Güncellemeyi zorla",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/i18n/locales/zh-Hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -12576,7 +12576,7 @@
"wslHosts": {
"title": "WSL 主機",
"experimental": "實驗性",
"description": "Orca 在每個發行版內執行一個伺服器。已停止的發行版只有在您開啟其某個專案或在此連線它時才會啟動。",
"description": "Orca 在每個發行版內執行一個伺服器。開啟專案不會啟動已停止的發行版:請按一下「啟動」、開啟新終端機,或在此連線它。",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Minor · Functional Correctness · Quick win

Use an idiomatic connection phrase.

“在此連線它” can be read as connecting the distribution to something. Use “在此連線至該發行版” so the instruction clearly means to connect to the distribution.

"add": "新增 WSL 發行版",
"connect": "連線",
"forceUpdate": "強制更新",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/i18n/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -12177,7 +12177,7 @@
"wslHosts": {
"title": "WSL 主机",
"experimental": "实验性",
"description": "Orca 在每个发行版内运行一个服务器。已停止的发行版只有在您打开其某个项目或在此连接它时才会启动。",
"description": "Orca 在每个发行版内运行一个服务器。打开项目不会启动已停止的发行版:请点击“启动”、打开新终端,或在此连接它。",
"add": "添加 WSL 发行版",
"connect": "连接",
"turnOn": "在实验性中开启",
Expand Down
Loading
Loading