mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
fix typos in diverse files (#3284)
Co-authored-by: Scott Densmore <scottdensmore@mac.com>
This commit is contained in:
@@ -122,7 +122,7 @@ export const InputPrompt: React.FC<InputPromptProps> = ({
|
||||
const base = query.substring(0, slashIndex + 1);
|
||||
|
||||
const command = slashCommands.find((cmd) => cmd.name === commandName);
|
||||
// Make sure completion isn't the original command when command.completigion hasn't happened yet.
|
||||
// Make sure completion isn't the original command when command.completion hasn't happened yet.
|
||||
if (command && command.completion && suggestion !== commandName) {
|
||||
const newValue = `${base}${commandName} ${suggestion}`;
|
||||
if (newValue === query) {
|
||||
|
||||
@@ -15,7 +15,7 @@ export interface CompressionDisplayProps {
|
||||
}
|
||||
|
||||
/*
|
||||
* Compression messages appear when the /compress command is ran, and show a loading spinner
|
||||
* Compression messages appear when the /compress command is run, and show a loading spinner
|
||||
* while compression is in progress, followed up by some compression stats.
|
||||
*/
|
||||
export const CompressionMessage: React.FC<CompressionDisplayProps> = ({
|
||||
|
||||
@@ -118,7 +118,7 @@ describe('<ToolMessage />', () => {
|
||||
expect(lastFrame()).toContain('x');
|
||||
});
|
||||
|
||||
it('shows paused spiner for Executing status when streamingState is Idle', () => {
|
||||
it('shows paused spinner for Executing status when streamingState is Idle', () => {
|
||||
const { lastFrame } = renderWithContext(
|
||||
<ToolMessage {...baseProps} status={ToolCallStatus.Executing} />,
|
||||
StreamingState.Idle,
|
||||
@@ -128,7 +128,7 @@ describe('<ToolMessage />', () => {
|
||||
expect(lastFrame()).not.toContain('✔');
|
||||
});
|
||||
|
||||
it('shows paused spiner for Executing status when streamingState is WaitingForConfirmation', () => {
|
||||
it('shows paused spinner for Executing status when streamingState is WaitingForConfirmation', () => {
|
||||
const { lastFrame } = renderWithContext(
|
||||
<ToolMessage {...baseProps} status={ToolCallStatus.Executing} />,
|
||||
StreamingState.WaitingForConfirmation,
|
||||
|
||||
@@ -13,7 +13,7 @@ import { describe, it, expect } from 'vitest';
|
||||
describe('<MaxSizedBox />', () => {
|
||||
// Make sure MaxSizedBox logs errors on invalid configurations.
|
||||
// This is useful for debugging issues with the component.
|
||||
// It should be set to false in production for perfornance and to avoid
|
||||
// It should be set to false in production for performance and to avoid
|
||||
// cluttering the console if there are ignorable issues.
|
||||
setMaxSizedBoxDebugging(true);
|
||||
|
||||
|
||||
@@ -328,7 +328,7 @@ function visitBoxRow(element: React.ReactNode): Row {
|
||||
if (!hasSeenWrapped) {
|
||||
row.noWrapSegments.push(segment);
|
||||
} else {
|
||||
// put in in the wrapped segment as the row is already stuck in wrapped mode.
|
||||
// put in the wrapped segment as the row is already stuck in wrapped mode.
|
||||
row.segments.push(segment);
|
||||
debugReportError(
|
||||
'Text elements without wrapping cannot appear after elements with wrapping in the same row.',
|
||||
|
||||
Reference in New Issue
Block a user