improved completion after }

inlinecompletion_update
Stéphane Tetsing 9 months ago
parent 6c946e8152
commit e7e8bd1a2c
  1. 2
      libs/remix-ui/editor/src/lib/providers/inlineCompletionProvider.ts

@ -28,7 +28,7 @@ export class RemixInLineCompletionProvider implements monacoTypes.languages.Inli
endColumn: position.column,
});
if (!word.endsWith(' ') && !word.endsWith('\n') && !word.endsWith(';') && !word.endsWith('.') && !word.endsWith('(') && word.split('\n').at(-1).trimStart().startsWith('//')) {
if (!word.endsWith(' ') && !word.endsWith('\n') && !word.endsWith(';') && !word.endsWith('.') && !word.endsWith('(') && word.endsWith('}') && word.split('\n').at(-1).trimStart().startsWith('//')) {
return;
}

Loading…
Cancel
Save