Skip to content

Commit

Permalink
todos
Browse files Browse the repository at this point in the history
  • Loading branch information
Katsute committed Nov 13, 2024
1 parent e8ac5dc commit 964179a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"theme": "dark"
},
"publisher": "Katsute",
"version": "1.0.10",
"version": "2.0.0",
"private": true,
"engines": {
"vscode": "^1.95.0"
Expand Down
8 changes: 8 additions & 0 deletions src/sync/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ export const pull: (repo: string, skipNotify?: boolean) => void = async (repo: s
logger.warn("Snippets not found");
}

/* profiles */ {
// todo extract profile folder to user dir
}

logger.info(`Imported settings from ${config.get("repository")}@${branch}`, true);

cleanup(temp);
Expand Down Expand Up @@ -252,6 +256,10 @@ export const push: (repo: string, ignoreBadAuth?: boolean) => Promise<void> = as
else
logger.warn("Snippets noit found");
}

/* profiles */ {
// todo copy ^ profile files to staging
}
}catch(error: any){
if(error){
logger.error(`Push failed: ${auth.mask(error, cred)}`, true);
Expand Down
8 changes: 8 additions & 0 deletions src/sync/zip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ export const inport: (fsPath: string) => void = (fsPath: string) => {
logger.warn("Snippets not found");
}

/* profiles */ {
// todo extract profile folder to user dir
}

logger.info(`Imported settings from ${fsPath}`, true);

extension.notify();
Expand Down Expand Up @@ -148,6 +152,10 @@ export const xport: (fsPath: string) => void = (fsPath: string) => {
logger.warn("Snippets not found");
}

/* profiles */ {
// todo copy ^ profile files to zip
}

zip.writeZip(fsPath, (error: Error | null) => {
if(error)
logger.error(`Failed to export settings: ${error}`, true);
Expand Down

0 comments on commit 964179a

Please sign in to comment.