fix some bug
This commit is contained in:
parent
13d05462fe
commit
f0b8b88fbc
@ -30,6 +30,7 @@ export async function routeMessage(command: string, data: any, webview: PostMess
|
|||||||
webview.postMessage({ command, data: res });
|
webview.postMessage({ command, data: res });
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
console.error(error);
|
||||||
webview.postMessage({
|
webview.postMessage({
|
||||||
command, data: {
|
command, data: {
|
||||||
code: 500,
|
code: 500,
|
||||||
|
@ -249,12 +249,15 @@ export async function connectService(
|
|||||||
const uuid = await deterministicUUID(JSON.stringify(option));
|
const uuid = await deterministicUUID(JSON.stringify(option));
|
||||||
|
|
||||||
const reuseConntion = clientMap.has(uuid);
|
const reuseConntion = clientMap.has(uuid);
|
||||||
if (!clientMap.has(uuid)) {
|
|
||||||
|
// if (!clientMap.has(uuid)) {
|
||||||
|
// const client = await connect(option);
|
||||||
|
// clientMap.set(uuid, client);
|
||||||
|
// }
|
||||||
|
// const client = clientMap.get(uuid)!;
|
||||||
|
|
||||||
const client = await connect(option);
|
const client = await connect(option);
|
||||||
clientMap.set(uuid, client);
|
clientMap.set(uuid, client);
|
||||||
}
|
|
||||||
|
|
||||||
const client = clientMap.get(uuid)!;
|
|
||||||
|
|
||||||
const versionInfo = client.getServerVersion();
|
const versionInfo = client.getServerVersion();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user