提交 64b2a7b0 编写于 作者: M Matt Bierner

Reorder enum values in editor options

With TS 4.1, the emit order of the string literal types here seems to have changed. Try reordering this
上级 b160164e
......@@ -96,7 +96,7 @@ export interface IEditorOptions {
* Remove unusual line terminators like LINE SEPARATOR (LS), PARAGRAPH SEPARATOR (PS).
* Defaults to 'prompt'.
*/
unusualLineTerminators?: 'off' | 'prompt' | 'auto';
unusualLineTerminators?: 'auto' | 'off' | 'prompt';
/**
* Should the corresponding line be selected when clicking on the line number?
* Defaults to true.
......@@ -4217,8 +4217,8 @@ export const EditorOptions = {
)),
unusualLineTerminators: register(new EditorStringEnumOption(
EditorOption.unusualLineTerminators, 'unusualLineTerminators',
'prompt' as 'off' | 'prompt' | 'auto',
['off', 'prompt', 'auto'] as const,
'prompt' as 'auto' | 'off' | 'prompt',
['auto', 'off', 'prompt'] as const,
{
enumDescriptions: [
nls.localize('unusualLineTerminators.off', "Unusual line terminators are ignored."),
......
......@@ -27,7 +27,7 @@ class UnusualLineTerminatorsDetector extends Disposable implements IEditorContri
public static readonly ID = 'editor.contrib.unusualLineTerminatorsDetector';
private _config: 'off' | 'prompt' | 'auto';
private _config: 'auto' | 'off' | 'prompt';
constructor(
private readonly _editor: ICodeEditor,
......
......@@ -2635,7 +2635,7 @@ declare namespace monaco.editor {
* Remove unusual line terminators like LINE SEPARATOR (LS), PARAGRAPH SEPARATOR (PS).
* Defaults to 'prompt'.
*/
unusualLineTerminators?: 'off' | 'prompt' | 'auto';
unusualLineTerminators?: 'auto' | 'off' | 'prompt';
/**
* Should the corresponding line be selected when clicking on the line number?
* Defaults to true.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册