Merge pull request #12027 from overleaf/mj-autocomplete-brace

[cm6] Add brace after inserting autocompletion

GitOrigin-RevId: c6d590e7ef89ea22ba227f7e771942b444da2dc7
This commit is contained in:
Tim Down 2023-03-01 09:36:07 +00:00 committed by Copybot
parent 8616c53839
commit 2c9ae7cc81

View file

@ -36,8 +36,11 @@ const initialize = () => {
{
_id: 'root-folder-id',
name: 'rootFolder',
docs: [],
fileRefs: [],
docs: [
{ _id: 'test-file-id', name: 'testfile.tex' },
{ _id: 'test-bib-file-id', name: 'testsources.bib' },
],
fileRefs: [{ _id: 'test-image-id', name: 'frog.jpg' }],
folders: [],
},
],
@ -63,7 +66,7 @@ const initialize = () => {
$broadcast: () => {},
$root: {
_references: {
keys: [],
keys: ['bibkeyExample'],
},
},
ui: {
@ -115,7 +118,9 @@ const initialize = () => {
metadataManager: {
metadata: {
state: {
documents: {},
documents: {
'test-file-id': { labels: ['sec:section-label'], packages: [] },
},
},
},
},