Skip to content

Commit

Permalink
Insiders 1.52 Support (#36)
Browse files Browse the repository at this point in the history
* Restored all extension commands for code insiders

* Unbroke the changelog button
  • Loading branch information
Unthrottled authored Nov 30, 2020
1 parent a58a628 commit 7c83143
Show file tree
Hide file tree
Showing 6 changed files with 311 additions and 244 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

# 7.1.1 [Code Insiders Support]

- Restored support for all extension commands for VSCode-Insiders 1.52.0 `f47aae014cf8567f648e68369d66b4106ae89f08`.

# 7.1.0 [WSL Sticker Installation Support]

- Enabled of stickers when working on a remote WSL VSCode session. [See issue for more details](https://github.com/doki-theme/doki-theme-vscode/issues/32)
Expand Down
8 changes: 4 additions & 4 deletions buildSrc/BuildThemes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -637,15 +637,15 @@ walkDir(masterThemeTemplateDirectoryPath)
packageJson.activationEvents = [
...packageJson.activationEvents.filter(
(activationEvent: string) =>
!activationEvent.startsWith("onCommand:extension.theme")
!activationEvent.startsWith("onCommand:doki-theme.theme")
),
...activationEvents,
];

packageJson.contributes.commands = [
...packageJson.contributes.commands.filter(
(command: { command: string }) =>
!command.command.startsWith("extension.theme")
!command.command.startsWith("doki-theme.theme")
),
...commands,
];
Expand Down Expand Up @@ -688,8 +688,8 @@ function getCommandNames(dokiDefinition: MasterDokiThemeDefinition) {
.filter((type) => type !== "normal")
.map((type) => {
if (type === "default") {
return `extension.theme.${dokiDefinition.name}`;
return `doki-theme.theme.${dokiDefinition.name}`;
}
return `extension.theme.${dokiDefinition.name}.secondary`;
return `doki-theme.theme.${dokiDefinition.name}.secondary`;
});
}
Loading

0 comments on commit 7c83143

Please sign in to comment.