🩹 more jetbrains fixes
This commit is contained in:
parent
27470eb12b
commit
b0397f46cc
3 changed files with 7 additions and 9188 deletions
9180
gui/pnpm-lock.yaml
generated
9180
gui/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
|
@ -19,7 +19,7 @@
|
|||
</script>
|
||||
|
||||
<script>
|
||||
localStorage.setItem("ide", "jetbrains");
|
||||
localStorage.setItem("ide", '"jetbrains"');
|
||||
</script>
|
||||
<script type="module" src="/src/main.tsx"></script>
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -121,13 +121,12 @@ export class IdeMessenger implements IIdeMessenger {
|
|||
}
|
||||
|
||||
private _safeParseResponse(data: any) {
|
||||
return data ?? null;
|
||||
// This caused .json files to be parsed as objects instead of remaining strings
|
||||
// let responseData = data ?? null;
|
||||
// try {
|
||||
// responseData = JSON.parse(responseData);
|
||||
// } catch {}
|
||||
// return responseData;
|
||||
// This causes .json files to be parsed as objects instead of remaining strings
|
||||
let responseData = data ?? null;
|
||||
try {
|
||||
responseData = JSON.parse(responseData);
|
||||
} catch {}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
request<T extends keyof FromWebviewProtocol>(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue