Skip to content

Commit

Permalink
add message
Browse files Browse the repository at this point in the history
  • Loading branch information
FokuspokusSB committed Aug 12, 2024
1 parent 938dcb5 commit 70a25ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@
{
"command": "flynt-component-generator.collectScreenshots",
"group": "flynt-component-generator",
"when": "explorerResourceIsFolder && resourceFilename =~ /Component/"
"when": "explorerResourceIsFolder"
},
{
"command": "flynt-component-generator.deployScreenshots",
"group": "flynt-component-generator",
"when": "explorerResourceIsFolder && resourceFilename =~ /Component/"
"when": "explorerResourceIsFolder"
}
]
}
Expand Down
6 changes: 4 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,18 +176,20 @@ export function activate(context: vscode.ExtensionContext) {

let disposableCollectScreenshots = vscode.commands.registerCommand(
"flynt-component-generator.collectScreenshots",
(folder) => {
async (folder) => {
const componentsDir = folder.path;
collectScreenshots(componentsDir);
await vscode.window.showInformationMessage("screenshots collected", "Ok");
}
);
context.subscriptions.push(disposableCollectScreenshots);

let disposableDeployScreenshots = vscode.commands.registerCommand(
"flynt-component-generator.deployScreenshots",
(folder) => {
async (folder) => {
const componentsDir = folder.path;
deployScreenshots(componentsDir);
await vscode.window.showInformationMessage("screenshots deployed", "Ok");
}
);
context.subscriptions.push(disposableDeployScreenshots);
Expand Down

0 comments on commit 70a25ca

Please sign in to comment.