未验证 提交 af35b83a 编写于 作者: A Alexandru Dima 提交者: GitHub

Merge pull request #54598 from Microsoft/tyriar/const_enum

Prefer const enum over const object in intervalTree.ts
......@@ -12,14 +12,14 @@ import { IModelDecoration, TrackedRangeStickiness as ActualTrackedRangeStickines
// The red-black tree is based on the "Introduction to Algorithms" by Cormen, Leiserson and Rivest.
//
export const ClassName = {
EditorHintDecoration: 'squiggly-hint',
EditorInfoDecoration: 'squiggly-info',
EditorWarningDecoration: 'squiggly-warning',
EditorErrorDecoration: 'squiggly-error',
EditorUnnecessaryDecoration: 'squiggly-unnecessary',
EditorUnnecessaryInlineDecoration: 'squiggly-inline-unnecessary'
};
export const enum ClassName {
EditorHintDecoration = 'squiggly-hint',
EditorInfoDecoration = 'squiggly-info',
EditorWarningDecoration = 'squiggly-warning',
EditorErrorDecoration = 'squiggly-error',
EditorUnnecessaryDecoration = 'squiggly-unnecessary',
EditorUnnecessaryInlineDecoration = 'squiggly-inline-unnecessary'
}
/**
* Describes the behavior of decorations when typing/editing near their edges.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册