|
|
|
@ -12,6 +12,10 @@ export class RemixInLineCompletionProvider implements monacoTypes.languages.Inli |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
async provideInlineCompletions(model: monacoTypes.editor.ITextModel, position: monacoTypes.Position, context: monacoTypes.languages.InlineCompletionContext, token: monacoTypes.CancellationToken): Promise<monacoTypes.languages.InlineCompletions<monacoTypes.languages.InlineCompletion>> { |
|
|
|
|
if (context.selectedSuggestionInfo) { |
|
|
|
|
console.log('return empty from provideInlineCompletions') |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
// get text before the position of the completion
|
|
|
|
|
const word = model.getValueInRange({ |
|
|
|
|
startLineNumber: 1, |
|
|
|
@ -44,7 +48,8 @@ export class RemixInLineCompletionProvider implements monacoTypes.languages.Inli |
|
|
|
|
return { items: [] }; |
|
|
|
|
} |
|
|
|
|
return { |
|
|
|
|
items: [item] |
|
|
|
|
items: [item], |
|
|
|
|
enableForwardStability: true |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|