improved completion after }

pull/5370/head
Stéphane Tetsing 10 months ago
parent 3abee566ff
commit 64c2d3567d
  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, 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; return;
} }

Loading…
Cancel
Save