Merge pull request #16495 from overleaf/dp-editable-file-extensions

Mark cfg, rnw, ltx and inc files as text so that they are editable

GitOrigin-RevId: 486365486f46beebbb13cad3e0cc45711e1809e4
This commit is contained in:
David 2024-01-15 14:25:01 +00:00 committed by Copybot
parent e1c58c2aaf
commit 8971357dce
4 changed files with 16 additions and 0 deletions

View file

@ -91,6 +91,10 @@ const defaultTextExtensions = [
'lhs',
'mk',
'xmpdata',
'cfg',
'rnw',
'ltx',
'inc',
]
const parseTextExtensions = function (extensions) {

View file

@ -186,6 +186,10 @@ const initialize = () => {
'lhs',
'mk',
'xmpdata',
'cfg',
'rnw',
'ltx',
'inc',
],
editableFilenames: ['latexmkrc', '.latexmkrc', 'makefile', 'gnumakefile'],
validRootDocExtensions: ['tex', 'Rtex', 'ltx', 'Rnw'],

View file

@ -64,6 +64,10 @@ window.ExposedSettings = {
'lhs',
'mk',
'xmpdata',
'cfg',
'rnw',
'ltx',
'inc',
],
editableFilenames: ['latexmkrc', '.latexmkrc', 'makefile', 'gnumakefile'],
}

View file

@ -92,6 +92,10 @@ describe('FileTypeManager', function () {
'/file.TEX',
'/file.lhs',
'/file.xmpdata',
'/file.cfg',
'/file.rnw',
'/file.ltx',
'/file.inc',
'/makefile',
'/Makefile',
'/GNUMakefile',