initial push

This commit is contained in:
2025-05-27 21:10:45 -05:00
parent 658443ca77
commit 61e461e31a
44 changed files with 1964 additions and 3 deletions

14
preload.js Normal file
View File

@@ -0,0 +1,14 @@
const { contextBridge, ipcRenderer, webUtils } = require('electron')
contextBridge.exposeInMainWorld('electron', {
node: () => process.versions.node,
chrome: () => process.versions.chrome,
electron: () => process.versions.electron,
});
contextBridge.exposeInMainWorld('fs', {
getLspConfigData: () => ipcRenderer.invoke("getLspConfigData"),
getFileContents: (file) => ipcRenderer.invoke("getFileContents", file),
getPathForFile: (file) => webUtils.getPathForFile(file)
});