提交 0d53acce 编写于 作者: B Benjamin Pasero

Add some more encodings to the picker

fixes #16322
fixes #23646
上级 c7837ea7
......@@ -780,6 +780,16 @@ export const SUPPORTED_ENCODINGS: { [encoding: string]: { labelLong: string; lab
labelLong: 'Simplified Chinese (GB 2312)',
labelShort: 'GB 2312',
order: 45
},
cp865: {
labelLong: 'Nordic DOS (CP 865)',
labelShort: 'CP 865',
order: 46
},
cp850: {
labelLong: 'Western European DOS (CP 850)',
labelShort: 'CP 850',
order: 47
}
};
......
......@@ -204,7 +204,8 @@ configurationRegistry.registerConfiguration({
'enum': Object.keys(SUPPORTED_ENCODINGS),
'default': 'utf8',
'description': nls.localize('encoding', "The default character set encoding to use when reading and writing files."),
'scope': ConfigurationScope.RESOURCE
'scope': ConfigurationScope.RESOURCE,
'enumDescriptions': Object.keys(SUPPORTED_ENCODINGS).map(key => SUPPORTED_ENCODINGS[key].labelLong)
},
'files.autoGuessEncoding': {
'type': 'boolean',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册