feat(core): mix模式下使用diff去修改代码防止触发整个文件代码高亮的重新构建
This commit is contained in:
124
common/templates/json/tree-sitter/themes/dark-cpp.json
Normal file
124
common/templates/json/tree-sitter/themes/dark-cpp.json
Normal file
@@ -0,0 +1,124 @@
|
||||
{
|
||||
"monacoTreeSitter": {
|
||||
"type": "#4EC9B0",
|
||||
"scope": "#D4D4D4",
|
||||
"function": "#E5C07B",
|
||||
"variable": "#9CDCFE",
|
||||
"number": "#B5CEA8",
|
||||
"string": "#D19A66",
|
||||
"comment": "#5C6370",
|
||||
"constant": "#56B6C2",
|
||||
"directive": "#C586C0",
|
||||
"control": "#569CD6",
|
||||
"operator": "#D4D4D4",
|
||||
"modifier": "#569CD6",
|
||||
"punctuation": "#D4D4D4"
|
||||
},
|
||||
"base": {
|
||||
"base": "vs-dark",
|
||||
"inherit": true,
|
||||
"rules": [
|
||||
{
|
||||
"token": "comment",
|
||||
"foreground": "5C6370",
|
||||
"fontStyle": "italic"
|
||||
},
|
||||
{
|
||||
"token": "keyword",
|
||||
"foreground": "569CD6",
|
||||
"fontStyle": "bold"
|
||||
},
|
||||
{
|
||||
"token": "keyword.control",
|
||||
"foreground": "569CD6",
|
||||
"fontStyle": "bold"
|
||||
},
|
||||
{
|
||||
"token": "storage",
|
||||
"foreground": "569CD6",
|
||||
"fontStyle": "bold"
|
||||
},
|
||||
{
|
||||
"token": "storage.type",
|
||||
"foreground": "569CD6",
|
||||
"fontStyle": "bold"
|
||||
},
|
||||
{
|
||||
"token": "entity.name.type",
|
||||
"foreground": "4EC9B0"
|
||||
},
|
||||
{
|
||||
"token": "support.type",
|
||||
"foreground": "4EC9B0"
|
||||
},
|
||||
{
|
||||
"token": "entity.name.function",
|
||||
"foreground": "E5C07B",
|
||||
"fontStyle": "bold"
|
||||
},
|
||||
{
|
||||
"token": "support.function",
|
||||
"foreground": "E5C07B",
|
||||
"fontStyle": "bold"
|
||||
},
|
||||
{
|
||||
"token": "meta.function-call",
|
||||
"foreground": "E5C07B",
|
||||
"fontStyle": "bold"
|
||||
},
|
||||
{
|
||||
"token": "variable",
|
||||
"foreground": "9CDCFE"
|
||||
},
|
||||
{
|
||||
"token": "variable.parameter",
|
||||
"foreground": "9CDCFE"
|
||||
},
|
||||
{
|
||||
"token": "constant.numeric",
|
||||
"foreground": "B5CEA8"
|
||||
},
|
||||
{
|
||||
"token": "constant.language",
|
||||
"foreground": "56B6C2",
|
||||
"fontStyle": "bold"
|
||||
},
|
||||
{
|
||||
"token": "support.constant",
|
||||
"foreground": "56B6C2",
|
||||
"fontStyle": "bold"
|
||||
},
|
||||
{
|
||||
"token": "string",
|
||||
"foreground": "D19A66"
|
||||
},
|
||||
{
|
||||
"token": "meta.preprocessor",
|
||||
"foreground": "C586C0",
|
||||
"fontStyle": "bold"
|
||||
},
|
||||
{
|
||||
"token": "keyword.control.directive",
|
||||
"foreground": "C586C0",
|
||||
"fontStyle": "bold"
|
||||
},
|
||||
{
|
||||
"token": "operator",
|
||||
"foreground": "D4D4D4"
|
||||
},
|
||||
{
|
||||
"token": "invalid",
|
||||
"foreground": "FFFFFF",
|
||||
"background": "F44747"
|
||||
}
|
||||
],
|
||||
"colors": {
|
||||
"editor.foreground": "#D4D4D4",
|
||||
"editor.background": "#1E1E1E",
|
||||
"editor.selectionBackground": "#2C313A",
|
||||
"editor.lineHighlightBackground": "#2A2D2E",
|
||||
"editorCursor.foreground": "#AEAFAD",
|
||||
"editorWhitespace.foreground": "#404040"
|
||||
}
|
||||
}
|
||||
}
|
||||
116
common/templates/json/tree-sitter/themes/dark-python.json
Normal file
116
common/templates/json/tree-sitter/themes/dark-python.json
Normal file
@@ -0,0 +1,116 @@
|
||||
{
|
||||
"monacoTreeSitter": {
|
||||
"type": "#0ca1a6",
|
||||
"scope": "#dae3e3",
|
||||
"function": "#F39C12",
|
||||
"variable": "#dae3e3",
|
||||
"number": "#7fcbcd",
|
||||
"string": "#7fcbcd",
|
||||
"comment": "#7f8c8d",
|
||||
"constant": "#7fcbcd",
|
||||
"directive": "#C586C0",
|
||||
"control": "#0ca1a6",
|
||||
"operator": "#dae3e3",
|
||||
"modifier": "#0ca1a6",
|
||||
"punctuation": "#dae3e3"
|
||||
},
|
||||
"base": {
|
||||
"base": "vs-dark",
|
||||
"inherit": true,
|
||||
"rules": [
|
||||
{
|
||||
"token": "comment",
|
||||
"foreground": "7f8c8d"
|
||||
},
|
||||
{
|
||||
"token": "keyword",
|
||||
"foreground": "0ca1a6"
|
||||
},
|
||||
{
|
||||
"token": "keyword.control",
|
||||
"foreground": "0ca1a6"
|
||||
},
|
||||
{
|
||||
"token": "storage",
|
||||
"foreground": "0ca1a6"
|
||||
},
|
||||
{
|
||||
"token": "storage.type",
|
||||
"foreground": "0ca1a6"
|
||||
},
|
||||
{
|
||||
"token": "entity.name.type",
|
||||
"foreground": "7fcbcd"
|
||||
},
|
||||
{
|
||||
"token": "support.type",
|
||||
"foreground": "7fcbcd"
|
||||
},
|
||||
{
|
||||
"token": "entity.name.function",
|
||||
"foreground": "F39C12"
|
||||
},
|
||||
{
|
||||
"token": "support.function",
|
||||
"foreground": "F39C12"
|
||||
},
|
||||
{
|
||||
"token": "meta.function-call",
|
||||
"foreground": "F39C12"
|
||||
},
|
||||
{
|
||||
"token": "variable",
|
||||
"foreground": "dae3e3"
|
||||
},
|
||||
{
|
||||
"token": "variable.parameter",
|
||||
"foreground": "dae3e3"
|
||||
},
|
||||
{
|
||||
"token": "constant.numeric",
|
||||
"foreground": "7fcbcd"
|
||||
},
|
||||
{
|
||||
"token": "constant.language",
|
||||
"foreground": "7fcbcd"
|
||||
},
|
||||
{
|
||||
"token": "support.constant",
|
||||
"foreground": "7fcbcd"
|
||||
},
|
||||
{
|
||||
"token": "string",
|
||||
"foreground": "7fcbcd"
|
||||
},
|
||||
{
|
||||
"token": "meta.preprocessor",
|
||||
"foreground": "C586C0"
|
||||
},
|
||||
{
|
||||
"token": "keyword.control.directive",
|
||||
"foreground": "C586C0"
|
||||
},
|
||||
{
|
||||
"token": "operator",
|
||||
"foreground": "dae3e3"
|
||||
},
|
||||
{
|
||||
"token": "punctuation",
|
||||
"foreground": "dae3e3"
|
||||
},
|
||||
{
|
||||
"token": "invalid",
|
||||
"foreground": "ffffff",
|
||||
"background": "df7365"
|
||||
}
|
||||
],
|
||||
"colors": {
|
||||
"editor.background": "#1f272a",
|
||||
"editor.foreground": "#dae3e3",
|
||||
"editor.selectionBackground": "#00818480",
|
||||
"editor.lineHighlightBackground": "#434f5410",
|
||||
"editorCursor.foreground": "#dae3e3",
|
||||
"editorWhitespace.foreground": "#374146"
|
||||
}
|
||||
}
|
||||
}
|
||||
113
common/templates/json/tree-sitter/themes/light-cpp.json
Normal file
113
common/templates/json/tree-sitter/themes/light-cpp.json
Normal file
@@ -0,0 +1,113 @@
|
||||
{
|
||||
"monacoTreeSitter": {
|
||||
"type": "#005C5F",
|
||||
"scope": "#4e5b61",
|
||||
"function": "#D35400",
|
||||
"variable": "#4e5b61",
|
||||
"number": "#005C5F",
|
||||
"string": "#005C5F",
|
||||
"comment": "#95a5a6cc",
|
||||
"constant": "#005C5F",
|
||||
"directive": "#728E00",
|
||||
"control": "#00979D",
|
||||
"operator": "#4e5b61",
|
||||
"modifier": "#00979D",
|
||||
"punctuation": "#4e5b61"
|
||||
},
|
||||
"base": {
|
||||
"base": "vs",
|
||||
"inherit": true,
|
||||
"rules": [
|
||||
{
|
||||
"token": "comment",
|
||||
"foreground": "95a5a6"
|
||||
},
|
||||
{
|
||||
"token": "keyword",
|
||||
"foreground": "00979D"
|
||||
},
|
||||
{
|
||||
"token": "keyword.control",
|
||||
"foreground": "00979D"
|
||||
},
|
||||
{
|
||||
"token": "storage",
|
||||
"foreground": "00979D"
|
||||
},
|
||||
{
|
||||
"token": "storage.type",
|
||||
"foreground": "005C5F"
|
||||
},
|
||||
{
|
||||
"token": "entity.name.type",
|
||||
"foreground": "005C5F"
|
||||
},
|
||||
{
|
||||
"token": "support.type",
|
||||
"foreground": "005C5F"
|
||||
},
|
||||
{
|
||||
"token": "entity.name.function",
|
||||
"foreground": "D35400"
|
||||
},
|
||||
{
|
||||
"token": "support.function",
|
||||
"foreground": "D35400"
|
||||
},
|
||||
{
|
||||
"token": "meta.function-call",
|
||||
"foreground": "D35400"
|
||||
},
|
||||
{
|
||||
"token": "variable",
|
||||
"foreground": "4e5b61"
|
||||
},
|
||||
{
|
||||
"token": "variable.parameter",
|
||||
"foreground": "4e5b61"
|
||||
},
|
||||
{
|
||||
"token": "constant.numeric",
|
||||
"foreground": "005C5F"
|
||||
},
|
||||
{
|
||||
"token": "constant.language",
|
||||
"foreground": "005C5F",
|
||||
"fontStyle": "bold"
|
||||
},
|
||||
{
|
||||
"token": "support.constant",
|
||||
"foreground": "005C5F"
|
||||
},
|
||||
{
|
||||
"token": "string",
|
||||
"foreground": "005C5F"
|
||||
},
|
||||
{
|
||||
"token": "meta.preprocessor",
|
||||
"foreground": "728E00"
|
||||
},
|
||||
{
|
||||
"token": "keyword.control.directive",
|
||||
"foreground": "728E00"
|
||||
},
|
||||
{
|
||||
"token": "operator",
|
||||
"foreground": "4e5b61"
|
||||
},
|
||||
{
|
||||
"token": "invalid",
|
||||
"foreground": "ffffff",
|
||||
"background": "df7365"
|
||||
}
|
||||
],
|
||||
"colors": {
|
||||
"editor.foreground": "#4e5b61",
|
||||
"editor.background": "#ffffff",
|
||||
"editor.selectionBackground": "#7fcbcdb3",
|
||||
"editor.lineHighlightBackground": "#434f5410",
|
||||
"editorCursor.foreground": "#4e5b61",
|
||||
"editorWhitespace.foreground": "#bfbfbf"
|
||||
}
|
||||
}
|
||||
}
|
||||
104
common/templates/json/tree-sitter/themes/light-python.json
Normal file
104
common/templates/json/tree-sitter/themes/light-python.json
Normal file
@@ -0,0 +1,104 @@
|
||||
{
|
||||
"monacoTreeSitter": {
|
||||
"type": "#267F99",
|
||||
"scope": "#333333",
|
||||
"function": "#795E26",
|
||||
"variable": "#333333",
|
||||
"number": "#098658",
|
||||
"string": "#A31515",
|
||||
"comment": "#008000",
|
||||
"constant": "#0451A5",
|
||||
"directive": "#AF00DB",
|
||||
"control": "#AF00DB",
|
||||
"operator": "#333333",
|
||||
"modifier": "#AF00DB",
|
||||
"punctuation": "#333333"
|
||||
},
|
||||
"base": {
|
||||
"base": "vs",
|
||||
"inherit": true,
|
||||
"rules": [
|
||||
{
|
||||
"token": "comment",
|
||||
"foreground": "008000"
|
||||
},
|
||||
{
|
||||
"token": "keyword",
|
||||
"foreground": "AF00DB"
|
||||
},
|
||||
{
|
||||
"token": "keyword.control",
|
||||
"foreground": "AF00DB"
|
||||
},
|
||||
{
|
||||
"token": "entity.name.class",
|
||||
"foreground": "267F99"
|
||||
},
|
||||
{
|
||||
"token": "entity.name.type",
|
||||
"foreground": "267F99"
|
||||
},
|
||||
{
|
||||
"token": "entity.name.function",
|
||||
"foreground": "795E26"
|
||||
},
|
||||
{
|
||||
"token": "support.function.builtin",
|
||||
"foreground": "0451A5"
|
||||
},
|
||||
{
|
||||
"token": "variable.parameter",
|
||||
"foreground": "001080"
|
||||
},
|
||||
{
|
||||
"token": "variable.language.self",
|
||||
"foreground": "001080"
|
||||
},
|
||||
{
|
||||
"token": "entity.name.function.magic",
|
||||
"foreground": "001080"
|
||||
},
|
||||
{
|
||||
"token": "meta.decorator",
|
||||
"foreground": "AF00DB"
|
||||
},
|
||||
{
|
||||
"token": "string",
|
||||
"foreground": "A31515"
|
||||
},
|
||||
{
|
||||
"token": "string.doc",
|
||||
"foreground": "008000"
|
||||
},
|
||||
{
|
||||
"token": "constant.numeric",
|
||||
"foreground": "098658"
|
||||
},
|
||||
{
|
||||
"token": "constant.language",
|
||||
"foreground": "0451A5"
|
||||
},
|
||||
{
|
||||
"token": "punctuation",
|
||||
"foreground": "333333"
|
||||
},
|
||||
{
|
||||
"token": "keyword.operator",
|
||||
"foreground": "333333"
|
||||
},
|
||||
{
|
||||
"token": "invalid",
|
||||
"foreground": "FFFFFF",
|
||||
"background": "E51400"
|
||||
}
|
||||
],
|
||||
"colors": {
|
||||
"editor.background": "#FFFFFF",
|
||||
"editor.foreground": "#333333",
|
||||
"editor.selectionBackground": "#ADD6FF",
|
||||
"editor.lineHighlightBackground": "#FFFFFF",
|
||||
"editorCursor.foreground": "#000000",
|
||||
"editorWhitespace.foreground": "#BFBFBF"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user