Skip to content

Commit

Permalink
Allow suggest widget when interactive session input is empty (#177921)
Browse files Browse the repository at this point in the history
* Allow suggest widget when interactive session input is empty

* Reduce slash command requests

* format
  • Loading branch information
roblourens authored Mar 22, 2023
1 parent 3d7f6de commit 6742eff
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,12 @@ class SlashCommandCompletions extends Disposable {
return null;
}

const slashCommands = await widget.getSlashCommands();
if (!slashCommands) {
if (model.getValueInRange(new Range(1, 1, 1, 2)) !== '/' && model.getValueLength() > 0) {
return null;
}

if (model.getValueInRange(new Range(1, 1, 1, 2)) !== '/') {
const slashCommands = await widget.getSlashCommands();
if (!slashCommands) {
return null;
}

Expand Down

0 comments on commit 6742eff

Please sign in to comment.