vscode-git-graph
vscode-git-graph copied to clipboard
improvement file encoding
Describe the improvement that you'd like Hope to support the phenomenon that different types of files in vscode define different encodings, for example
root folder -> .vscode -> settings.json
{
"files.encoding": "utf8",
"files.autoGuessEncoding": true,
// 针对 [java] 语言,配置替代编辑器设置。
"[java]": {
"editor.defaultFormatter": "redhat.java",
"files.encoding": "gb18030",
"files.autoGuessEncoding": false
}
}
Additional context (optional)
In the project, the encoding of the .java file is gb18030, and the encoding of the .properties file is utf8
We may add a option: "git-graph.useVscodeEncoding": true, then "git-graph.fileEncoding" are disabled. when git-graph.fileEncoding is not specified, auto using files.encoding and files.autoGuessEncoding
By using https://github.com/microsoft/vscode/issues/824
@lygstate Thanks for your detailed explanation。