We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b43623d commit e0512f5Copy full SHA for e0512f5
src/store/modules/misc.js
@@ -44,8 +44,14 @@ const actions = {
44
});
45
},
46
generateCodeInfo: ({ state, rootState, commit }, fileIndex) => {
47
- let codeInfo = { language: rootState.options.language }; // copy without reference
48
- delete codeInfo.files;
+ // copy without reference and files
+ let codeInfo = { language: {} };
49
+ Object.keys(rootState.options.language)
50
+ .filter((key) => key !== 'files')
51
+ .forEach((key) => {
52
+ codeInfo.language[key] = rootState.options.language[key];
53
+ });
54
+
55
56
if (fileIndex === -1) {
57
codeInfo.tabSize = state.customCode.tabSize;
0 commit comments