Skip to content

Commit baa324c

Browse files
authored
fix: Fix VScode Engines Version (#182)
* chore: Update package.json * fix: 按语言订阅产品 * chore: vscode engines
1 parent f4bc62b commit baa324c

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

media/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"@types/node": "^20",
4747
"@types/react": "^18.3.5",
4848
"@types/react-dom": "^18.3.0",
49-
"@types/vscode": "^1.92.0",
49+
"@types/vscode": "^1.75.0",
5050
"@types/vscode-webview": "^1.57.5",
5151
"@vitejs/plugin-react": "^1.3.2",
5252
"autoprefixer": "^10.0.1",

media/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,10 +1158,10 @@
11581158
resolved "https://registry.yarnpkg.com/@types/vscode-webview/-/vscode-webview-1.57.5.tgz#5b910525386c02305eb1d0772e0181c5f19c579b"
11591159
integrity sha512-iBAUYNYkz+uk1kdsq05fEcoh8gJmwT3lqqFPN7MGyjQ3HVloViMdo7ZJ8DFIP8WOK74PjOEilosqAyxV2iUFUw==
11601160

1161-
"@types/vscode@^1.92.0":
1162-
version "1.92.0"
1163-
resolved "https://registry.yarnpkg.com/@types/vscode/-/vscode-1.92.0.tgz#b4d6bc180e7206defe643a1a5f38a1367947d418"
1164-
integrity sha512-DcZoCj17RXlzB4XJ7IfKdPTcTGDLYvTOcTNkvtjXWF+K2TlKzHHkBEXNWQRpBIXixNEUgx39cQeTFunY0E2msw==
1161+
"@types/vscode@^1.75.0":
1162+
version "1.94.0"
1163+
resolved "https://registry.npmmirror.com/@types/vscode/-/vscode-1.94.0.tgz#ccd2111b6ecaba6ad4da19c2d524828fa73ae250"
1164+
integrity sha512-UyQOIUT0pb14XSqJskYnRwD2aG0QrPVefIfrW1djR+/J4KeFQ0i1+hjZoaAmeNf3Z2jleK+R2hv+EboG/m8ruw==
11651165

11661166
"@typescript-eslint/parser@^5.4.2 || ^6.0.0 || 7.0.0 - 7.2.0":
11671167
version "7.2.0"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"publisher": "alibabacloud-openapi",
99
"license": "Apache-2.0",
1010
"engines": {
11-
"vscode": "^1.47.0"
11+
"vscode": "^1.75.0"
1212
},
1313
"categories": [
1414
"Other"
@@ -319,7 +319,7 @@
319319
"@types/mocha": "^10.0.7",
320320
"@types/react": "^18.3.3",
321321
"@types/react-dom": "^18.3.0",
322-
"@types/vscode": "^1.94.0",
322+
"@types/vscode": "^1.75.0",
323323
"@types/vscode-webview": "^1.57.0",
324324
"@typescript-eslint/eslint-plugin": "^6.9.0",
325325
"@typescript-eslint/parser": "^6.9.0",

src/explorer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { getProductRequestInstance } from "./productExplorer";
1010
import { Product } from "./types";
1111
import _ from "lodash";
1212
import { getProfileInfoInstance } from "./profileManager";
13-
import I18N from "./utils/I18N";
13+
import I18N, { getCurrentLang } from "./utils/I18N";
1414

1515
type DiffResult<T> = T;
1616

@@ -382,7 +382,7 @@ export class AlicloudApiExplorer implements vscode.TreeDataProvider<PontChangeTr
382382
...(pontxConfig.origins || []),
383383
{
384384
name: `${product}__${version}`,
385-
url: `https://api.aliyun.com/meta/v1/products/${product}/versions/${version}/api-docs.json`,
385+
url: `https://api.aliyun.com/meta/v1/products/${product}/versions/${version}/api-docs.json${getCurrentLang() === "en_US" ? "?language=en_US" : ""}`,
386386
},
387387
];
388388
this.rewriteConfig(pontxConfig);

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -876,9 +876,9 @@
876876
resolved "https://registry.npmmirror.com/@types/vscode-webview/-/vscode-webview-1.57.4.tgz"
877877
integrity sha512-RrVw9s6gBJuY1IkUHMNznWgj/ktjwLpATyOTcKxUDIbbp7AQeK7S0E1+P/8Z75OgAW13OMqSAmaiuWw25dh59Q==
878878

879-
"@types/vscode@^1.94.0":
879+
"@types/vscode@^1.75.0":
880880
version "1.94.0"
881-
resolved "https://registry.yarnpkg.com/@types/vscode/-/vscode-1.94.0.tgz#ccd2111b6ecaba6ad4da19c2d524828fa73ae250"
881+
resolved "https://registry.npmmirror.com/@types/vscode/-/vscode-1.94.0.tgz#ccd2111b6ecaba6ad4da19c2d524828fa73ae250"
882882
integrity sha512-UyQOIUT0pb14XSqJskYnRwD2aG0QrPVefIfrW1djR+/J4KeFQ0i1+hjZoaAmeNf3Z2jleK+R2hv+EboG/m8ruw==
883883

884884
"@typescript-eslint/eslint-plugin@^6.9.0":

0 commit comments

Comments
 (0)