Skip to content

Commit

Permalink
🎉 enjoy
Browse files Browse the repository at this point in the history
  • Loading branch information
heyAyushh committed Jan 28, 2022
1 parent c91a46b commit e4e4160
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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).

File renamed without changes.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)
<a href="https://github.com/heyayushh/vscode-anchor/graphs/contributors">
<img src="https://contrib.rocks/image?repo=heyayushh/vscode-anchor" />
</a>
20 changes: 17 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]"
},
"engines": {
"vscode": "^1.63.0"
},
Expand Down
6 changes: 3 additions & 3 deletions src/commands/scaffold.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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!`);
Expand Down
2 changes: 1 addition & 1 deletion src/views/programs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class ProgramsProvider implements vscode.TreeDataProvider<ProgramItem> {
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([]);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class TestsProvider implements vscode.TreeDataProvider<TestItem> {
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([]);
}
}
Expand Down
Binary file added static/marketplace-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e4e4160

Please sign in to comment.