mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -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',
|
'lhs',
|
||||||
'mk',
|
'mk',
|
||||||
'xmpdata',
|
'xmpdata',
|
||||||
|
'cfg',
|
||||||
|
'rnw',
|
||||||
|
'ltx',
|
||||||
|
'inc',
|
||||||
]
|
]
|
||||||
|
|
||||||
const parseTextExtensions = function (extensions) {
|
const parseTextExtensions = function (extensions) {
|
||||||
|
|
|
@ -186,6 +186,10 @@ const initialize = () => {
|
||||||
'lhs',
|
'lhs',
|
||||||
'mk',
|
'mk',
|
||||||
'xmpdata',
|
'xmpdata',
|
||||||
|
'cfg',
|
||||||
|
'rnw',
|
||||||
|
'ltx',
|
||||||
|
'inc',
|
||||||
],
|
],
|
||||||
editableFilenames: ['latexmkrc', '.latexmkrc', 'makefile', 'gnumakefile'],
|
editableFilenames: ['latexmkrc', '.latexmkrc', 'makefile', 'gnumakefile'],
|
||||||
validRootDocExtensions: ['tex', 'Rtex', 'ltx', 'Rnw'],
|
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',
|
'lhs',
|
||||||
'mk',
|
'mk',
|
||||||
'xmpdata',
|
'xmpdata',
|
||||||
|
'cfg',
|
||||||
|
'rnw',
|
||||||
|
'ltx',
|
||||||
|
'inc',
|
||||||
],
|
],
|
||||||
editableFilenames: ['latexmkrc', '.latexmkrc', 'makefile', 'gnumakefile'],
|
editableFilenames: ['latexmkrc', '.latexmkrc', 'makefile', 'gnumakefile'],
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,6 +92,10 @@ describe('FileTypeManager', function () {
|
||||||
'/file.TEX',
|
'/file.TEX',
|
||||||
'/file.lhs',
|
'/file.lhs',
|
||||||
'/file.xmpdata',
|
'/file.xmpdata',
|
||||||
|
'/file.cfg',
|
||||||
|
'/file.rnw',
|
||||||
|
'/file.ltx',
|
||||||
|
'/file.inc',
|
||||||
'/makefile',
|
'/makefile',
|
||||||
'/Makefile',
|
'/Makefile',
|
||||||
'/GNUMakefile',
|
'/GNUMakefile',
|
||||||
|
|
Loading…
Reference in a new issue