Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
04f70fd7
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
04f70fd7
编写于
4月 11, 2016
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[diff] colorizer tests
上级
1416f6e5
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
417 addition
and
0 deletion
+417
-0
extensions/diff/test/colorize-fixtures/test.diff
extensions/diff/test/colorize-fixtures/test.diff
+19
-0
extensions/diff/test/colorize-results/test_diff.json
extensions/diff/test/colorize-results/test_diff.json
+398
-0
未找到文件。
extensions/diff/test/colorize-fixtures/test.diff
0 → 100644
浏览文件 @
04f70fd7
--- lao Sat Jan 26 23:30:39 1991
+++ tzu Sat Jan 26 23:30:50 1991
@@ -1,7 +1,6 @@
-The Way that can be told of is not the eternal Way;
-The name that can be named is not the eternal name.
The Nameless is the origin of Heaven and Earth;
-The Named is the mother of all things.
+The named is the mother of all things.
+
Therefore let there always be non-being,
so we may see their subtlety,
And let there always be being,
@@ -9,3 +8,6 @@
The two are the same,
But after they are produced,
they have different names.
+They both may be called deep and profound.
+Deeper and more profound,
+The door of all subtleties!
\ No newline at end of file
extensions/diff/test/colorize-results/test_diff.json
0 → 100644
浏览文件 @
04f70fd7
[
{
"c"
:
"---"
,
"t"
:
"meta.diff.header.from-file.punctuation.definition"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.meta.header.diff"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.header"
,
"dark_vs"
:
".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.meta.header.diff"
,
"light_vs"
:
".vs.vscode-theme-defaults-themes-light_vs-json .token.header"
,
"hc_black"
:
".hc-black.vscode-theme-defaults-themes-hc_black-json .token.header"
}
},
{
"c"
:
" lao
\t
Sat Jan 26 23:30:39 1991"
,
"t"
:
"meta.diff.header.from-file"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.meta.header.diff"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.header"
,
"dark_vs"
:
".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.meta.header.diff"
,
"light_vs"
:
".vs.vscode-theme-defaults-themes-light_vs-json .token.header"
,
"hc_black"
:
".hc-black.vscode-theme-defaults-themes-hc_black-json .token.header"
}
},
{
"c"
:
"+++"
,
"t"
:
"meta.diff.header.punctuation.definition.to-file"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.meta.header.diff"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.header"
,
"dark_vs"
:
".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.meta.header.diff"
,
"light_vs"
:
".vs.vscode-theme-defaults-themes-light_vs-json .token.header"
,
"hc_black"
:
".hc-black.vscode-theme-defaults-themes-hc_black-json .token.header"
}
},
{
"c"
:
" tzu
\t
Sat Jan 26 23:30:50 1991"
,
"t"
:
"meta.diff.header.to-file"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.meta.header.diff"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.header"
,
"dark_vs"
:
".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.meta.header.diff"
,
"light_vs"
:
".vs.vscode-theme-defaults-themes-light_vs-json .token.header"
,
"hc_black"
:
".hc-black.vscode-theme-defaults-themes-hc_black-json .token.header"
}
},
{
"c"
:
"@@"
,
"t"
:
"meta.diff.punctuation.definition.range.unified"
,
"r"
:
{
"dark_plus"
:
".vs-dark .token"
,
"light_plus"
:
".vs .token"
,
"dark_vs"
:
".vs-dark .token"
,
"light_vs"
:
".vs .token"
,
"hc_black"
:
".hc-black .token"
}
},
{
"c"
:
" "
,
"t"
:
"meta.diff.range.unified"
,
"r"
:
{
"dark_plus"
:
".vs-dark .token"
,
"light_plus"
:
".vs .token"
,
"dark_vs"
:
".vs-dark .token"
,
"light_vs"
:
".vs .token"
,
"hc_black"
:
".hc-black .token"
}
},
{
"c"
:
"-1,7 +1,6"
,
"t"
:
"meta.diff.range.unified.toc-list.line-number"
,
"r"
:
{
"dark_plus"
:
".vs-dark .token"
,
"light_plus"
:
".vs .token"
,
"dark_vs"
:
".vs-dark .token"
,
"light_vs"
:
".vs .token"
,
"hc_black"
:
".hc-black .token"
}
},
{
"c"
:
" "
,
"t"
:
"meta.diff.range.unified"
,
"r"
:
{
"dark_plus"
:
".vs-dark .token"
,
"light_plus"
:
".vs .token"
,
"dark_vs"
:
".vs-dark .token"
,
"light_vs"
:
".vs .token"
,
"hc_black"
:
".hc-black .token"
}
},
{
"c"
:
"@@"
,
"t"
:
"meta.diff.punctuation.definition.range.unified"
,
"r"
:
{
"dark_plus"
:
".vs-dark .token"
,
"light_plus"
:
".vs .token"
,
"dark_vs"
:
".vs-dark .token"
,
"light_vs"
:
".vs .token"
,
"hc_black"
:
".hc-black .token"
}
},
{
"c"
:
"-"
,
"t"
:
"diff.punctuation.definition.markup.deleted.inserted"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.markup.deleted"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.markup.deleted"
,
"dark_vs"
:
".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.markup.deleted"
,
"light_vs"
:
".vs.vscode-theme-defaults-themes-light_vs-json .token.markup.deleted"
,
"hc_black"
:
".hc-black.vscode-theme-defaults-themes-hc_black-json .token.markup.deleted"
}
},
{
"c"
:
"The Way that can be told of is not the eternal Way;"
,
"t"
:
"diff.markup.deleted"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.markup.deleted"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.markup.deleted"
,
"dark_vs"
:
".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.markup.deleted"
,
"light_vs"
:
".vs.vscode-theme-defaults-themes-light_vs-json .token.markup.deleted"
,
"hc_black"
:
".hc-black.vscode-theme-defaults-themes-hc_black-json .token.markup.deleted"
}
},
{
"c"
:
"-"
,
"t"
:
"diff.punctuation.definition.markup.deleted.inserted"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.markup.deleted"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.markup.deleted"
,
"dark_vs"
:
".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.markup.deleted"
,
"light_vs"
:
".vs.vscode-theme-defaults-themes-light_vs-json .token.markup.deleted"
,
"hc_black"
:
".hc-black.vscode-theme-defaults-themes-hc_black-json .token.markup.deleted"
}
},
{
"c"
:
"The name that can be named is not the eternal name."
,
"t"
:
"diff.markup.deleted"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.markup.deleted"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.markup.deleted"
,
"dark_vs"
:
".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.markup.deleted"
,
"light_vs"
:
".vs.vscode-theme-defaults-themes-light_vs-json .token.markup.deleted"
,
"hc_black"
:
".hc-black.vscode-theme-defaults-themes-hc_black-json .token.markup.deleted"
}
},
{
"c"
:
" The Nameless is the origin of Heaven and Earth;"
,
"t"
:
""
,
"r"
:
{
"dark_plus"
:
".vs-dark .token"
,
"light_plus"
:
".vs .token"
,
"dark_vs"
:
".vs-dark .token"
,
"light_vs"
:
".vs .token"
,
"hc_black"
:
".hc-black .token"
}
},
{
"c"
:
"-"
,
"t"
:
"diff.punctuation.definition.markup.deleted.inserted"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.markup.deleted"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.markup.deleted"
,
"dark_vs"
:
".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.markup.deleted"
,
"light_vs"
:
".vs.vscode-theme-defaults-themes-light_vs-json .token.markup.deleted"
,
"hc_black"
:
".hc-black.vscode-theme-defaults-themes-hc_black-json .token.markup.deleted"
}
},
{
"c"
:
"The Named is the mother of all things."
,
"t"
:
"diff.markup.deleted"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.markup.deleted"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.markup.deleted"
,
"dark_vs"
:
".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.markup.deleted"
,
"light_vs"
:
".vs.vscode-theme-defaults-themes-light_vs-json .token.markup.deleted"
,
"hc_black"
:
".hc-black.vscode-theme-defaults-themes-hc_black-json .token.markup.deleted"
}
},
{
"c"
:
"+"
,
"t"
:
"diff.punctuation.definition.markup.inserted"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.markup.inserted"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.markup.inserted"
,
"dark_vs"
:
".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.markup.inserted"
,
"light_vs"
:
".vs.vscode-theme-defaults-themes-light_vs-json .token.markup.inserted"
,
"hc_black"
:
".hc-black.vscode-theme-defaults-themes-hc_black-json .token.markup.inserted"
}
},
{
"c"
:
"The named is the mother of all things."
,
"t"
:
"diff.markup.inserted"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.markup.inserted"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.markup.inserted"
,
"dark_vs"
:
".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.markup.inserted"
,
"light_vs"
:
".vs.vscode-theme-defaults-themes-light_vs-json .token.markup.inserted"
,
"hc_black"
:
".hc-black.vscode-theme-defaults-themes-hc_black-json .token.markup.inserted"
}
},
{
"c"
:
"+"
,
"t"
:
"diff.punctuation.definition.markup.inserted"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.markup.inserted"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.markup.inserted"
,
"dark_vs"
:
".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.markup.inserted"
,
"light_vs"
:
".vs.vscode-theme-defaults-themes-light_vs-json .token.markup.inserted"
,
"hc_black"
:
".hc-black.vscode-theme-defaults-themes-hc_black-json .token.markup.inserted"
}
},
{
"c"
:
" Therefore let there always be non-being,"
,
"t"
:
""
,
"r"
:
{
"dark_plus"
:
".vs-dark .token"
,
"light_plus"
:
".vs .token"
,
"dark_vs"
:
".vs-dark .token"
,
"light_vs"
:
".vs .token"
,
"hc_black"
:
".hc-black .token"
}
},
{
"c"
:
" so we may see their subtlety,"
,
"t"
:
""
,
"r"
:
{
"dark_plus"
:
".vs-dark .token"
,
"light_plus"
:
".vs .token"
,
"dark_vs"
:
".vs-dark .token"
,
"light_vs"
:
".vs .token"
,
"hc_black"
:
".hc-black .token"
}
},
{
"c"
:
" And let there always be being,"
,
"t"
:
""
,
"r"
:
{
"dark_plus"
:
".vs-dark .token"
,
"light_plus"
:
".vs .token"
,
"dark_vs"
:
".vs-dark .token"
,
"light_vs"
:
".vs .token"
,
"hc_black"
:
".hc-black .token"
}
},
{
"c"
:
"@@"
,
"t"
:
"meta.diff.punctuation.definition.range.unified"
,
"r"
:
{
"dark_plus"
:
".vs-dark .token"
,
"light_plus"
:
".vs .token"
,
"dark_vs"
:
".vs-dark .token"
,
"light_vs"
:
".vs .token"
,
"hc_black"
:
".hc-black .token"
}
},
{
"c"
:
" "
,
"t"
:
"meta.diff.range.unified"
,
"r"
:
{
"dark_plus"
:
".vs-dark .token"
,
"light_plus"
:
".vs .token"
,
"dark_vs"
:
".vs-dark .token"
,
"light_vs"
:
".vs .token"
,
"hc_black"
:
".hc-black .token"
}
},
{
"c"
:
"-9,3 +8,6"
,
"t"
:
"meta.diff.range.unified.toc-list.line-number"
,
"r"
:
{
"dark_plus"
:
".vs-dark .token"
,
"light_plus"
:
".vs .token"
,
"dark_vs"
:
".vs-dark .token"
,
"light_vs"
:
".vs .token"
,
"hc_black"
:
".hc-black .token"
}
},
{
"c"
:
" "
,
"t"
:
"meta.diff.range.unified"
,
"r"
:
{
"dark_plus"
:
".vs-dark .token"
,
"light_plus"
:
".vs .token"
,
"dark_vs"
:
".vs-dark .token"
,
"light_vs"
:
".vs .token"
,
"hc_black"
:
".hc-black .token"
}
},
{
"c"
:
"@@"
,
"t"
:
"meta.diff.punctuation.definition.range.unified"
,
"r"
:
{
"dark_plus"
:
".vs-dark .token"
,
"light_plus"
:
".vs .token"
,
"dark_vs"
:
".vs-dark .token"
,
"light_vs"
:
".vs .token"
,
"hc_black"
:
".hc-black .token"
}
},
{
"c"
:
" The two are the same,"
,
"t"
:
""
,
"r"
:
{
"dark_plus"
:
".vs-dark .token"
,
"light_plus"
:
".vs .token"
,
"dark_vs"
:
".vs-dark .token"
,
"light_vs"
:
".vs .token"
,
"hc_black"
:
".hc-black .token"
}
},
{
"c"
:
" But after they are produced,"
,
"t"
:
""
,
"r"
:
{
"dark_plus"
:
".vs-dark .token"
,
"light_plus"
:
".vs .token"
,
"dark_vs"
:
".vs-dark .token"
,
"light_vs"
:
".vs .token"
,
"hc_black"
:
".hc-black .token"
}
},
{
"c"
:
" they have different names."
,
"t"
:
""
,
"r"
:
{
"dark_plus"
:
".vs-dark .token"
,
"light_plus"
:
".vs .token"
,
"dark_vs"
:
".vs-dark .token"
,
"light_vs"
:
".vs .token"
,
"hc_black"
:
".hc-black .token"
}
},
{
"c"
:
"+"
,
"t"
:
"diff.punctuation.definition.markup.inserted"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.markup.inserted"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.markup.inserted"
,
"dark_vs"
:
".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.markup.inserted"
,
"light_vs"
:
".vs.vscode-theme-defaults-themes-light_vs-json .token.markup.inserted"
,
"hc_black"
:
".hc-black.vscode-theme-defaults-themes-hc_black-json .token.markup.inserted"
}
},
{
"c"
:
"They both may be called deep and profound."
,
"t"
:
"diff.markup.inserted"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.markup.inserted"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.markup.inserted"
,
"dark_vs"
:
".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.markup.inserted"
,
"light_vs"
:
".vs.vscode-theme-defaults-themes-light_vs-json .token.markup.inserted"
,
"hc_black"
:
".hc-black.vscode-theme-defaults-themes-hc_black-json .token.markup.inserted"
}
},
{
"c"
:
"+"
,
"t"
:
"diff.punctuation.definition.markup.inserted"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.markup.inserted"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.markup.inserted"
,
"dark_vs"
:
".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.markup.inserted"
,
"light_vs"
:
".vs.vscode-theme-defaults-themes-light_vs-json .token.markup.inserted"
,
"hc_black"
:
".hc-black.vscode-theme-defaults-themes-hc_black-json .token.markup.inserted"
}
},
{
"c"
:
"Deeper and more profound,"
,
"t"
:
"diff.markup.inserted"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.markup.inserted"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.markup.inserted"
,
"dark_vs"
:
".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.markup.inserted"
,
"light_vs"
:
".vs.vscode-theme-defaults-themes-light_vs-json .token.markup.inserted"
,
"hc_black"
:
".hc-black.vscode-theme-defaults-themes-hc_black-json .token.markup.inserted"
}
},
{
"c"
:
"+"
,
"t"
:
"diff.punctuation.definition.markup.inserted"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.markup.inserted"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.markup.inserted"
,
"dark_vs"
:
".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.markup.inserted"
,
"light_vs"
:
".vs.vscode-theme-defaults-themes-light_vs-json .token.markup.inserted"
,
"hc_black"
:
".hc-black.vscode-theme-defaults-themes-hc_black-json .token.markup.inserted"
}
},
{
"c"
:
"The door of all subtleties!"
,
"t"
:
"diff.markup.inserted"
,
"r"
:
{
"dark_plus"
:
".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.markup.inserted"
,
"light_plus"
:
".vs.vscode-theme-defaults-themes-light_plus-json .token.markup.inserted"
,
"dark_vs"
:
".vs-dark.vscode-theme-defaults-themes-dark_vs-json .token.markup.inserted"
,
"light_vs"
:
".vs.vscode-theme-defaults-themes-light_vs-json .token.markup.inserted"
,
"hc_black"
:
".hc-black.vscode-theme-defaults-themes-hc_black-json .token.markup.inserted"
}
}
]
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录