Open disco0 opened 3 years ago
Going to assume this issue is related lol
Are you using any other extensions that are using monkey-patch? The file /Users/disk0/dotfile/vscode/style/out/code-custom.js
is neither from monkey-patch nor customize-ui. After update vscode can only load files from either vscode bundle or Application Support/Code - Insiders/Users/Global Storage
. Any extension using customize UI should put generated javascript files inside global storage.
Ah sorry I should've mentioned before, I'm loading this via configuration with:
"monkeyPatch.folderMap": {
"ui": "~/dotfile/vscode/style/out"
},
"monkeyPatch.mainProcessModules": [
],
"monkeyPatch.browserModules": [
"ui/code-custom"
],
I'll check if loading via the API works
I see. It's not the API, the problem is that after latest update user script can only be loaded from "~/Library/Application Support/Code - Insiders/Users/Global Storage".
You can try putting your scripts inside "~/Library/Application Support/Code - Insiders/Users/Global Storage"
to see if it works.
Can confirm symlinking into GlobalStorage fixes the issue.
Not sure if you'd want to add handling or loading scripts from unsafe paths to GlobalStorage similar to how customize-ui
does, but (assuming this will hit Code eventually) the readme should probably get updated with a note or have a path with GlobalStorage.
I see. It's not the API, the problem is that after latest update user script can only be loaded from "~/Library/Application Support/Code - Insiders/Users/Global Storage".
Why isn't this info written somewhere in the documentation?
Log Content
```log [main 2021-06-11T20:20:30.317Z] Resolving machine identifier... [main 2021-06-11T20:20:30.317Z] Resolved machine identifier: e4a6efdbd9e51b95219a23fd0596f5fad4a4f4fc2beb20efb752cd0ada9e50a1 [main 2021-06-11T20:20:30.318Z] Main->SharedProcess#connect [main 2021-06-11T20:20:30.407Z] StorageMainService: creating global storage [main 2021-06-11T20:20:30.409Z] lifecycle (main): phase changed (value: 2) [main 2021-06-11T20:20:30.410Z] windowsManager#open [main 2021-06-11T20:20:30.410Z] windowsManager#open pathsToOpen [ [Object: null prototype] {} ] [main 2021-06-11T20:20:30.412Z] IPC Object URL: Registered new channel vscode:3bd64443-ca67-4558-a8a2-e2799f57c481. [main 2021-06-11T20:20:30.413Z] window#validateWindowState: validating window state on 1 display(s) { mode: 1, x: 0, y: 23, width: 1273, height: 877 } [main 2021-06-11T20:20:30.413Z] window#validateWindowState: 1 monitor working area { x: 0, y: 23, width: 1440, height: 877 } [main 2021-06-11T20:20:30.413Z] window#ctor: using window state { mode: 1, x: 0, y: 23, width: 1273, height: 877 } [main 2021-06-11T20:20:30.414Z] window: using vscode-file:// protocol and V8 cache options: bypassHeatCheck [main 2021-06-11T20:20:30.470Z] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 0, emptyToRestore: 0, emptyToOpen: 1) [main 2021-06-11T20:20:30.511Z] lifecycle (main): phase changed (value: 3) [main 2021-06-11T20:20:30.518Z] update#setState idle [main 2021-06-11T20:20:30.518Z] resolveShellEnv(): skipped (VSCODE_CLI is set) [main 2021-06-11T20:20:30.753Z] resolveShellEnv(): skipped (VSCODE_CLI is set) [main 2021-06-11T20:20:31.162Z] vscode-file: Refused to load resource /Users/disk0/dotfile/vscode/style/out/code-custom.js from vscode-file: protocol (original URL: vscode-file://vscode-app/Users/disk0/dotfile/vscode/style/out/code-custom.js) [47382:0611/132049.431379:INFO:CONSOLE(30)] "Error: [object Event]", source: vscode-file://vscode-app/Users/disk0/Library/Application%20Support/Code%20-%20Insiders/User/globalStorage/iocave.monkey-patch/modules/browser-entrypoint.js (30) [main 2021-06-11T20:20:49.453Z] StorageMainService: creating workspace storage (1623442848764) ```Loading with exact same configuration in standard Code edition has no issues.
I can see some font size changes after enabling, so it seems customize-ui changes are possibly loading. Additionally I can't open DevTools, Process Explorer, or About page when extension is enabled—can't check how much of this is reproducing on Windows atm, going to assume its something to do with electron issues on the current macOS insiders build
Possibly Related: