Skip to content

Commit af5e2b7

Browse files
committed
added meta info
1 parent 4bc38cc commit af5e2b7

File tree

8 files changed

+51
-143
lines changed

8 files changed

+51
-143
lines changed

package.json

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,42 @@
11
{
22
"name": "redis-for-vscode",
3-
"productName": "Redis for VS Code",
43
"version": "0.0.3",
5-
"private": true,
6-
"description": "Redis for VS Code",
4+
"displayName": "Redis for VS Code",
5+
"description": "Redis for Visual Studio Code",
6+
"license": "SEE LICENSE IN LICENSE",
77
"main": "dist/extension.js",
88
"l10n": "./l10n",
99
"publisher": "redis",
10+
"pricing": "Free",
11+
"categories": ["Visualization", "Programming Languages"],
12+
"icon": "dist/webviews/resources/256x256.png",
13+
"author": {
14+
"name": "Redis Ltd.",
15+
"email": "support@redis.com",
16+
"url": "https://redis.com/redis-enterprise/redis-insight"
17+
},
18+
"repository": {
19+
"type": "git",
20+
"url": "https://github.com/RedisInsight/Redis-for-VS-Code.git"
21+
},
22+
"bugs": {
23+
"url": "https://github.com/RedisInsight/Redis-for-VS-Code/issues"
24+
},
25+
"qna": "https://github.com/RedisInsight/Redis-for-VS-Code/issues",
26+
"homepage": "https://github.com/RedisInsight/Redis-for-VS-Code#readme",
27+
"keywords": [
28+
"Redis for VS Code",
29+
"redis",
30+
"redis insight",
31+
"vsc",
32+
"visual studio code",
33+
"plugin",
34+
"react",
35+
"node",
36+
"nest",
37+
"typescript",
38+
"vite"
39+
],
1040
"engines": {
1141
"vscode": "^1.87.0"
1242
},
@@ -19,14 +49,14 @@
1949
{
2050
"id": "ri-sidebar-view",
2151
"title": "Redis for VS Code",
22-
"icon": "dist/webviews/resources/redisinsight.svg"
52+
"icon": "dist/webviews/resources/redis_for_vscode.svg"
2353
}
2454
],
2555
"panel": [
2656
{
2757
"id": "ri-panel-view",
2858
"title": "Redis CLI",
29-
"icon": "dist/webviews/resources/redisinsight.svg"
59+
"icon": "dist/webviews/resources/redis_for_vscode.svg"
3060
}
3161
]
3262
},
@@ -36,7 +66,7 @@
3666
"type": "webview",
3767
"id": "ri-sidebar",
3868
"name": "Redis for VS Code",
39-
"icon": "dist/webviews/resources/redisinsight.svg",
69+
"icon": "dist/webviews/resources/redis_for_vscode.svg",
4070
"contextualTitle": "Redis for VS Code"
4171
}
4272
],
@@ -134,31 +164,6 @@
134164
"lint-staged": {
135165
"*.{js,jsx,ts,tsx}": "eslint --fix"
136166
},
137-
"author": {
138-
"name": "Redis Ltd.",
139-
"email": "support@redis.com",
140-
"url": "https://redis.com/redis-enterprise/redis-insight"
141-
},
142-
"repository": {
143-
"type": "git",
144-
"url": "git+https://github.com/RedisInsight/Redis-for-VS-Code.git"
145-
},
146-
"bugs": {
147-
"url": "https://github.com/RedisInsight/Redis-for-VS-Code/issues"
148-
},
149-
"keywords": [
150-
"Redis for VS Code",
151-
"redis",
152-
"redis insight",
153-
"vsc",
154-
"visual studio code",
155-
"plugin",
156-
"react",
157-
"nest",
158-
"typescript",
159-
"vite"
160-
],
161-
"homepage": "https://github.com/RedisInsight/Redis-for-VS-Code#readme",
162167
"devDependencies": {
163168
"@bithero/monaco-editor-vite-plugin": "^1.0.2",
164169
"@githubocto/tailwind-vscode": "^1.0.5",
@@ -201,7 +206,7 @@
201206
"@vitest/coverage-v8": "^1.3.1",
202207
"@vitest/ui": "^1.3.1",
203208
"@vscode/l10n-dev": "^0.0.35",
204-
"@vscode/vsce": "^2.31.1",
209+
"@vscode/vsce": "^2.32.0",
205210
"autoprefixer": "^10.4.16",
206211
"cross-env": "^7.0.3",
207212
"esbuild": "^0.19.5",
@@ -257,8 +262,6 @@
257262
"whatwg-fetch": "^3.6.19"
258263
},
259264
"dependencies": {
260-
"@hediet/node-reload": "^0.8.0",
261-
"@vscode/codicons": "^0.0.36",
262265
"@vscode/l10n": "^0.0.18",
263266
"@vscode/webview-ui-toolkit": "^1.4.0",
264267
"axios": "^1.5.1",
@@ -271,7 +274,6 @@
271274
"dotenv": "^16.4.5",
272275
"file-saver": "^2.0.5",
273276
"formik": "^2.4.5",
274-
"helmet": "^7.0.0",
275277
"history": "^5.3.0",
276278
"html-react-parser": "^5.0.6",
277279
"immer": "^9.0.21",
@@ -303,8 +305,6 @@
303305
"react-vtree": "^3.0.0-beta.3",
304306
"react-window": "^1.8.6",
305307
"reactjs-popup": "^2.0.6",
306-
"reflect-metadata": "^0.1.13",
307-
"rxjs": "^7.8.1",
308308
"ws": "^8.17.1",
309309
"zustand": "^4.5.4"
310310
}

src/Webview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export class WebviewPanel extends Webview implements vscode.Disposable {
188188
this.panel.title = title || this._opts.title || ''
189189
this.panel.iconPath = vscode.Uri.joinPath(
190190
this._opts.context?.extensionUri as vscode.Uri,
191-
'dist/webviews/resources/redisinsight.svg',
191+
'dist/webviews/resources/redis_for_vscode.svg',
192192
)
193193
this.panel.webview.html = this._getContent(this.panel.webview)
194194

src/resources/256x256.png

2.45 KB
Loading
File renamed without changes.

src/server/bootstrapBackend.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import * as path from 'path'
44
import * as fs from 'fs'
55
import { workspaceStateService } from '../lib'
66
import { CustomLogger } from '../logger'
7+
import { sleep } from '../utils'
78

89
let gracefulShutdown: Function
910
let beApp: any
@@ -31,6 +32,9 @@ export async function startBackend(logger: CustomLogger): Promise<any> {
3132
const { gracefulShutdown: gracefulShutdownFn, app: apiApp } = await server.default(port, logger)
3233
gracefulShutdown = gracefulShutdownFn
3334
beApp = apiApp
35+
36+
// wait BE requests to take jsons from github
37+
await sleep(300)
3438
logger.log('BE started')
3539
} catch (error) {
3640
logger.log(`startBackendError: ${error}`)

src/utils.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import * as vscode from 'vscode'
22
import { workspaceStateService } from './lib'
33

4-
export const NOTIFICATION_TIMEOUT = 5_000
5-
64
export const getNonce = () => {
75
let text = ''
86
const possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'
@@ -15,17 +13,6 @@ export const getNonce = () => {
1513
export const sleep = (ms: number) =>
1614
new Promise((resolve) => setTimeout(resolve, ms))
1715

18-
export const waitFor = async (timeout: number, condition: () => boolean): Promise<boolean> => {
19-
while (!condition() && timeout > 0) {
20-
// eslint-disable-next-line no-param-reassign
21-
timeout -= 100
22-
// eslint-disable-next-line no-await-in-loop
23-
await sleep(100)
24-
}
25-
26-
return timeout > 0
27-
}
28-
2916
export const handleMessage = async (message: any = {}) => {
3017
switch (message.action) {
3118
case 'SelectKey':

src/webviews/src/modules/keys-tree/components/keys-summary/KeysSummary.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react'
22
import * as l10n from '@vscode/l10n'
33
import cx from 'classnames'
4-
import { isNull } from 'lodash'
54
import { VSCodeButton } from '@vscode/webview-ui-toolkit/react'
65
import { BiSortDown, BiSortUp } from 'react-icons/bi'
76
import { VscAdd } from 'react-icons/vsc'

0 commit comments

Comments
 (0)