-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use
ctx.subscriptions
, optimize types
- Loading branch information
1 parent
aea8f71
commit c3697da
Showing
4 changed files
with
57 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
import { workspace, ConfigurationChangeEvent, window } from "vscode"; | ||
import { | ||
workspace, | ||
ConfigurationChangeEvent, | ||
window, | ||
ExtensionContext, | ||
} from "vscode"; | ||
|
||
export const activate = () => { | ||
// regenerate the theme files when the config changes | ||
workspace.onDidChangeConfiguration((event: ConfigurationChangeEvent) => { | ||
if (event.affectsConfiguration("catppuccin")) { | ||
window.showInformationMessage( | ||
"VSCode Web doesn't support advanced Catppuccin options at the moment.", | ||
); | ||
} | ||
}); | ||
export const activate = (ctx: ExtensionContext) => { | ||
ctx.subscriptions.push( | ||
workspace.onDidChangeConfiguration((event: ConfigurationChangeEvent) => { | ||
if (event.affectsConfiguration("catppuccin")) { | ||
window.showErrorMessage( | ||
"VSCode Web doesn't support advanced Catppuccin options at the moment.", | ||
); | ||
} | ||
}), | ||
); | ||
}; | ||
|
||
export const deactivate = () => {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters