Merge pull request #15264 from overleaf/mf-xmpdata-enable

Add `*.xmpdata` to editor editable file extension list

GitOrigin-RevId: 8dc0947f494502da4c8f921830c86fa1b345eba2
This commit is contained in:
M Fahru 2023-10-18 09:24:12 -07:00 committed by Copybot
parent 6d86e14b05
commit 11791bc6b7
4 changed files with 4 additions and 0 deletions

View file

@ -86,6 +86,7 @@ const defaultTextExtensions = [
'yaml', 'yaml',
'lhs', 'lhs',
'mk', 'mk',
'xmpdata',
] ]
const parseTextExtensions = function (extensions) { const parseTextExtensions = function (extensions) {

View file

@ -185,6 +185,7 @@ const initialize = () => {
'mf', 'mf',
'lhs', 'lhs',
'mk', 'mk',
'xmpdata',
], ],
editableFilenames: ['latexmkrc', '.latexmkrc', 'makefile', 'gnumakefile'], editableFilenames: ['latexmkrc', '.latexmkrc', 'makefile', 'gnumakefile'],
validRootDocExtensions: ['tex', 'Rtex', 'ltx', 'Rnw'], validRootDocExtensions: ['tex', 'Rtex', 'ltx', 'Rnw'],

View file

@ -63,6 +63,7 @@ window.ExposedSettings = {
'mf', 'mf',
'lhs', 'lhs',
'mk', 'mk',
'xmpdata',
], ],
editableFilenames: ['latexmkrc', '.latexmkrc', 'makefile', 'gnumakefile'], editableFilenames: ['latexmkrc', '.latexmkrc', 'makefile', 'gnumakefile'],
} }

View file

@ -91,6 +91,7 @@ describe('FileTypeManager', function () {
'/something/file.m', '/something/file.m',
'/file.TEX', '/file.TEX',
'/file.lhs', '/file.lhs',
'/file.xmpdata',
'/makefile', '/makefile',
'/Makefile', '/Makefile',
'/GNUMakefile', '/GNUMakefile',