Skip to content

Commit baee9da

Browse files
Add ChatGPT as an engine, update all deps (#17)
1 parent 2b00eea commit baee9da

File tree

14 files changed

+351
-2374
lines changed

14 files changed

+351
-2374
lines changed

.devcontainer/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node
2+
3+
# Install additional tools
4+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
5+
&& apt-get -y install --no-install-recommends git
6+
7+
# [Optional] Uncomment if you want to install more global node packages
8+
# RUN su node -c "npm install -g <your-package-here>"

.devcontainer/devcontainer.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "VSCode Extension Development",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
6+
"customizations": {
7+
"vscode": {
8+
"extensions": [
9+
"dbaeumer.vscode-eslint",
10+
"esbenp.prettier-vscode",
11+
"ms-vscode.vscode-typescript-next"
12+
],
13+
"settings": {
14+
"typescript.tsdk": "node_modules/typescript/lib",
15+
"editor.formatOnSave": true,
16+
"editor.defaultFormatter": "esbenp.prettier-vscode",
17+
"files.eol": "\n"
18+
}
19+
}
20+
},
21+
"forwardPorts": [],
22+
"postCreateCommand": "npm install",
23+
"remoteUser": "node"
24+
}

.gitignore

Lines changed: 131 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,133 @@
1-
node_modules
2-
test
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
.pnpm-debug.log*
9+
10+
# Diagnostic reports (https://nodejs.org/api/report.html)
11+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12+
13+
# Runtime data
14+
pids
15+
*.pid
16+
*.seed
17+
*.pid.lock
18+
19+
# Directory for instrumented libs generated by jscoverage/JSCover
20+
lib-cov
21+
22+
# Coverage directory used by tools like istanbul
23+
coverage
24+
*.lcov
25+
26+
# nyc test coverage
27+
.nyc_output
28+
29+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30+
.grunt
31+
32+
# Bower dependency directory (https://bower.io/)
33+
bower_components
34+
35+
# node-waf configuration
36+
.lock-wscript
37+
38+
# Compiled binary addons (https://nodejs.org/api/addons.html)
39+
build/Release
40+
41+
# Dependency directories
42+
node_modules/
43+
jspm_packages/
44+
45+
# Snowpack dependency directory (https://snowpack.dev/)
46+
web_modules/
47+
48+
# TypeScript cache
49+
*.tsbuildinfo
50+
51+
# Optional npm cache directory
52+
.npm
53+
54+
# Optional eslint cache
55+
.eslintcache
56+
57+
# Optional stylelint cache
58+
.stylelintcache
59+
60+
# Microbundle cache
61+
.rpt2_cache/
62+
.rts2_cache_cjs/
63+
.rts2_cache_es/
64+
.rts2_cache_umd/
65+
66+
# Optional REPL history
67+
.node_repl_history
68+
69+
# Output of 'npm pack'
70+
*.tgz
71+
72+
# Yarn Integrity file
73+
.yarn-integrity
74+
75+
# dotenv environment variable files
76+
.env
77+
.env.development.local
78+
.env.test.local
79+
.env.production.local
80+
.env.local
81+
82+
# parcel-bundler cache (https://parceljs.org/)
83+
.cache
84+
.parcel-cache
85+
86+
# Next.js build output
87+
.next
388
out
89+
90+
# Nuxt.js build / generate output
91+
.nuxt
92+
dist
93+
94+
# Gatsby files
95+
.cache/
96+
# Comment in the public line in if your project uses Gatsby and not Next.js
97+
# https://nextjs.org/blog/next-9-1#public-directory-support
98+
# public
99+
100+
# vuepress build output
101+
.vuepress/dist
102+
103+
# vuepress v2.x temp and cache directory
104+
.temp
105+
.cache
106+
107+
# Docusaurus cache and generated files
108+
.docusaurus
109+
110+
# Serverless directories
111+
.serverless/
112+
113+
# FuseBox cache
114+
.fusebox/
115+
116+
# DynamoDB Local files
117+
.dynamodb/
118+
119+
# TernJS port file
120+
.tern-port
121+
122+
# Stores VSCode versions used for testing VSCode extensions
123+
.vscode-test
124+
125+
# yarn v2
126+
.yarn/cache
127+
.yarn/unplugged
128+
.yarn/build-state.yml
129+
.yarn/install-state.gz
130+
.pnp.*
4131
*.vsix
5-
package-lock.json
132+
.vscode/settings.json
133+
package-lock.json

.vscode/launch.json

Lines changed: 25 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,27 @@
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
51
{
6-
"version": "0.2.0",
7-
"configurations": [
8-
{
9-
"name": "Run Extension",
10-
"type": "extensionHost",
11-
"request": "launch",
12-
"args": [
13-
"--disable-extensions",
14-
"--extensionDevelopmentPath=${workspaceFolder}"
15-
],
16-
"outFiles": [
17-
"${workspaceFolder}/dist/**/*.js"
18-
],
19-
"preLaunchTask": "${defaultBuildTask}"
20-
},
21-
{
22-
"name": "Extension Tests",
23-
"type": "extensionHost",
24-
"request": "launch",
25-
"args": [
26-
"--extensionDevelopmentPath=${workspaceFolder}",
27-
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
28-
],
29-
"outFiles": [
30-
"${workspaceFolder}/out/test/**/*.js"
31-
],
32-
"preLaunchTask": "npm: test-watch"
33-
}
34-
]
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Run Extension",
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
9+
"outFiles": ["${workspaceFolder}/out/**/*.js"],
10+
"preLaunchTask": "${defaultBuildTask}"
11+
},
12+
{
13+
"name": "Extension Tests",
14+
"type": "extensionHost",
15+
"request": "launch",
16+
"args": [
17+
"--extensionDevelopmentPath=${workspaceFolder}",
18+
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
19+
],
20+
"outFiles": [
21+
"${workspaceFolder}/out/**/*.js",
22+
"${workspaceFolder}/dist/**/*.js"
23+
],
24+
"preLaunchTask": "tasks: watch-tests"
25+
}
26+
]
3527
}

.vscode/tasks.json

Lines changed: 39 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,40 @@
1-
// See https://go.microsoft.com/fwlink/?LinkId=733558
2-
// for the documentation about the tasks.json format
31
{
4-
"version": "2.0.0",
5-
"tasks": [
6-
{
7-
"type": "npm",
8-
"script": "watch",
9-
"problemMatcher": [
10-
"$ts-webpack-watch",
11-
"$tslint-webpack-watch"
12-
],
13-
"isBackground": true,
14-
"presentation": {
15-
"reveal": "never"
16-
},
17-
"group": {
18-
"kind": "build",
19-
"isDefault": true
20-
}
21-
},
22-
{
23-
"type": "npm",
24-
"script": "test-watch",
25-
"problemMatcher": "$tsc-watch",
26-
"isBackground": true,
27-
"presentation": {
28-
"reveal": "never"
29-
},
30-
"group": "build"
31-
}
32-
]
33-
}
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "watch",
6+
"dependsOn": ["npm: watch:tsc", "npm: watch:esbuild"],
7+
"presentation": {
8+
"reveal": "never"
9+
},
10+
"group": {
11+
"kind": "build",
12+
"isDefault": true
13+
}
14+
},
15+
{
16+
"type": "npm",
17+
"script": "watch:esbuild",
18+
"group": "build",
19+
"problemMatcher": "$esbuild-watch",
20+
"isBackground": true,
21+
"label": "npm: watch:esbuild",
22+
"presentation": {
23+
"group": "watch",
24+
"reveal": "never"
25+
}
26+
},
27+
{
28+
"type": "npm",
29+
"script": "watch:tsc",
30+
"group": "build",
31+
"problemMatcher": "$tsc-watch",
32+
"isBackground": true,
33+
"label": "npm: watch:tsc",
34+
"presentation": {
35+
"group": "watch",
36+
"reveal": "never"
37+
}
38+
}
39+
]
40+
}

.yarnrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to the "search" extension are documented in this file.
44

5+
## [2.1.0]
6+
7+
- Added ChatGPT search functionality
8+
59
## [2.0.1]
610

711
- Changed logo
@@ -12,4 +16,4 @@ All notable changes to the "search" extension are documented in this file.
1216

1317
- Converted extension to TypeScript
1418
- Added ability to search VS Code workspace and VS Code Extensions API site
15-
- Added search highlighted word if an explicit selection hasn't been made
19+
- Added search highlighted word if an explicit selection hasn't been made

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Search right from your code: dbatools, microsoft docs, google, vs code workspace
44

55
## Features
66

7-
By default, this extension allows you to search dbatools.io, microsoft docs, google or your VS Code workspace for the highlighted text. The results are displayed in the default browser.
7+
By default, this extension allows you to search dbatools.io, Microsoft Docs, Google, ChatGPT or your VS Code workspace for the highlighted text. The results are displayed in the default browser.
88

99
![dbatools search](resources/search.gif)
1010

@@ -19,4 +19,4 @@ File -> Preferences -> Settings -> type `dbatools`
1919
![dbatools search](resources/settings.gif)
2020

2121
## Issues
22-
If you run into any problems, please log an issue on [GitHub](https://github.com/potatoqualitee/vscode-dbatools-search/issues).
22+
If you run into any problems, please log an issue on [GitHub](https://github.com/potatoqualitee/vscode-dbatools-search/issues).

dist/extension.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/extension.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)