mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-14 06:24:36 +00:00
Merge pull request #16523 from overleaf/dp-editable-file-extensions-2
Make cfg, ltx, Rnw and inc files editable in the editor GitOrigin-RevId: 1999c29ea451aa3f362ffa09f6f4d5889beaf404
This commit is contained in:
parent
be402d238a
commit
29bfdae57d
5 changed files with 18 additions and 0 deletions
|
@ -91,6 +91,10 @@ const defaultTextExtensions = [
|
|||
'lhs',
|
||||
'mk',
|
||||
'xmpdata',
|
||||
'cfg',
|
||||
'rnw',
|
||||
'ltx',
|
||||
'inc',
|
||||
]
|
||||
|
||||
const parseTextExtensions = function (extensions) {
|
||||
|
|
|
@ -27,6 +27,7 @@ export const languages = [
|
|||
'ldf',
|
||||
'xmpdata',
|
||||
'Rnw',
|
||||
'rnw',
|
||||
'lyx',
|
||||
'inc',
|
||||
'dtx',
|
||||
|
@ -44,6 +45,7 @@ export const languages = [
|
|||
'pygstyle',
|
||||
'pygtex',
|
||||
'ps_tex',
|
||||
'ltx',
|
||||
],
|
||||
load: () => {
|
||||
return import('./latex').then(m => m.latex())
|
||||
|
|
|
@ -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…
Add table
Reference in a new issue