Skip to content

Centralize uuid generation #1700

Description

@tortmayr

Currently we have no central helper/utility class to create uuids.
This means every GLSP package that needs a uuid has to declare its own dependency to a uuid provider package.
This typically causes drift and we end up with different used uuid dependency versions across glsp packages.
This makes it hard to maintain and audit for security fixes.

Proposal:

Introduce a uuid utility module in @eclipse-glsp/protocol. This can then be consistently reused
by all glsp packages that need uuids.
As a result we have on central entry point for declaring the uuid dependency and can maintain/audit it easily.
Consuming packages no longer need to worry about uuid dependencies at all.
In addition we can enforce proper usage of the helper by restricting uuid imports via eslint.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions