Skip to content

Commit 7db7fd5

Browse files
RI-6509 - Create a free db vscode (#252)
* #RI-6509 - Create a free db vscode * #RI-6509 - Create a free db vscode * #RI-6509 - Create a free db vscode
1 parent 38b951b commit 7db7fd5

File tree

183 files changed

+4679
-87
lines changed

Some content is hidden

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

183 files changed

+4679
-87
lines changed

.env

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RI_APP_PORT=5541
88
RI_APP_VERSION='1.2.0'
99
RI_APP_PREFIX='api'
1010
RI_APP_FOLDER_NAME='.redis-for-vscode'
11-
RI_CDN_PATH='https://s3.amazonaws.com/redisinsight.download/public/releases/2.64.0/web-mini'
11+
RI_CDN_PATH='https://s3.amazonaws.com/redisinsight.test/public/pre-release/2.66.0/web-mini'
1212
RI_WITHOUT_BACKEND=false
1313
# RI_WITHOUT_BACKEND=true
1414
RI_STDOUT_LOGGER=false
@@ -18,4 +18,6 @@ RI_BUILD_TYPE='VS_CODE'
1818
RI_ANALYTICS_START_EVENTS=true
1919
RI_AGREEMENTS_PATH='../../webviews/resources/agreements-spec.json'
2020
RI_ENCRYPTION_KEYTAR_SERVICE="redis-for-vscode"
21+
RI_SOCKETS_CORS=true
2122
# RI_SEGMENT_WRITE_KEY='SEGMENT_WRITE_KEY'
23+

.github/workflows/pipeline-build-linux.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,19 @@ jobs:
3434
- name: Download backend
3535
uses: ./.github/actions/download-backend
3636

37-
- name: Set RI_SEGMENT_WRITE_KEY to .env file
38-
run: echo "RI_SEGMENT_WRITE_KEY='${{ env.RI_SEGMENT_WRITE_KEY }}'" >> ${{ env.envFile }}
37+
- name: Configure Environment Variables
38+
run: |
39+
{
40+
echo "RI_SEGMENT_WRITE_KEY=${{ env.RI_SEGMENT_WRITE_KEY }}"
41+
echo "RI_CLOUD_IDP_AUTHORIZE_URL=${{ env.RI_CLOUD_IDP_AUTHORIZE_URL }}"
42+
echo "RI_CLOUD_IDP_TOKEN_URL=${{ env.RI_CLOUD_IDP_TOKEN_URL }}"
43+
echo "RI_CLOUD_IDP_REVOKE_TOKEN_URL=${{ env.RI_CLOUD_IDP_REVOKE_TOKEN_URL }}"
44+
echo "RI_CLOUD_IDP_REDIRECT_URI=${{ env.RI_CLOUD_IDP_REDIRECT_URI }}"
45+
echo "RI_CLOUD_IDP_ISSUER=${{ env.RI_CLOUD_IDP_ISSUER }}"
46+
echo "RI_CLOUD_IDP_CLIENT_ID=${{ env.RI_CLOUD_IDP_CLIENT_ID }}"
47+
echo "RI_CLOUD_IDP_GOOGLE_ID=${{ env.RI_CLOUD_IDP_GOOGLE_ID }}"
48+
echo "RI_CLOUD_IDP_GH_ID=${{ env.RI_CLOUD_IDP_GH_ID }}"
49+
} >> "${{ env.envFile }}"
3950
4051
- name: Build linux package (production)
4152
if: inputs.environment == 'production'
@@ -59,3 +70,11 @@ jobs:
5970
envFile: '.env'
6071
packagePath: './release/redis-for-vscode-extension-linux-x64.vsix'
6172
RI_SEGMENT_WRITE_KEY: ${{ secrets.RI_SEGMENT_WRITE_KEY }}
73+
RI_CLOUD_IDP_AUTHORIZE_URL: ${{ secrets.RI_CLOUD_IDP_AUTHORIZE_URL }}
74+
RI_CLOUD_IDP_TOKEN_URL: ${{ secrets.RI_CLOUD_IDP_TOKEN_URL }}
75+
RI_CLOUD_IDP_REVOKE_TOKEN_URL: ${{ secrets.RI_CLOUD_IDP_REVOKE_TOKEN_URL }}
76+
RI_CLOUD_IDP_REDIRECT_URI: ${{ secrets.RI_CLOUD_IDP_REDIRECT_URI }}
77+
RI_CLOUD_IDP_ISSUER: ${{ secrets.RI_CLOUD_IDP_ISSUER }}
78+
RI_CLOUD_IDP_CLIENT_ID: ${{ secrets.RI_CLOUD_IDP_CLIENT_ID }}
79+
RI_CLOUD_IDP_GOOGLE_ID: ${{ secrets.RI_CLOUD_IDP_GOOGLE_ID }}
80+
RI_CLOUD_IDP_GH_ID: ${{ secrets.RI_CLOUD_IDP_GH_ID }}

.github/workflows/pipeline-build-macos.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,19 @@ jobs:
2727
- name: Install all libs and dependencies
2828
uses: ./.github/actions/install-all-build-libs
2929

30-
- name: Set RI_SEGMENT_WRITE_KEY to .env file
31-
run: echo "RI_SEGMENT_WRITE_KEY='${{ env.RI_SEGMENT_WRITE_KEY }}'" >> ${{ env.envFile }}
30+
- name: Configure Environment Variables
31+
run: |
32+
{
33+
echo "RI_SEGMENT_WRITE_KEY=${{ env.RI_SEGMENT_WRITE_KEY }}"
34+
echo "RI_CLOUD_IDP_AUTHORIZE_URL=${{ env.RI_CLOUD_IDP_AUTHORIZE_URL }}"
35+
echo "RI_CLOUD_IDP_TOKEN_URL=${{ env.RI_CLOUD_IDP_TOKEN_URL }}"
36+
echo "RI_CLOUD_IDP_REVOKE_TOKEN_URL=${{ env.RI_CLOUD_IDP_REVOKE_TOKEN_URL }}"
37+
echo "RI_CLOUD_IDP_REDIRECT_URI=${{ env.RI_CLOUD_IDP_REDIRECT_URI }}"
38+
echo "RI_CLOUD_IDP_ISSUER=${{ env.RI_CLOUD_IDP_ISSUER }}"
39+
echo "RI_CLOUD_IDP_CLIENT_ID=${{ env.RI_CLOUD_IDP_CLIENT_ID }}"
40+
echo "RI_CLOUD_IDP_GOOGLE_ID=${{ env.RI_CLOUD_IDP_GOOGLE_ID }}"
41+
echo "RI_CLOUD_IDP_GH_ID=${{ env.RI_CLOUD_IDP_GH_ID }}"
42+
} >> "${{ env.envFile }}"
3243
3344
- name: Download backend x64
3445
uses: ./.github/actions/download-backend
@@ -76,3 +87,11 @@ jobs:
7687
envFile: '.env'
7788
packagePath: './release/redis-for-vscode-extension-mac'
7889
RI_SEGMENT_WRITE_KEY: ${{ secrets.RI_SEGMENT_WRITE_KEY }}
90+
RI_CLOUD_IDP_AUTHORIZE_URL: ${{ secrets.RI_CLOUD_IDP_AUTHORIZE_URL }}
91+
RI_CLOUD_IDP_TOKEN_URL: ${{ secrets.RI_CLOUD_IDP_TOKEN_URL }}
92+
RI_CLOUD_IDP_REVOKE_TOKEN_URL: ${{ secrets.RI_CLOUD_IDP_REVOKE_TOKEN_URL }}
93+
RI_CLOUD_IDP_REDIRECT_URI: ${{ secrets.RI_CLOUD_IDP_REDIRECT_URI }}
94+
RI_CLOUD_IDP_ISSUER: ${{ secrets.RI_CLOUD_IDP_ISSUER }}
95+
RI_CLOUD_IDP_CLIENT_ID: ${{ secrets.RI_CLOUD_IDP_CLIENT_ID }}
96+
RI_CLOUD_IDP_GOOGLE_ID: ${{ secrets.RI_CLOUD_IDP_GOOGLE_ID }}
97+
RI_CLOUD_IDP_GH_ID: ${{ secrets.RI_CLOUD_IDP_GH_ID }}

.github/workflows/pipeline-build-windows.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,17 @@ jobs:
2424
- name: Download backend
2525
uses: ./.github/actions/download-backend
2626

27-
- name: Set RI_SEGMENT_WRITE_KEY to .env file
28-
run: echo "RI_SEGMENT_WRITE_KEY='${{ env.RI_SEGMENT_WRITE_KEY }}'" >> ${{ env.envFile }}
27+
- name: Configure Environment Variables
28+
run: |
29+
echo "RI_SEGMENT_WRITE_KEY=${{ env.RI_SEGMENT_WRITE_KEY }}" >> ${{ env.envFile }}
30+
echo "RI_CLOUD_IDP_AUTHORIZE_URL=${{ env.RI_CLOUD_IDP_AUTHORIZE_URL }}" >> ${{ env.envFile }}
31+
echo "RI_CLOUD_IDP_TOKEN_URL=${{ env.RI_CLOUD_IDP_TOKEN_URL }}" >> ${{ env.envFile }}
32+
echo "RI_CLOUD_IDP_REVOKE_TOKEN_URL=${{ env.RI_CLOUD_IDP_REVOKE_TOKEN_URL }}" >> ${{ env.envFile }}
33+
echo "RI_CLOUD_IDP_REDIRECT_URI=${{ env.RI_CLOUD_IDP_REDIRECT_URI }}" >> ${{ env.envFile }}
34+
echo "RI_CLOUD_IDP_ISSUER=${{ env.RI_CLOUD_IDP_ISSUER }}" >> ${{ env.envFile }}
35+
echo "RI_CLOUD_IDP_CLIENT_ID=${{ env.RI_CLOUD_IDP_CLIENT_ID }}" >> ${{ env.envFile }}
36+
echo "RI_CLOUD_IDP_GOOGLE_ID=${{ env.RI_CLOUD_IDP_GOOGLE_ID }}" >> ${{ env.envFile }}
37+
echo "RI_CLOUD_IDP_GH_ID=${{ env.RI_CLOUD_IDP_GH_ID }}" >> ${{ env.envFile }}
2938
3039
- name: Build windows package (production)
3140
if: inputs.environment == 'production'
@@ -49,3 +58,11 @@ jobs:
4958
envFile: '.env'
5059
packagePath: './release/redis-for-vscode-extension-win-x64.vsix'
5160
RI_SEGMENT_WRITE_KEY: ${{ secrets.RI_SEGMENT_WRITE_KEY }}
61+
RI_CLOUD_IDP_AUTHORIZE_URL: ${{ secrets.RI_CLOUD_IDP_AUTHORIZE_URL }}
62+
RI_CLOUD_IDP_TOKEN_URL: ${{ secrets.RI_CLOUD_IDP_TOKEN_URL }}
63+
RI_CLOUD_IDP_REVOKE_TOKEN_URL: ${{ secrets.RI_CLOUD_IDP_REVOKE_TOKEN_URL }}
64+
RI_CLOUD_IDP_REDIRECT_URI: ${{ secrets.RI_CLOUD_IDP_REDIRECT_URI }}
65+
RI_CLOUD_IDP_ISSUER: ${{ secrets.RI_CLOUD_IDP_ISSUER }}
66+
RI_CLOUD_IDP_CLIENT_ID: ${{ secrets.RI_CLOUD_IDP_CLIENT_ID }}
67+
RI_CLOUD_IDP_GOOGLE_ID: ${{ secrets.RI_CLOUD_IDP_GOOGLE_ID }}
68+
RI_CLOUD_IDP_GH_ID: ${{ secrets.RI_CLOUD_IDP_GH_ID }}

l10n/bundle.l10n.json

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,40 @@
1616
"Create new database": "Create new database",
1717
"Recommended": "Recommended",
1818
"Page was not found": "Page was not found",
19+
"Edit Redis database": "Edit Redis database",
20+
"Add Redis database": "Add Redis database",
1921
"Settings": "Settings",
2022
"Delimiter": "Delimiter",
23+
"Use a pre-selected provider and region": "Use a pre-selected provider and region",
24+
"The database will be automatically created using a pre-selected provider and region.": "The database will be automatically created using a pre-selected provider and region.",
25+
"You can change it by signing in to Redis Cloud.": "You can change it by signing in to Redis Cloud.",
26+
"Invalid email": "Invalid email",
27+
"Email must be in the format": "Email must be in the format",
28+
"email@example.com without spaces": "email@example.com without spaces",
29+
"Single Sign-On": "Single Sign-On",
30+
"Email": "Email",
31+
"Back": "Back",
32+
"By signing up, you acknowledge that you agree:": "By signing up, you acknowledge that you agree:",
33+
"to our ": "to our ",
34+
"Cloud Terms of Service": "Cloud Terms of Service",
35+
" and ": " and ",
36+
"Privacy Policy": "Privacy Policy",
37+
"that Redis for VS Code will generate Redis Cloud API account and user keys, and store them locally on your machine": "that Redis for VS Code will generate Redis Cloud API account and user keys, and store them locally on your machine",
38+
"that usage data will be enabled to help us understand and improve how Redis for VS Code features are used": "that usage data will be enabled to help us understand and improve how Redis for VS Code features are used",
39+
"Structured querying and full-text search": "Structured querying and full-text search",
40+
"Native support for JSON": "Native support for JSON",
41+
"Scalable and fully managed": "Scalable and fully managed",
42+
"Free database to get started immediately": "Free database to get started immediately",
43+
"Cloud": "Cloud",
44+
"Get started with": "Get started with",
45+
"Free Cloud database": "Free Cloud database",
46+
"Get your": "Get your",
47+
"The database will be created automatically and can be changed from Redis Cloud.": "The database will be created automatically and can be changed from Redis Cloud.",
48+
"Create": "Create",
49+
"Includes native support for JSON, Query and Search and more.": "Includes native support for JSON, Query and Search and more.",
50+
"Get free Redis Cloud database": "Get free Redis Cloud database",
51+
"Create free Redis Cloud database": "Create free Redis Cloud database",
52+
"Try Redis Cloud database: your ultimate Redis starting point": "Try Redis Cloud database: your ultimate Redis starting point",
2153
"key(s)": "key(s)",
2254
"({0}{1} Scanned)": "({0}{1} Scanned)",
2355
"All Key Types": "All Key Types",
@@ -94,8 +126,6 @@
94126
"To optimize your experience, Redis for VS Code uses third-party tools.\n All data collected is anonymized and will not be used for any purpose without your consent.": "To optimize your experience, Redis for VS Code uses third-party tools.\n All data collected is anonymized and will not be used for any purpose without your consent.",
95127
"To use Redis for VS Code, please accept the terms and conditions: ": "To use Redis for VS Code, please accept the terms and conditions: ",
96128
"Server Side Public License": "Server Side Public License",
97-
"Add Redis database": "Add Redis database",
98-
"Edit Redis database": "Edit Redis database",
99129
"Members": "Members",
100130
"Add Key": "Add Key",
101131
"value": "value",
@@ -254,6 +284,23 @@
254284
"Upload": "Upload",
255285
"The entire database has been scanned.": "The entire database has been scanned.",
256286
"Scan more": "Scan more",
287+
"Authenticating…": "Authenticating…",
288+
"This may take several seconds, but it is totally worth it!": "This may take several seconds, but it is totally worth it!",
289+
"Processing Cloud API keys…": "Processing Cloud API keys…",
290+
"Processing Cloud subscriptions…": "Processing Cloud subscriptions…",
291+
"Creating a free Cloud database…": "Creating a free Cloud database…",
292+
"Importing a free Cloud database…": "Importing a free Cloud database…",
293+
"This may take several minutes, but it is totally worth it!": "This may take several minutes, but it is totally worth it!",
294+
"You can now use your Redis Stack database in Redis Cloud": "You can now use your Redis Stack database in Redis Cloud",
295+
" with pre-loaded sample data": " with pre-loaded sample data",
296+
"Congratulations!": "Congratulations!",
297+
"Notice: ": "Notice: ",
298+
"the database will be deleted after 15 days of inactivity.": "the database will be deleted after 15 days of inactivity.",
299+
"You already have a free Redis Cloud subscription.": "You already have a free Redis Cloud subscription.",
300+
"Do you want to import your existing database into Redis Insight?": "Do you want to import your existing database into Redis Insight?",
301+
"Import": "Import",
302+
"Your subscription does not have a free Redis Cloud database.": "Your subscription does not have a free Redis Cloud database.",
303+
"Do you want to create a free database in your existing subscription?": "Do you want to create a free database in your existing subscription?",
257304
"Keys are the foundation of Redis.": "Keys are the foundation of Redis.",
258305
"Add key": "Add key",
259306
"No results found.": "No results found.",

package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@
106106
"title": "Add Redis database",
107107
"category": "Redis for VS Code",
108108
"icon": "$(add)"
109+
},
110+
{
111+
"command": "RedisForVSCode.showExtensionOutput",
112+
"title": "Show extension output",
113+
"category": "Redis for VS Code",
114+
"icon": "$(add)"
109115
}
110116
],
111117
"menus": {
@@ -138,7 +144,7 @@
138144
"scripts": {
139145
"vscode:prepublish": "yarn compile && cross-env NODE_ENV=production BUILD_EXIT=true yarn build",
140146
"compile": "tsc -p ./",
141-
"postinstall": "patch-package",
147+
"postinstall": "patch-package && yarn download:backend",
142148
"build": "cross-env NODE_ENV=production vite build",
143149
"download:backend": "tsc ./scripts/downloadBackend.ts && node ./scripts/downloadBackend.js",
144150
"dev": "vite dev",
@@ -228,9 +234,11 @@
228234
"postcss-nested": "^6.0.1",
229235
"postinstall-postinstall": "^2.1.0",
230236
"prettier": "^3.0.0",
237+
"react-element-to-jsx-string": "^17.0.0",
231238
"react-intl": "^6.5.1",
232239
"react-refresh": "^0.14.0",
233240
"sass": "^1.69.5",
241+
"socket.io-mock": "^1.3.2",
234242
"source-map-support": "^0.5.21",
235243
"supertest": "^6.3.3",
236244
"tailwindcss": "^3.4.3",
@@ -291,11 +299,13 @@
291299
"react-router-dom": "^6.17.0",
292300
"react-select": "^5.8.3",
293301
"react-spinners": "^0.13.8",
302+
"react-toastify": "^11.0.3",
294303
"react-virtualized": "^9.22.5",
295304
"react-virtualized-auto-sizer": "^1.0.20",
296305
"react-vtree": "^3.0.0-beta.3",
297306
"react-window": "^1.8.6",
298307
"reactjs-popup": "^2.0.6",
308+
"socket.io-client": "^4.8.1",
299309
"ws": "^8.17.1",
300310
"zustand": "^4.5.4"
301311
}

src/WebViewProvider.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as vscode from 'vscode'
2-
import { getNonce, handleMessage } from './utils'
2+
import { getNonce } from './utils/utils'
33
import { getUIStorage } from './lib'
4+
import { handleMessage } from './utils/handleMessage'
45

56
export class WebViewProvider implements vscode.WebviewViewProvider {
67
_doc?: vscode.TextDocument

src/Webview.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import * as vscode from 'vscode'
2-
import { getNonce, handleMessage } from './utils'
2+
import { getNonce } from './utils/utils'
33
import { getUIStorage } from './lib'
4+
import { EXTENSION_NAME } from './constants'
5+
import { handleMessage } from './utils/handleMessage'
46

57
type WebviewOptions = {
68
context?: vscode.ExtensionContext
@@ -50,8 +52,8 @@ abstract class Webview {
5052
}
5153
}
5254

53-
protected handleMessage(message: any): void {
54-
this._opts?.handleMessage?.(message)
55+
protected async handleMessage(message: any): Promise<void> {
56+
handleMessage(message)
5557
}
5658

5759
protected _getContent(webview: vscode.Webview) {
@@ -103,7 +105,7 @@ abstract class Webview {
103105
window.ri=${uiStorageStringify};
104106
</script>
105107
106-
<title>Redis for VS Code Webview</title>
108+
<title>${EXTENSION_NAME} Webview</title>
107109
</head>
108110
<body>
109111
<div id="root" data-route="${this._opts.route}"></div>

src/constants.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,16 @@ export enum ViewId {
1010

1111
export const MAX_TITLE_KEY_LENGTH = 30
1212
export const EXTENSION_ID = 'Redis.redis-for-vscode'
13+
export const EXTENSION_NAME = 'Redis for VS Code'
1314

1415
export const EXTERNAL_LINKS = {
1516
releaseNotes: 'https://github.com/RedisInsight/Redis-for-VS-Code/releases',
1617
}
18+
19+
export const DEFAULT_USER_ID = '1'
20+
export const DEFAULT_SESSION_ID = '1'
21+
22+
export enum UrlHandlingActions {
23+
OAuthCallback = '/cloud/oauth/callback',
24+
Connect = '/databases/connect',
25+
}

src/extension.ts

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable import/no-mutable-exports */
12
import * as vscode from 'vscode'
23
import * as dotenv from 'dotenv'
34
import * as path from 'path'
@@ -9,12 +10,15 @@ import { WebViewProvider } from './WebViewProvider'
910
import { getTitleForKey, handleMessage } from './utils'
1011
import { ViewId } from './constants'
1112
import { logger } from './logger'
13+
import { registerUriHandler } from './utils/handleUri'
1214

1315
dotenv.config({ path: path.join(__dirname, '..', '.env') })
1416

15-
let myStatusBarItem: vscode.StatusBarItem
17+
export let sidebarProvider: WebViewProvider
18+
export let panelProvider: WebViewProvider
19+
1620
export async function activate(context: vscode.ExtensionContext) {
17-
logger.log('Extension activated')
21+
logger.logCore('Extension activated')
1822
await initWorkspaceState(context)
1923
checkVersionUpdate()
2024

@@ -27,24 +31,13 @@ export async function activate(context: vscode.ExtensionContext) {
2731
}
2832
}
2933
} catch (error) {
30-
logger.log(`startBackend error: ${error}`)
34+
logger.logCore(`startBackend error: ${error}`)
3135
}
32-
const sidebarProvider = new WebViewProvider('sidebar', context)
33-
const panelProvider = new WebViewProvider('cli', context)
3436

35-
// Create a status bar item with a text and an icon
36-
myStatusBarItem = vscode.window.createStatusBarItem(
37-
vscode.StatusBarAlignment.Left,
38-
100,
39-
)
40-
myStatusBarItem.text = 'Redis for VS Code' // Use the desired icon from the list
41-
myStatusBarItem.tooltip = 'Click me for more info'
42-
// myStatusBarItem.command = 'RedisForVSCode.openPage' // Command to execute on click
43-
// Show the status bar item
44-
// myStatusBarItem.show()
37+
sidebarProvider = new WebViewProvider('sidebar', context)
38+
panelProvider = new WebViewProvider('cli', context)
4539

4640
context.subscriptions.push(
47-
myStatusBarItem,
4841
vscode.window.registerWebviewViewProvider('ri-sidebar', sidebarProvider),
4942
vscode.window.registerWebviewViewProvider('ri-panel', panelProvider, { webviewOptions: { retainContextWhenHidden: true } }),
5043

@@ -212,13 +205,23 @@ export async function activate(context: vscode.ExtensionContext) {
212205
vscode.commands.registerCommand('RedisForVSCode.updateSettingsDelimiter', (args) => {
213206
sidebarProvider.view?.webview.postMessage({ action: 'UpdateSettingsDelimiter', data: args.data })
214207
}),
208+
209+
vscode.commands.registerCommand('RedisForVSCode.showExtensionOutput', () => {
210+
logger.show()
211+
}),
212+
213+
vscode.commands.registerCommand('RedisForVSCode.refreshDatabases', () => {
214+
sidebarProvider.view?.webview.postMessage({ action: 'RefreshTree' })
215+
}),
215216
)
217+
218+
registerUriHandler()
216219
}
217220

218221
export function deactivate() {
219222
try {
220223
getBackendGracefulShutdown()
221224
} catch (error) {
222-
logger.log(`Deactivating error: ${error}`)
225+
logger.logCore(`Deactivating error: ${error}`)
223226
}
224227
}

0 commit comments

Comments
 (0)