Skip to content

Commit

Permalink
Rebase against the upstream 862fa13
Browse files Browse the repository at this point in the history
vscode-upstream-sha1: 862fa13
  • Loading branch information
Eclipse Che Sync committed Jul 26, 2023
2 parents 2d6674a + 862fa13 commit ca63324
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { IChatService } from 'vs/workbench/contrib/chat/common/chatService';

export interface IChatExecuteActionContext {
widget: IChatWidget;
inputValue?: string;
}

function isExecuteActionContext(thing: unknown): thing is IChatExecuteActionContext {
Expand Down Expand Up @@ -48,7 +49,7 @@ export class SubmitAction extends Action2 {
return;
}

context.widget.acceptInput();
context.widget.acceptInput(context.inputValue);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,12 @@ class SlashCommandCompletions extends Disposable {
const withSlash = `/${c.command}`;
return <CompletionItem>{
label: withSlash,
insertText: `${withSlash} `,
insertText: c.executeImmediately ? '' : `${withSlash} `,
detail: c.detail,
range: new Range(1, 1, 1, 1),
sortText: c.sortText ?? c.command,
kind: CompletionItemKind.Text, // The icons are disabled here anyway,
command: c.executeImmediately ? { id: SubmitAction.ID, title: withSlash, arguments: [{ widget }] } : undefined,
command: c.executeImmediately ? { id: SubmitAction.ID, title: withSlash, arguments: [{ widget, inputValue: withSlash }] } : undefined,
};
})
};
Expand Down

0 comments on commit ca63324

Please sign in to comment.