From e4e416079533f697d0a6f7b4acb78ec9caf45e32 Mon Sep 17 00:00:00 2001 From: heyAyushh Date: Fri, 28 Jan 2022 23:06:19 +0530 Subject: [PATCH] :tada: enjoy --- .github/CONTRIBUTING.md | 4 ++-- .../vsc-extension-quickstart.md | 0 README.md | 15 +++++++------ package.json | 20 +++++++++++++++--- src/commands/scaffold.ts | 6 +++--- src/views/programs.ts | 2 +- src/views/tests.ts | 2 +- static/marketplace-logo.png | Bin 0 -> 4799 bytes 8 files changed, 33 insertions(+), 16 deletions(-) rename vsc-extension-quickstart.md => .github/vsc-extension-quickstart.md (100%) create mode 100644 static/marketplace-logo.png diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 3c48e8a..2fc9cbd 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -1,7 +1,7 @@ # Start Contributing All contributions are welcome. -Abide by the [code of conduct](CODE_OF_CONDUCT.md). +Abide by the [code of conduct](CODE_OF_CONDUCT.md) ## setup 1. Clone git repository on main branch @@ -14,5 +14,5 @@ Abide by the [code of conduct](CODE_OF_CONDUCT.md). ## lets gooo 1. Start with creating an issue on the [GitHub repository](https://github.com/heyayushh/vscode-anchor). 2. Make your changes in a branch of your fork and submit a pull request. -3. Make sure you create the pull request [using our template](.github/../PULL_REQUEST_TEMPLATE/pull_request_template.md). +3. Make sure you create the pull request [using our template](PULL_REQUEST_TEMPLATE/pull_request_template.md). diff --git a/vsc-extension-quickstart.md b/.github/vsc-extension-quickstart.md similarity index 100% rename from vsc-extension-quickstart.md rename to .github/vsc-extension-quickstart.md diff --git a/README.md b/README.md index 75e45b1..70d4df6 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,13 @@ # vscode-anchor ![](https://slate.textile.io/ipfs/bafkreihjdwpe3zqb75ohajqp7lxmajwo2ybuxenlh7o3j7apy3i7iustx4) +[![Visual Studio Marketplace Downloads](https://img.shields.io/visual-studio-marketplace/d/Ayushh.vscode-anchor)](https://marketplace.visualstudio.com/items?itemName=Ayushh.vscode-anchor) + vscode extension for Anchor (Solana's Sealevel runtime Framework). ![vscode-anchor](https://slate.textile.io/ipfs/bafkreigl2tx7oi5e7o4e73a4rbqjqb5kqtktfdepdx5rwxlunt7viovw6u) ## Usage -- Install the extension from the [marketplace](https://marketplace.visualstudio.com/items?itemName=vscode.anchor) +- Install the extension from the [marketplace](https://marketplace.visualstudio.com/items?itemName=Ayushh.vscode-anchor) - Press ```⌘ + shift + p``` or ```ctrl + shift + p``` to open command panel and search for 'Anchor:' - Check program and tests view inside container, click on anchor logo to focus. ## Requirements @@ -28,13 +30,14 @@ vscode extension for Anchor (Solana's Sealevel runtime Framework). Arigato Senséi for visting here. Donàte USDC or SOL to suppowt actiiive deweplopment of this extension. - - ## Contributing We are actively accepting contributions to this extension. - Please feel free to open an issue or pull request on [Github](https://github.com/heyAyushh/vscode-anchor/issues) -- If you are a developer, See [CONTRIBUTING.md](.github/CONTRIBUTING.md) and submit a pull request. +- If you are a developer, See [CONTRIBUTING.md](https://github.com/heyAyushh/vscode-anchor/blob/main/.github/CONTRIBUTING.md) and submit a pull request. + +Special Thanks to all Contributors ❤️: -Special Thanks to all Contributors: -![Contributors](https://contrib.rocks/preview?repo=heyayushh%2Fvscode-anchor) + + + diff --git a/package.json b/package.json index 4c5875e..3755cef 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,23 @@ { "name": "vscode-anchor", - "displayName": "anchor", - "publisher": "heyAyushh", + "displayName": "Anchor", + "publisher": "Ayushh", "description": "vscode extension for Anchor (Solana's Sealevel runtime Framework)", - "version": "0.1.2", + "version": "0.2.2", + "icon": "static/marketplace-logo.png", + "homepage": "https://github.com/microsoft/vscode-anchor/blob/main/README.md", + "galleryBanner": { + "color": "#1d1d1d", + "theme": "dark" + }, + "repository": { + "type": "git", + "url": "https://github.com/heyAyushh/vscode-anchor" + }, + "bugs": { + "url": "https://github.com/heyAyushh/vscode-anchor/issues", + "email": "heyayush@live.com" + }, "engines": { "vscode": "^1.63.0" }, diff --git a/src/commands/scaffold.ts b/src/commands/scaffold.ts index 9f4d626..5f73708 100644 --- a/src/commands/scaffold.ts +++ b/src/commands/scaffold.ts @@ -1,4 +1,4 @@ -import { execShell, spawnChan } from "../helpers/spawnExec"; +import { spawnChan } from "../helpers/spawnExec"; import * as vscode from 'vscode'; import { EXT_NAME } from "../config"; import chan from "../helpers/outputChannel"; @@ -27,9 +27,9 @@ const anchorInit = () => vscode.commands.registerCommand( if (item && name) { if (item === 'init (default)') { spawnChan(`anchor init ${name}`, 'Scaffolding Anchor Project'); - } else if ('Synthetify/solana-template') { + } else if (item === 'Synthetify/solana-template') { try { - await execShell(`git clone https://github.com/${item} ${name} && rm -rf ${name}/.git`); + spawnChan(`npx degit https://github.com/${item} ${name}`, 'Scaffolding Anchor Project'); vscode.window.showInformationMessage(`Anchor ⚓: init Synthetify template completed!`); } catch (err) { vscode.window.showErrorMessage(`Anchor ⚓: init Synthetify template faled!`); diff --git a/src/views/programs.ts b/src/views/programs.ts index 127b99b..5bdc2d0 100644 --- a/src/views/programs.ts +++ b/src/views/programs.ts @@ -33,7 +33,7 @@ export class ProgramsProvider implements vscode.TreeDataProvider { if (this.pathExists(programsPath)) { return Promise.resolve(this.getProgramItems(programsPath)); } else { - vscode.window.showInformationMessage('Workspace has no programs folder'); + // vscode.window.showInformationMessage('Workspace has no programs folder'); return Promise.resolve([]); } } diff --git a/src/views/tests.ts b/src/views/tests.ts index c619be6..2e1eb02 100644 --- a/src/views/tests.ts +++ b/src/views/tests.ts @@ -32,7 +32,7 @@ export class TestsProvider implements vscode.TreeDataProvider { if (this.pathExists(testsPath)) { return Promise.resolve(this.getTestItems(testsPath)); } else { - vscode.window.showInformationMessage('Workspace has no tests folder'); + // vscode.window.showInformationMessage('Workspace has no tests folder'); return Promise.resolve([]); } } diff --git a/static/marketplace-logo.png b/static/marketplace-logo.png new file mode 100644 index 0000000000000000000000000000000000000000..62fda6e6b798bcee261c1e01702dc1870af16d8b GIT binary patch literal 4799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