[Refactor] Encapsulate extension ID reference to a constant
MR: !301 (merged)
Description
We have the magic string gitlab.gitlab-web-ide
sprinkled across the codebase. Let's encapsulate this in a single place.
Implementation Details
- Maybe we should make the
packages/web-ide-interop
package the SSOT forWEB_IDE_EXTENSION_ID
? https://gitlab.com/gitlab-org/gitlab-web-ide/-/blob/133d43a3979b5b1caf23fbd6347cc9fd2ad79208/packages/web-ide-interop/src/index.ts#L13 - We should add a test in the
packages/vscode-extension-web-ide
that the${publisher}.${name}
invscode.package.json
match theWEB_IDE_EXTENSION_ID
.
Context
The following discussion from !295 (merged) should be addressed:
-
@viktomas started a discussion: (non-blocking)(follow-up): Could we use constant to represent the extension ID?
Edited by Cindy Halim