mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
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:
parent
e1c58c2aaf
commit
8971357dce
4 changed files with 16 additions and 0 deletions
|
@ -91,6 +91,10 @@ const defaultTextExtensions = [
|
|||
'lhs',
|
||||
'mk',
|
||||
'xmpdata',
|
||||
'cfg',
|
||||
'rnw',
|
||||
'ltx',
|
||||
'inc',
|
||||
]
|
||||
|
||||
const parseTextExtensions = function (extensions) {
|
||||
|
|
|
@ -186,6 +186,10 @@ const initialize = () => {
|
|||
'lhs',
|
||||
'mk',
|
||||
'xmpdata',
|
||||
'cfg',
|
||||
'rnw',
|
||||
'ltx',
|
||||
'inc',
|
||||
],
|
||||
editableFilenames: ['latexmkrc', '.latexmkrc', 'makefile', 'gnumakefile'],
|
||||
validRootDocExtensions: ['tex', 'Rtex', 'ltx', 'Rnw'],
|
||||
|
|
4
services/web/test/frontend/bootstrap.js
vendored
4
services/web/test/frontend/bootstrap.js
vendored
|
@ -64,6 +64,10 @@ window.ExposedSettings = {
|
|||
'lhs',
|
||||
'mk',
|
||||
'xmpdata',
|
||||
'cfg',
|
||||
'rnw',
|
||||
'ltx',
|
||||
'inc',
|
||||
],
|
||||
editableFilenames: ['latexmkrc', '.latexmkrc', 'makefile', 'gnumakefile'],
|
||||
}
|
||||
|
|
|
@ -92,6 +92,10 @@ describe('FileTypeManager', function () {
|
|||
'/file.TEX',
|
||||
'/file.lhs',
|
||||
'/file.xmpdata',
|
||||
'/file.cfg',
|
||||
'/file.rnw',
|
||||
'/file.ltx',
|
||||
'/file.inc',
|
||||
'/makefile',
|
||||
'/Makefile',
|
||||
'/GNUMakefile',
|
||||
|
|
Loading…
Reference in a new issue