Skip to content

Commit 88ea3e1

Browse files
authored
fix bad command completions (microsoft#208399)
1 parent 93e2528 commit 88ea3e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vs/workbench/contrib/inlineChat/browser/inlineChatController.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,9 @@ export class InlineChatController implements IEditorContribution {
442442
_debugDisplayName: 'inline chat commands',
443443
triggerCharacters: ['/'],
444444
provideCompletionItems: (model, position, context, token) => {
445-
445+
if (position.lineNumber !== 1) {
446+
return undefined;
447+
}
446448
if (!this._session || !this._session.session.slashCommands) {
447449
return undefined;
448450
}

0 commit comments

Comments
 (0)