diff --git a/packages/core/src/common/const.ts b/packages/core/src/common/const.ts index 46c68bd3f5..d36b0ddfef 100644 --- a/packages/core/src/common/const.ts +++ b/packages/core/src/common/const.ts @@ -14,16 +14,16 @@ * limitations under the License. */ -export const DOCS_NORMAL_EDITOR_UNIT_ID_KEY = '__defaultDocumentNormalEditorSpecialUnitId_20231006__'; +export const DOCS_NORMAL_EDITOR_UNIT_ID_KEY = '__INTERNAL_EDITOR__DOCS_NORMAL'; -export const DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY = '__defaultDocumentFormulaBarEditorSpecialUnitId_20231012__'; +export const DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY = '__INTERNAL_EDITOR__DOCS_FORMULA_BAR'; export const DEFAULT_EMPTY_DOCUMENT_VALUE = '\r\n'; export function createInternalEditorID(id: string) { - return `__internalEditorId__${id}`; + return `__INTERNAL_EDITOR__${id}`; } export function isInternalEditorID(id: string) { - return id.startsWith('__'); + return id.startsWith('__INTERNAL_EDITOR__'); } diff --git a/packages/core/src/services/instance/instance.service.ts b/packages/core/src/services/instance/instance.service.ts index 8613bcb93d..b1486ac5d2 100644 --- a/packages/core/src/services/instance/instance.service.ts +++ b/packages/core/src/services/instance/instance.service.ts @@ -41,7 +41,7 @@ export interface IUniverInstanceService { /** Subscribe to curtain type of units' creation. */ getTypeOfUnitAdded$(type: UnitType): Observable; - /** @interal */ + /** @ignore */ __addUnit(unit: UnitModel): void; /** Omits value when a UnitModel is disposed. */