Skip to content

Commit ade2758

Browse files
committed
Don't show "ask a question" while chat provider is activating
Fix microsoft/vscode-copilot#2506
1 parent a2b7853 commit ade2758

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class InputEditorDecorations extends Disposable {
127127

128128
private async updateInputEditorDecorations() {
129129
const inputValue = this.widget.inputEditor.getValue();
130-
const slashCommands = await this.widget.getSlashCommands(); // TODO this async call can lead to a flicker of the placeholder text when switching editor tabs
130+
await this.widget.getSlashCommands(); // Leaving for candidate fix- waits for model initialization
131131

132132
const viewModel = this.widget.viewModel;
133133
if (!viewModel) {
@@ -136,10 +136,7 @@ class InputEditorDecorations extends Disposable {
136136

137137
if (!inputValue) {
138138
const viewModelPlaceholder = this.widget.viewModel?.inputPlaceholder;
139-
const defaultPlaceholder = slashCommands?.length ?
140-
localize('interactive.input.placeholderWithCommands', "Ask a question or type '@' or '/'") :
141-
localize('interactive.input.placeholderNoCommands', "Ask a question");
142-
const placeholder = viewModelPlaceholder ?? defaultPlaceholder;
139+
const placeholder = viewModelPlaceholder ?? '';
143140
const decoration: IDecorationOptions[] = [
144141
{
145142
range: {

0 commit comments

Comments
 (0)