Skip to content

Commit

Permalink
nls: localize debug session status (eclipse-theia#12569)
Browse files Browse the repository at this point in the history
The commit adds missing localizations for the debug session status.
  • Loading branch information
Zebsterpasha authored May 30, 2023
1 parent 9d65ca2 commit 3cffe80
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/debug/src/browser/debug-session.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import { DebugContribution } from './debug-contribution';
import { Deferred, waitForEvent } from '@theia/core/lib/common/promise-util';
import { WorkspaceService } from '@theia/workspace/lib/browser';
import { DebugInstructionBreakpoint } from './model/debug-instruction-breakpoint';
import { nls } from '@theia/core';

export enum DebugState {
Inactive,
Expand Down Expand Up @@ -860,14 +861,15 @@ export class DebugSession implements CompositeTreeElement {

render(): React.ReactNode {
let label = '';
const state = this.state === DebugState.Stopped ? nls.localizeByDefault('Paused') : nls.localizeByDefault('Running');
const child = this.getSingleChildSession();
if (child && child.configuration.compact) {
// Inlines the name of the child debug session
label = `: ${child.label}`;
}
return <div className='theia-debug-session' title='Session'>
<span className='label'>{this.label + label}</span>
<span className='status'>{this.state === DebugState.Stopped ? 'Paused' : 'Running'}</span>
<span className='status'>{state}</span>
</div>;
}

Expand Down

0 comments on commit 3cffe80

Please sign in to comment.