Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Sep 7, 2024
1 parent bfbd7e2 commit e92dbaf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/jupyter-ai/src/completions/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ export class JaiInlineProvider
): Promise<IInlineCompletionList<IInlineCompletionItem>> {
const allowedTriggerKind = this._settings.triggerKind;
const triggerKind = context.triggerKind;
if (allowedTriggerKind === 'manual' && triggerKind !== InlineCompletionTriggerKind.Invoke) {
if (
allowedTriggerKind === 'manual' &&
triggerKind !== InlineCompletionTriggerKind.Invoke
) {
// Short-circuit if user requested to only invoke inline completions
// on manual trigger for jupyter-ai. Users may still get completions
// from other (e.g. less expensive or faster) providers.
Expand Down Expand Up @@ -293,7 +296,7 @@ export namespace JaiInlineProvider {
}

export interface ISettings {
triggerKind: 'any' | 'manual',
triggerKind: 'any' | 'manual';
maxPrefix: number;
maxSuffix: number;
debouncerDelay: number;
Expand Down

0 comments on commit e92dbaf

Please sign in to comment.