Skip to content

Commit 8fb62af

Browse files
committed
Open-source extension
0 parents  commit 8fb62af

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+29012
-0
lines changed

.eslintrc.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"ecmaVersion": 6,
6+
"sourceType": "module"
7+
},
8+
"plugins": [
9+
"@typescript-eslint"
10+
],
11+
"rules": {
12+
"@typescript-eslint/naming-convention": "warn",
13+
"@typescript-eslint/semi": "warn",
14+
"curly": "warn",
15+
"eqeqeq": "warn",
16+
"no-throw-literal": "warn",
17+
"semi": "off"
18+
},
19+
"ignorePatterns": [
20+
"out",
21+
"dist",
22+
"**/*.d.ts"
23+
]
24+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: 🐞 Bug Report
2+
description: Create a bug report
3+
labels: ["bug"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for using the extension and taking the time to fill out this bug report!
9+
- type: textarea
10+
attributes:
11+
label: Describe the Bug
12+
description: A clear description of what the bug is. Please make sure to list steps to reproduce your issue. Please share your OS, VS Code details as well. You could details of your VS Code via (Help->About)
13+
placeholder: |
14+
- Steps to reproduce the bug
15+
- ...
16+
- OS and version: [i.e. macOS Ventura (version 13)]
17+
- VS Code details: [i.e. 1.76.0]
18+
validations:
19+
required: true
20+
- type: textarea
21+
attributes:
22+
label: "Please tell us if you have customized any of the extension settings or whether you are using the defaults."
23+
description: Please list whether you use `Browser Auto-login` or `OpenAI API Key` method. Which model you are using i.e. `gpt-3.5-turbo` and the parameters you may have customized in your settings. You could find all of the customized settings in your `Settings.json`
24+
validations:
25+
required: true
26+
- type: textarea
27+
attributes:
28+
label: Additional context
29+
description: Add any other context about the problem here. Please provide screenshots or screen recordings if possible.
30+
validations:
31+
required: false
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: 💡 Feature Request
2+
description: Suggest an idea
3+
labels: ["enhancement"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for using the extension and considering suggesting an idea
9+
- type: textarea
10+
attributes:
11+
label: Describe the feature
12+
description: What would you like to see added / supported?
13+
validations:
14+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 💭 Join the Discord
4+
url: https://discord.gg/GuEdNDHQaM
5+
about: Ask questions and discuss with other community members

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
out
2+
dist
3+
node_modules
4+
.vscode-test/
5+
*.vsix
6+
!node_modules/chatgpt/build/index.js

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry=https://registry.npmjs.org/

.vscode/extensions.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
4+
"recommendations": [
5+
"dbaeumer.vscode-eslint",
6+
"esbenp.prettier-vscode",
7+
"connor4312.esbuild-problem-matchers"
8+
]
9+
}

.vscode/launch.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// A launch configuration that compiles the extension and then opens it inside a new window
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
{
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Run Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"args": [
13+
"--extensionDevelopmentPath=${workspaceFolder}"
14+
],
15+
"outFiles": [
16+
"${workspaceFolder}/out/**/*.js"
17+
],
18+
"preLaunchTask": "npm: watch"
19+
},
20+
{
21+
"name": "Extension Tests",
22+
"type": "extensionHost",
23+
"request": "launch",
24+
"args": [
25+
"--extensionDevelopmentPath=${workspaceFolder}",
26+
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
27+
],
28+
"outFiles": [
29+
"${workspaceFolder}/out/test/**/*.js"
30+
],
31+
"preLaunchTask": "${defaultBuildTask}"
32+
}
33+
]
34+
}

.vscode/settings.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"files.exclude": {
3+
"out": false
4+
},
5+
"search.exclude": {
6+
"out": true
7+
},
8+
"typescript.tsc.autoDetect": "off",
9+
"editor.formatOnSave": true,
10+
"editor.formatOnPaste": true,
11+
"editor.tabSize": 4,
12+
"editor.insertSpaces": true,
13+
"editor.codeActionsOnSave": {
14+
"source.fixAll": true,
15+
"source.organizeImports": true
16+
},
17+
"javascript.format.semicolons": "insert",
18+
"typescript.format.semicolons": "insert",
19+
"javascript.preferences.quoteStyle": "double",
20+
"[typescript]": {
21+
"editor.defaultFormatter": "vscode.typescript-language-features",
22+
"typescript.preferences.quoteStyle": "double",
23+
},
24+
"[javascript]": {
25+
"editor.defaultFormatter": "vscode.typescript-language-features"
26+
},
27+
"[json]": {
28+
"editor.defaultFormatter": "vscode.json-language-features"
29+
},
30+
"[jsonc]": {
31+
"editor.defaultFormatter": "vscode.json-language-features"
32+
},
33+
"[css]": {
34+
"editor.defaultFormatter": "vscode.css-language-features"
35+
},
36+
}

.vscode/tasks.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "npm",
6+
"script": "watch",
7+
"group": "build",
8+
"problemMatcher": "$esbuild-watch",
9+
"isBackground": true,
10+
"label": "npm: watch",
11+
},
12+
{
13+
"type": "npm",
14+
"script": "build",
15+
"group": "build",
16+
"problemMatcher": "$esbuild",
17+
"label": "npm: build",
18+
}
19+
]
20+
}

0 commit comments

Comments
 (0)