From 11791bc6b741043bcb739ced5eff0fc7eca6171c Mon Sep 17 00:00:00 2001 From: M Fahru Date: Wed, 18 Oct 2023 09:24:12 -0700 Subject: [PATCH] Merge pull request #15264 from overleaf/mf-xmpdata-enable Add `*.xmpdata` to editor editable file extension list GitOrigin-RevId: 8dc0947f494502da4c8f921830c86fa1b345eba2 --- services/web/config/settings.defaults.js | 1 + services/web/frontend/stories/decorators/scope.tsx | 1 + services/web/test/frontend/bootstrap.js | 1 + services/web/test/unit/src/Uploads/FileTypeManagerTests.js | 1 + 4 files changed, 4 insertions(+) diff --git a/services/web/config/settings.defaults.js b/services/web/config/settings.defaults.js index 7e6d3d935a..8bd88e8e79 100644 --- a/services/web/config/settings.defaults.js +++ b/services/web/config/settings.defaults.js @@ -86,6 +86,7 @@ const defaultTextExtensions = [ 'yaml', 'lhs', 'mk', + 'xmpdata', ] const parseTextExtensions = function (extensions) { diff --git a/services/web/frontend/stories/decorators/scope.tsx b/services/web/frontend/stories/decorators/scope.tsx index 17afd1d0a7..cd31b821a0 100644 --- a/services/web/frontend/stories/decorators/scope.tsx +++ b/services/web/frontend/stories/decorators/scope.tsx @@ -185,6 +185,7 @@ const initialize = () => { 'mf', 'lhs', 'mk', + 'xmpdata', ], editableFilenames: ['latexmkrc', '.latexmkrc', 'makefile', 'gnumakefile'], validRootDocExtensions: ['tex', 'Rtex', 'ltx', 'Rnw'], diff --git a/services/web/test/frontend/bootstrap.js b/services/web/test/frontend/bootstrap.js index 1451f8e074..b871ce86a2 100644 --- a/services/web/test/frontend/bootstrap.js +++ b/services/web/test/frontend/bootstrap.js @@ -63,6 +63,7 @@ window.ExposedSettings = { 'mf', 'lhs', 'mk', + 'xmpdata', ], editableFilenames: ['latexmkrc', '.latexmkrc', 'makefile', 'gnumakefile'], } diff --git a/services/web/test/unit/src/Uploads/FileTypeManagerTests.js b/services/web/test/unit/src/Uploads/FileTypeManagerTests.js index e9b3330965..fa8a087da1 100644 --- a/services/web/test/unit/src/Uploads/FileTypeManagerTests.js +++ b/services/web/test/unit/src/Uploads/FileTypeManagerTests.js @@ -91,6 +91,7 @@ describe('FileTypeManager', function () { '/something/file.m', '/file.TEX', '/file.lhs', + '/file.xmpdata', '/makefile', '/Makefile', '/GNUMakefile',