Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): import themes from local .vsix extension packages #8419

Closedipanasenko(GitHub profile, opens in a new tab)wants to merge 34 commits intomain fromrefs/pull/8419/headopened View on GitHub

Showing 9 changed files with 164 additions and 6 deletions (loading 7).

x
0 of 9 viewed, 9 left
108 additions and 0 deletionsapps/desktop/src/ipc/methods/window.test.tsModified
View file
@@ -1,11 +1,14 @@
+import * as NodePath from "@effect/platform-node/NodePath";
import { assert, describe, it } from "@effect/vitest";
import * as NodeServices from "@effect/platform-node/NodeServices";
import { HostProcessEnvironment, HostProcessPlatform } from "@t3tools/shared/hostProcess";
import * as FileSystem from "effect/FileSystem";
+import * as ByteSize from "effect/ByteSize";
import * as Path from "effect/Path";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import * as Option from "effect/Option";
+import { THEME_PACKAGE_MAX_BYTES } from "@t3tools/contracts";
import { vi } from "vite-plus/test";
​
import type * as Electron from "electron";
@@ -30,9 +33,66 @@
getWindowFullscreenState,
pasteAsText,
pickProjectFavicon,
+ pickThemeFiles,
probeRemoteEditors,
} from "./window.ts";
​
+function fileInfo(size: number): FileSystem.File.Info {
+ return {
+ type: "File",
+ mtime: Option.none(),
+ atime: Option.none(),
+ birthtime: Option.none(),
+ dev: 0,