Skip to content

Commit

Permalink
Added configs to publish to OpenVSX
Browse files Browse the repository at this point in the history
  • Loading branch information
hieunc229 committed Jul 24, 2021
1 parent 2599ddb commit 584a681
Show file tree
Hide file tree
Showing 7 changed files with 875 additions and 496 deletions.
10 changes: 10 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
_out
.vscode
node_modules
src
.eslintignore
.eslintrc.js
.gitignore
package-lock.json
tsconfig.json
webpack.config.js
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
![Captain Stack](./logo.svg)
![Captain Stack](./icon.png)

# Captain Stack — Code suggestion for VSCode


This feature is somewhat similar to [Github Copilot](https://copilot.github.com/)'s code suggestion. But instead of using AI, it sends your search query to Google, then retrieves StackOverflow answers and autocompletes them for you.

Have questions? [Join our Discord server](https://discord.gg/5F5tDsWFmp) [![Discord Chat](https://img.shields.io/discord/864164585070526475.svg)](https://discord.gg/5F5tDsWFmp)

Have questions? [Join our Discord server](https://discord.gg/5F5tDsWFmp)
---

![Demo Video](./demo.gif)
Expand Down
34 changes: 22 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"enableProposedApi": true,
"name": "copilot-clone",
"name": "captain-stack",
"displayName": "Captain Stack",
"description": "Find snippets codes from Stackoverflow",
"version": "0.0.2",
"publisher": "hieunc229",
"icon": "https://github.com/hieunc229/copilot-clone/blob/master/icon.png",
"repository": "https://github.com/Microsoft/vscode-extension-samples",
"publisher": "captain-stack",
"icon": "icon.png",
"repository": "https://github.com/hieunc229/copilot-clone",
"engines": {
"vscode": "^1.34.0"
},
Expand All @@ -21,38 +21,48 @@
"contributes": {
"commands": [
{
"command": "extension.copilot-clone-settings",
"title": "Copilot-clone Settings"
"command": "extension.captain-stack-settings",
"title": "Captain Stack Settings"
}
],
"menus": {
"editor/inlineCompletions/actions": [
{
"command": "extension.copilot-clone-settings"
"command": "extension.captain-stack-settings"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"lint": "eslint . --ext .ts,.tsx",
"watch": "tsc -watch -p ./",
"download-api": "vscode-dts dev",
"postdownload-api": "vscode-dts main",
"postinstall": "npm run download-api"
"postinstall": "npm run download-api",
"vscode:prepublish": "webpack --mode production",
"webpack": "webpack --mode development",
"webpack-dev": "webpack --mode development --watch",
"test-compile": "tsc -p ./"
},
"devDependencies": {
"@types/node": "^12.12.0",
"@types/node": "^14.15.0",
"@types/node-fetch": "^2.5.10",
"@typescript-eslint/eslint-plugin": "^4.16.0",
"@typescript-eslint/parser": "^4.16.0",
"bufferutil": "^4.0.3",
"esbuild": "^0.12.15",
"eslint": "^7.21.0",
"node-loader": "^2.0.0",
"ts-loader": "^9.2.3",
"typescript": "^4.2.2",
"vscode-dts": "^0.3.1"
"utf-8-validate": "^5.0.5",
"vscode-dts": "^0.3.1",
"webpack": "^5.46.0",
"webpack-cli": "^4.7.2"
},
"dependencies": {
"@types/jsdom": "^16.2.12",
"canvas": "^2.8.0",
"jsdom": "^16.6.0",
"node-fetch": "^2.6.1"
}
Expand Down
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { search } from './utils/search';

export function activate(context: vscode.ExtensionContext) {
const disposable = vscode.commands.registerCommand(
'extension.copilot-clone-settings',
'extension.captain-stack-settings',
() => {
vscode.window.showInformationMessage('Show settings');
}
Expand Down
Loading

0 comments on commit 584a681

Please sign in to comment.