mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
fix bad command completions (#208399)
This commit is contained in:
parent
93e2528628
commit
88ea3e1662
|
@ -442,7 +442,9 @@ export class InlineChatController implements IEditorContribution {
|
|||
_debugDisplayName: 'inline chat commands',
|
||||
triggerCharacters: ['/'],
|
||||
provideCompletionItems: (model, position, context, token) => {
|
||||
|
||||
if (position.lineNumber !== 1) {
|
||||
return undefined;
|
||||
}
|
||||
if (!this._session || !this._session.session.slashCommands) {
|
||||
return undefined;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue