2020-11-24 15:15:51 +05:30
|
|
|
import { __ } from '~/locale';
|
|
|
|
|
|
|
|
export const EDITOR_LITE_INSTANCE_ERROR_NO_EL = __(
|
|
|
|
'"el" parameter is required for createInstance()',
|
|
|
|
);
|
|
|
|
|
|
|
|
export const URI_PREFIX = 'gitlab';
|
2021-01-03 14:25:43 +05:30
|
|
|
export const CONTENT_UPDATE_DEBOUNCE = 250;
|
2021-02-22 17:27:13 +05:30
|
|
|
|
|
|
|
export const ERROR_INSTANCE_REQUIRED_FOR_EXTENSION = __(
|
|
|
|
'Editor Lite instance is required to set up an extension.',
|
|
|
|
);
|
2021-03-08 18:12:59 +05:30
|
|
|
|
2021-03-11 19:13:27 +05:30
|
|
|
export const EDITOR_READY_EVENT = 'editor-ready';
|
|
|
|
|
|
|
|
export const EDITOR_TYPE_CODE = 'vs.editor.ICodeEditor';
|
|
|
|
export const EDITOR_TYPE_DIFF = 'vs.editor.IDiffEditor';
|
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
export const EDITOR_CODE_INSTANCE_FN = 'createInstance';
|
|
|
|
export const EDITOR_DIFF_INSTANCE_FN = 'createDiffInstance';
|
|
|
|
|
2021-03-08 18:12:59 +05:30
|
|
|
//
|
|
|
|
// EXTENSIONS' CONSTANTS
|
|
|
|
//
|
|
|
|
|
|
|
|
// For CI config schemas the filename must match
|
|
|
|
// '*.gitlab-ci.yml' regardless of project configuration.
|
|
|
|
// https://gitlab.com/gitlab-org/gitlab/-/issues/293641
|
|
|
|
export const EXTENSION_CI_SCHEMA_FILE_NAME_MATCH = '.gitlab-ci.yml';
|