@lvce-editor/settings-view 2.17.0 → 2.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/settingsViewWorkerMain.js +13 -434
- package/package.json +1 -1
|
@@ -1015,7 +1015,7 @@ const getFilteredItems = (items, tabs, searchValue, modifiedSettings, preference
|
|
|
1015
1015
|
};
|
|
1016
1016
|
|
|
1017
1017
|
const User = 1;
|
|
1018
|
-
const Script
|
|
1018
|
+
const Script = 2;
|
|
1019
1019
|
|
|
1020
1020
|
const FocusSettingsInput = 2199;
|
|
1021
1021
|
|
|
@@ -1046,8 +1046,8 @@ const clear$1 = state => {
|
|
|
1046
1046
|
deltaY: 0,
|
|
1047
1047
|
filteredItems,
|
|
1048
1048
|
focus: FocusSettingsInput,
|
|
1049
|
-
focusSource: Script
|
|
1050
|
-
inputSource: Script
|
|
1049
|
+
focusSource: Script,
|
|
1050
|
+
inputSource: Script,
|
|
1051
1051
|
maxLineY,
|
|
1052
1052
|
minLineY,
|
|
1053
1053
|
scrollBarThumbHeight: thumbHeight,
|
|
@@ -1661,14 +1661,11 @@ const TargetValue = 'event.target.value';
|
|
|
1661
1661
|
const UpArrow = 14;
|
|
1662
1662
|
const DownArrow = 16;
|
|
1663
1663
|
|
|
1664
|
-
const Script = 2;
|
|
1665
|
-
|
|
1666
1664
|
const SettingsFilter = 94;
|
|
1667
1665
|
|
|
1668
1666
|
const None$1 = 0;
|
|
1669
1667
|
|
|
1670
|
-
const
|
|
1671
|
-
const RendererWorker$1 = 1;
|
|
1668
|
+
const RendererWorker = 1;
|
|
1672
1669
|
|
|
1673
1670
|
const SetCss = 'Viewlet.setCss';
|
|
1674
1671
|
|
|
@@ -1684,7 +1681,7 @@ const text = data => {
|
|
|
1684
1681
|
};
|
|
1685
1682
|
};
|
|
1686
1683
|
|
|
1687
|
-
const getKeyBindings
|
|
1684
|
+
const getKeyBindings = () => {
|
|
1688
1685
|
return [{
|
|
1689
1686
|
command: 'Settings.usePreviousSearchValue',
|
|
1690
1687
|
key: UpArrow,
|
|
@@ -3000,24 +2997,9 @@ const number = value => {
|
|
|
3000
2997
|
};
|
|
3001
2998
|
|
|
3002
2999
|
const {
|
|
3003
|
-
dispose,
|
|
3004
3000
|
invoke,
|
|
3005
|
-
invokeAndTransfer,
|
|
3006
|
-
registerMockRpc,
|
|
3007
3001
|
set: set$1
|
|
3008
|
-
} = create(RendererWorker
|
|
3009
|
-
const searchFileHtml = async uri => {
|
|
3010
|
-
return invoke('ExtensionHost.searchFileWithHtml', uri);
|
|
3011
|
-
};
|
|
3012
|
-
const getFilePathElectron = async file => {
|
|
3013
|
-
return invoke('FileSystemHandle.getFilePathElectron', file);
|
|
3014
|
-
};
|
|
3015
|
-
/**
|
|
3016
|
-
* @deprecated
|
|
3017
|
-
*/
|
|
3018
|
-
const showContextMenu = async (x, y, id, ...args) => {
|
|
3019
|
-
return invoke('ContextMenu.show', x, y, id, ...args);
|
|
3020
|
-
};
|
|
3002
|
+
} = create(RendererWorker);
|
|
3021
3003
|
const showContextMenu2 = async (uid, menuId, x, y, args) => {
|
|
3022
3004
|
number(uid);
|
|
3023
3005
|
number(menuId);
|
|
@@ -3026,413 +3008,10 @@ const showContextMenu2 = async (uid, menuId, x, y, args) => {
|
|
|
3026
3008
|
// @ts-ignore
|
|
3027
3009
|
await invoke('ContextMenu.show2', uid, menuId, x, y, args);
|
|
3028
3010
|
};
|
|
3029
|
-
const getElectronVersion = async () => {
|
|
3030
|
-
return invoke('Process.getElectronVersion');
|
|
3031
|
-
};
|
|
3032
|
-
const applyBulkReplacement = async bulkEdits => {
|
|
3033
|
-
await invoke('BulkReplacement.applyBulkReplacement', bulkEdits);
|
|
3034
|
-
};
|
|
3035
|
-
const setColorTheme = async id => {
|
|
3036
|
-
// @ts-ignore
|
|
3037
|
-
return invoke(/* ColorTheme.setColorTheme */'ColorTheme.setColorTheme', /* colorThemeId */id);
|
|
3038
|
-
};
|
|
3039
|
-
const getNodeVersion = async () => {
|
|
3040
|
-
return invoke('Process.getNodeVersion');
|
|
3041
|
-
};
|
|
3042
|
-
const getChromeVersion = async () => {
|
|
3043
|
-
return invoke('Process.getChromeVersion');
|
|
3044
|
-
};
|
|
3045
|
-
const getV8Version = async () => {
|
|
3046
|
-
return invoke('Process.getV8Version');
|
|
3047
|
-
};
|
|
3048
|
-
const getFileHandles = async fileIds => {
|
|
3049
|
-
const files = await invoke('FileSystemHandle.getFileHandles', fileIds);
|
|
3050
|
-
return files;
|
|
3051
|
-
};
|
|
3052
|
-
const setWorkspacePath = async path => {
|
|
3053
|
-
await invoke('Workspace.setPath', path);
|
|
3054
|
-
};
|
|
3055
|
-
const registerWebViewInterceptor = async (id, port) => {
|
|
3056
|
-
await invokeAndTransfer('WebView.registerInterceptor', id, port);
|
|
3057
|
-
};
|
|
3058
|
-
const unregisterWebViewInterceptor = async id => {
|
|
3059
|
-
await invoke('WebView.unregisterInterceptor', id);
|
|
3060
|
-
};
|
|
3061
|
-
const sendMessagePortToEditorWorker = async (port, rpcId) => {
|
|
3062
|
-
const command = 'HandleMessagePort.handleMessagePort';
|
|
3063
|
-
// @ts-ignore
|
|
3064
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToEditorWorker', port, command, rpcId);
|
|
3065
|
-
};
|
|
3066
|
-
const sendMessagePortToErrorWorker = async (port, rpcId) => {
|
|
3067
|
-
const command = 'Errors.handleMessagePort';
|
|
3068
|
-
// @ts-ignore
|
|
3069
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToErrorWorker', port, command, rpcId);
|
|
3070
|
-
};
|
|
3071
|
-
const sendMessagePortToMarkdownWorker = async (port, rpcId) => {
|
|
3072
|
-
const command = 'Markdown.handleMessagePort';
|
|
3073
|
-
// @ts-ignore
|
|
3074
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToMarkdownWorker', port, command, rpcId);
|
|
3075
|
-
};
|
|
3076
|
-
const sendMessagePortToIconThemeWorker = async (port, rpcId) => {
|
|
3077
|
-
const command = 'IconTheme.handleMessagePort';
|
|
3078
|
-
// @ts-ignore
|
|
3079
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToIconThemeWorker', port, command, rpcId);
|
|
3080
|
-
};
|
|
3081
|
-
const sendMessagePortToFileSystemWorker = async (port, rpcId) => {
|
|
3082
|
-
const command = 'FileSystem.handleMessagePort';
|
|
3083
|
-
// @ts-ignore
|
|
3084
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToFileSystemWorker', port, command, rpcId);
|
|
3085
|
-
};
|
|
3086
|
-
const readFile = async uri => {
|
|
3087
|
-
return invoke('FileSystem.readFile', uri);
|
|
3088
|
-
};
|
|
3089
|
-
const getWebViewSecret = async key => {
|
|
3090
|
-
// @ts-ignore
|
|
3091
|
-
return invoke('WebView.getSecret', key);
|
|
3092
|
-
};
|
|
3093
|
-
const setWebViewPort = async (uid, port, origin, portType) => {
|
|
3094
|
-
return invokeAndTransfer('WebView.setPort', uid, port, origin, portType);
|
|
3095
|
-
};
|
|
3096
|
-
const setFocus = key => {
|
|
3097
|
-
return invoke('Focus.setFocus', key);
|
|
3098
|
-
};
|
|
3099
|
-
const getFileIcon = async options => {
|
|
3100
|
-
return invoke('IconTheme.getFileIcon', options);
|
|
3101
|
-
};
|
|
3102
|
-
const getColorThemeNames = async () => {
|
|
3103
|
-
return invoke('ColorTheme.getColorThemeNames');
|
|
3104
|
-
};
|
|
3105
|
-
const disableExtension = async id => {
|
|
3106
|
-
// @ts-ignore
|
|
3107
|
-
return invoke('ExtensionManagement.disable', id);
|
|
3108
|
-
};
|
|
3109
|
-
const enableExtension = async id => {
|
|
3110
|
-
// @ts-ignore
|
|
3111
|
-
return invoke('ExtensionManagement.enable', id);
|
|
3112
|
-
};
|
|
3113
|
-
const handleDebugChange = async params => {
|
|
3114
|
-
// @ts-ignore
|
|
3115
|
-
return invoke('Run And Debug.handleChange', params);
|
|
3116
|
-
};
|
|
3117
|
-
const getFolderIcon = async options => {
|
|
3118
|
-
return invoke('IconTheme.getFolderIcon', options);
|
|
3119
|
-
};
|
|
3120
|
-
const handleWorkspaceRefresh = async () => {
|
|
3121
|
-
return invoke('Layout.handleWorkspaceRefresh');
|
|
3122
|
-
};
|
|
3123
|
-
const closeWidget = async widgetId => {
|
|
3124
|
-
return invoke('Viewlet.closeWidget', widgetId);
|
|
3125
|
-
};
|
|
3126
|
-
const sendMessagePortToExtensionHostWorker = async (port, rpcId = 0) => {
|
|
3127
|
-
const command = 'HandleMessagePort.handleMessagePort2';
|
|
3128
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionHostWorker', port, command, rpcId);
|
|
3129
|
-
};
|
|
3130
|
-
const sendMessagePortToFileSearchWorker = async (port, rpcId = 0) => {
|
|
3131
|
-
const command = 'QuickPick.handleMessagePort';
|
|
3132
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToFileSearchWorker', port, command, rpcId);
|
|
3133
|
-
};
|
|
3134
|
-
const sendMessagePortToSearchProcess = async port => {
|
|
3135
|
-
await invokeAndTransfer('SendMessagePortToElectron.sendMessagePortToElectron', port, 'HandleMessagePortForSearchProcess.handleMessagePortForSearchProcess');
|
|
3136
|
-
};
|
|
3137
|
-
const confirm = async (message, options) => {
|
|
3138
|
-
// @ts-ignore
|
|
3139
|
-
const result = await invoke('ConfirmPrompt.prompt', message, options);
|
|
3140
|
-
return result;
|
|
3141
|
-
};
|
|
3142
|
-
const getRecentlyOpened = async () => {
|
|
3143
|
-
return invoke(/* RecentlyOpened.getRecentlyOpened */'RecentlyOpened.getRecentlyOpened');
|
|
3144
|
-
};
|
|
3145
|
-
const getKeyBindings = async () => {
|
|
3146
|
-
return invoke('KeyBindingsInitial.getKeyBindings');
|
|
3147
|
-
};
|
|
3148
|
-
const writeClipBoardText = async text => {
|
|
3149
|
-
await invoke('ClipBoard.writeText', /* text */text);
|
|
3150
|
-
};
|
|
3151
|
-
const readClipBoardText = async () => {
|
|
3152
|
-
return invoke('ClipBoard.readText');
|
|
3153
|
-
};
|
|
3154
|
-
const writeClipBoardImage = async blob => {
|
|
3155
|
-
// @ts-ignore
|
|
3156
|
-
await invoke('ClipBoard.writeImage', /* text */blob);
|
|
3157
|
-
};
|
|
3158
|
-
const searchFileMemory = async uri => {
|
|
3159
|
-
// @ts-ignore
|
|
3160
|
-
return invoke('ExtensionHost.searchFileWithMemory', uri);
|
|
3161
|
-
};
|
|
3162
|
-
const searchFileFetch = async uri => {
|
|
3163
|
-
return invoke('ExtensionHost.searchFileWithFetch', uri);
|
|
3164
|
-
};
|
|
3165
|
-
const showMessageBox = async options => {
|
|
3166
|
-
return invoke('ElectronDialog.showMessageBox', options);
|
|
3167
|
-
};
|
|
3168
|
-
const handleDebugResumed = async params => {
|
|
3169
|
-
await invoke('Run And Debug.handleResumed', params);
|
|
3170
|
-
};
|
|
3171
|
-
const openWidget = async name => {
|
|
3172
|
-
await invoke('Viewlet.openWidget', name);
|
|
3173
|
-
};
|
|
3174
|
-
const getIcons = async requests => {
|
|
3175
|
-
const icons = await invoke('IconTheme.getIcons', requests);
|
|
3176
|
-
return icons;
|
|
3177
|
-
};
|
|
3178
|
-
const activateByEvent = (event, assetDir, platform) => {
|
|
3179
|
-
return invoke('ExtensionHostManagement.activateByEvent', event, assetDir, platform);
|
|
3180
|
-
};
|
|
3181
|
-
const setAdditionalFocus = focusKey => {
|
|
3182
|
-
// @ts-ignore
|
|
3183
|
-
return invoke('Focus.setAdditionalFocus', focusKey);
|
|
3184
|
-
};
|
|
3185
|
-
const getActiveEditorId = () => {
|
|
3186
|
-
// @ts-ignore
|
|
3187
|
-
return invoke('GetActiveEditor.getActiveEditorId');
|
|
3188
|
-
};
|
|
3189
|
-
const getWorkspacePath = () => {
|
|
3190
|
-
return invoke('Workspace.getPath');
|
|
3191
|
-
};
|
|
3192
|
-
const sendMessagePortToRendererProcess = async port => {
|
|
3193
|
-
const command = 'HandleMessagePort.handleMessagePort';
|
|
3194
|
-
// @ts-ignore
|
|
3195
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToRendererProcess', port, command, DebugWorker);
|
|
3196
|
-
};
|
|
3197
|
-
const sendMessagePortToTextMeasurementWorker = async port => {
|
|
3198
|
-
const command = 'TextMeasurement.handleMessagePort';
|
|
3199
|
-
// @ts-ignore
|
|
3200
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToTextMeasurementWorker', port, command, 0);
|
|
3201
|
-
};
|
|
3202
|
-
const sendMessagePortToSourceControlWorker = async port => {
|
|
3203
|
-
const command = 'SourceControl.handleMessagePort';
|
|
3204
|
-
// @ts-ignore
|
|
3205
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToSourceControlWorker', port, command, 0);
|
|
3206
|
-
};
|
|
3207
|
-
const sendMessagePortToSharedProcess = async port => {
|
|
3208
|
-
const command = 'HandleElectronMessagePort.handleElectronMessagePort';
|
|
3209
|
-
// @ts-ignore
|
|
3210
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToSharedProcess', port, command, 0);
|
|
3211
|
-
};
|
|
3212
|
-
const sendMessagePortToFileSystemProcess = async (port, rpcId) => {
|
|
3213
|
-
const command = 'HandleMessagePortForFileSystemProcess.handleMessagePortForFileSystemProcess';
|
|
3214
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToSharedProcess', port, command, rpcId);
|
|
3215
|
-
};
|
|
3216
|
-
const sendMessagePortToIframeWorker = async (port, rpcId) => {
|
|
3217
|
-
const command = 'Iframes.handleMessagePort';
|
|
3218
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToIframeWorker', port, command, rpcId);
|
|
3219
|
-
};
|
|
3220
|
-
const sendMessagePortToExtensionManagementWorker = async (port, rpcId) => {
|
|
3221
|
-
const command = 'Extensions.handleMessagePort';
|
|
3222
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionManagementWorker', port, command, rpcId);
|
|
3223
|
-
};
|
|
3224
|
-
const getPreference = async key => {
|
|
3225
|
-
return await invoke('Preferences.get', key);
|
|
3226
|
-
};
|
|
3227
|
-
const getAllExtensions = async () => {
|
|
3228
|
-
return invoke('ExtensionManagement.getAllExtensions');
|
|
3229
|
-
};
|
|
3230
|
-
const rerenderEditor = async key => {
|
|
3231
|
-
// @ts-ignore
|
|
3232
|
-
return invoke('Editor.rerender', key);
|
|
3233
|
-
};
|
|
3234
|
-
const handleDebugPaused = async params => {
|
|
3235
|
-
await invoke('Run And Debug.handlePaused', params);
|
|
3236
|
-
};
|
|
3237
|
-
const openUri = async (uri, focus, options) => {
|
|
3238
|
-
await invoke('Main.openUri', uri, focus, options);
|
|
3239
|
-
};
|
|
3240
|
-
const sendMessagePortToSyntaxHighlightingWorker = async port => {
|
|
3241
|
-
await invokeAndTransfer(
|
|
3242
|
-
// @ts-ignore
|
|
3243
|
-
'SendMessagePortToSyntaxHighlightingWorker.sendMessagePortToSyntaxHighlightingWorker', port, 'HandleMessagePort.handleMessagePort2');
|
|
3244
|
-
};
|
|
3245
|
-
const handleDebugScriptParsed = async script => {
|
|
3246
|
-
await invoke('Run And Debug.handleScriptParsed', script);
|
|
3247
|
-
};
|
|
3248
|
-
const getWindowId = async () => {
|
|
3249
|
-
return invoke('GetWindowId.getWindowId');
|
|
3250
|
-
};
|
|
3251
|
-
const getBlob = async uri => {
|
|
3252
|
-
// @ts-ignore
|
|
3253
|
-
return invoke('FileSystem.getBlob', uri);
|
|
3254
|
-
};
|
|
3255
|
-
const getExtensionCommands = async () => {
|
|
3256
|
-
return invoke('ExtensionHost.getCommands');
|
|
3257
|
-
};
|
|
3258
|
-
const showErrorDialog = async errorInfo => {
|
|
3259
|
-
// @ts-ignore
|
|
3260
|
-
await invoke('ErrorHandling.showErrorDialog', errorInfo);
|
|
3261
|
-
};
|
|
3262
|
-
const getFolderSize = async uri => {
|
|
3263
|
-
// @ts-ignore
|
|
3264
|
-
return await invoke('FileSystem.getFolderSize', uri);
|
|
3265
|
-
};
|
|
3266
|
-
const getExtension = async id => {
|
|
3267
|
-
// @ts-ignore
|
|
3268
|
-
return invoke('ExtensionManagement.getExtension', id);
|
|
3269
|
-
};
|
|
3270
|
-
const getMarkdownDom = async html => {
|
|
3271
|
-
// @ts-ignore
|
|
3272
|
-
return invoke('Markdown.getVirtualDom', html);
|
|
3273
|
-
};
|
|
3274
|
-
const renderMarkdown = async (markdown, options) => {
|
|
3275
|
-
// @ts-ignore
|
|
3276
|
-
return invoke('Markdown.renderMarkdown', markdown, options);
|
|
3277
|
-
};
|
|
3278
|
-
const openNativeFolder = async uri => {
|
|
3279
|
-
// @ts-ignore
|
|
3280
|
-
await invoke('OpenNativeFolder.openNativeFolder', uri);
|
|
3281
|
-
};
|
|
3282
|
-
const uninstallExtension = async id => {
|
|
3283
|
-
return invoke('ExtensionManagement.uninstall', id);
|
|
3284
|
-
};
|
|
3285
|
-
const installExtension = async id => {
|
|
3286
|
-
// @ts-ignore
|
|
3287
|
-
return invoke('ExtensionManagement.install', id);
|
|
3288
|
-
};
|
|
3289
|
-
const minimizeWindow = async () => {
|
|
3290
|
-
// @ts-ignore
|
|
3291
|
-
return invoke('ElectronWindow.minimize');
|
|
3292
|
-
};
|
|
3293
|
-
const unmaximizeWindow = async () => {
|
|
3294
|
-
// @ts-ignore
|
|
3295
|
-
return invoke('ElectronWindow.unmaximize');
|
|
3296
|
-
};
|
|
3297
|
-
const maximizeWindow = async () => {
|
|
3298
|
-
// @ts-ignore
|
|
3299
|
-
return invoke('ElectronWindow.maximize');
|
|
3300
|
-
};
|
|
3301
|
-
const closeWindow = async () => {
|
|
3302
|
-
// @ts-ignore
|
|
3303
|
-
return invoke('ElectronWindow.close');
|
|
3304
|
-
};
|
|
3305
|
-
const openExtensionSearch = async () => {
|
|
3306
|
-
// @ts-ignore
|
|
3307
|
-
return invoke('SideBar.openViewlet', 'Extensions');
|
|
3308
|
-
};
|
|
3309
|
-
const setExtensionsSearchValue = async searchValue => {
|
|
3310
|
-
// @ts-ignore
|
|
3311
|
-
return invoke('Extensions.handleInput', searchValue, Script);
|
|
3312
|
-
};
|
|
3313
|
-
const openExternal = async uri => {
|
|
3314
|
-
// @ts-ignore
|
|
3315
|
-
await invoke('Open.openExternal', uri);
|
|
3316
|
-
};
|
|
3317
|
-
const openUrl = async uri => {
|
|
3318
|
-
// @ts-ignore
|
|
3319
|
-
await invoke('Open.openUrl', uri);
|
|
3320
|
-
};
|
|
3321
3011
|
const getAllPreferences = async () => {
|
|
3322
3012
|
// @ts-ignore
|
|
3323
3013
|
return invoke('Preferences.getAll');
|
|
3324
3014
|
};
|
|
3325
|
-
const showSaveFilePicker = async () => {
|
|
3326
|
-
// @ts-ignore
|
|
3327
|
-
return invoke('FilePicker.showSaveFilePicker');
|
|
3328
|
-
};
|
|
3329
|
-
const getLogsDir = async () => {
|
|
3330
|
-
// @ts-ignore
|
|
3331
|
-
return invoke('PlatformPaths.getLogsDir');
|
|
3332
|
-
};
|
|
3333
|
-
const measureTextBlockHeight = async (actualInput, fontFamily, fontSize, lineHeightPx, width) => {
|
|
3334
|
-
return invoke(`MeasureTextHeight.measureTextBlockHeight`, actualInput, fontFamily, fontSize, lineHeightPx, width);
|
|
3335
|
-
};
|
|
3336
|
-
const refreshOutput = async () => {
|
|
3337
|
-
await invoke('Output.refresh');
|
|
3338
|
-
};
|
|
3339
|
-
|
|
3340
|
-
const RendererWorker = {
|
|
3341
|
-
__proto__: null,
|
|
3342
|
-
activateByEvent,
|
|
3343
|
-
applyBulkReplacement,
|
|
3344
|
-
closeWidget,
|
|
3345
|
-
closeWindow,
|
|
3346
|
-
confirm,
|
|
3347
|
-
disableExtension,
|
|
3348
|
-
dispose,
|
|
3349
|
-
enableExtension,
|
|
3350
|
-
getActiveEditorId,
|
|
3351
|
-
getAllExtensions,
|
|
3352
|
-
getAllPreferences,
|
|
3353
|
-
getBlob,
|
|
3354
|
-
getChromeVersion,
|
|
3355
|
-
getColorThemeNames,
|
|
3356
|
-
getElectronVersion,
|
|
3357
|
-
getExtension,
|
|
3358
|
-
getExtensionCommands,
|
|
3359
|
-
getFileHandles,
|
|
3360
|
-
getFileIcon,
|
|
3361
|
-
getFilePathElectron,
|
|
3362
|
-
getFolderIcon,
|
|
3363
|
-
getFolderSize,
|
|
3364
|
-
getIcons,
|
|
3365
|
-
getKeyBindings,
|
|
3366
|
-
getLogsDir,
|
|
3367
|
-
getMarkdownDom,
|
|
3368
|
-
getNodeVersion,
|
|
3369
|
-
getPreference,
|
|
3370
|
-
getRecentlyOpened,
|
|
3371
|
-
getV8Version,
|
|
3372
|
-
getWebViewSecret,
|
|
3373
|
-
getWindowId,
|
|
3374
|
-
getWorkspacePath,
|
|
3375
|
-
handleDebugChange,
|
|
3376
|
-
handleDebugPaused,
|
|
3377
|
-
handleDebugResumed,
|
|
3378
|
-
handleDebugScriptParsed,
|
|
3379
|
-
handleWorkspaceRefresh,
|
|
3380
|
-
installExtension,
|
|
3381
|
-
invoke,
|
|
3382
|
-
invokeAndTransfer,
|
|
3383
|
-
maximizeWindow,
|
|
3384
|
-
measureTextBlockHeight,
|
|
3385
|
-
minimizeWindow,
|
|
3386
|
-
openExtensionSearch,
|
|
3387
|
-
openExternal,
|
|
3388
|
-
openNativeFolder,
|
|
3389
|
-
openUri,
|
|
3390
|
-
openUrl,
|
|
3391
|
-
openWidget,
|
|
3392
|
-
readClipBoardText,
|
|
3393
|
-
readFile,
|
|
3394
|
-
refreshOutput,
|
|
3395
|
-
registerMockRpc,
|
|
3396
|
-
registerWebViewInterceptor,
|
|
3397
|
-
renderMarkdown,
|
|
3398
|
-
rerenderEditor,
|
|
3399
|
-
searchFileFetch,
|
|
3400
|
-
searchFileHtml,
|
|
3401
|
-
searchFileMemory,
|
|
3402
|
-
sendMessagePortToEditorWorker,
|
|
3403
|
-
sendMessagePortToErrorWorker,
|
|
3404
|
-
sendMessagePortToExtensionHostWorker,
|
|
3405
|
-
sendMessagePortToExtensionManagementWorker,
|
|
3406
|
-
sendMessagePortToFileSearchWorker,
|
|
3407
|
-
sendMessagePortToFileSystemProcess,
|
|
3408
|
-
sendMessagePortToFileSystemWorker,
|
|
3409
|
-
sendMessagePortToIconThemeWorker,
|
|
3410
|
-
sendMessagePortToIframeWorker,
|
|
3411
|
-
sendMessagePortToMarkdownWorker,
|
|
3412
|
-
sendMessagePortToRendererProcess,
|
|
3413
|
-
sendMessagePortToSearchProcess,
|
|
3414
|
-
sendMessagePortToSharedProcess,
|
|
3415
|
-
sendMessagePortToSourceControlWorker,
|
|
3416
|
-
sendMessagePortToSyntaxHighlightingWorker,
|
|
3417
|
-
sendMessagePortToTextMeasurementWorker,
|
|
3418
|
-
set: set$1,
|
|
3419
|
-
setAdditionalFocus,
|
|
3420
|
-
setColorTheme,
|
|
3421
|
-
setExtensionsSearchValue,
|
|
3422
|
-
setFocus,
|
|
3423
|
-
setWebViewPort,
|
|
3424
|
-
setWorkspacePath,
|
|
3425
|
-
showContextMenu,
|
|
3426
|
-
showContextMenu2,
|
|
3427
|
-
showErrorDialog,
|
|
3428
|
-
showMessageBox,
|
|
3429
|
-
showSaveFilePicker,
|
|
3430
|
-
uninstallExtension,
|
|
3431
|
-
unmaximizeWindow,
|
|
3432
|
-
unregisterWebViewInterceptor,
|
|
3433
|
-
writeClipBoardImage,
|
|
3434
|
-
writeClipBoardText
|
|
3435
|
-
};
|
|
3436
3015
|
|
|
3437
3016
|
const show2 = async (uid, menuId, x, y, args) => {
|
|
3438
3017
|
await showContextMenu2(uid, menuId, x, y, args);
|
|
@@ -4985,7 +4564,7 @@ const loadContent = async (state, savedState) => {
|
|
|
4985
4564
|
filteredItems,
|
|
4986
4565
|
history,
|
|
4987
4566
|
historyIndex,
|
|
4988
|
-
inputSource: Script
|
|
4567
|
+
inputSource: Script,
|
|
4989
4568
|
items,
|
|
4990
4569
|
maxLineY,
|
|
4991
4570
|
minLineY,
|
|
@@ -5788,7 +5367,7 @@ const useNextSearchValue = state => {
|
|
|
5788
5367
|
...state,
|
|
5789
5368
|
filteredItems,
|
|
5790
5369
|
historyIndex: newHistoryIndex,
|
|
5791
|
-
inputSource: Script
|
|
5370
|
+
inputSource: Script,
|
|
5792
5371
|
searchValue: newSearchValue
|
|
5793
5372
|
};
|
|
5794
5373
|
};
|
|
@@ -5812,7 +5391,7 @@ const usePreviousSearchValue = state => {
|
|
|
5812
5391
|
...state,
|
|
5813
5392
|
filteredItems,
|
|
5814
5393
|
historyIndex: newHistoryIndex,
|
|
5815
|
-
inputSource: Script
|
|
5394
|
+
inputSource: Script,
|
|
5816
5395
|
searchValue: newSearchValue
|
|
5817
5396
|
};
|
|
5818
5397
|
};
|
|
@@ -5824,7 +5403,7 @@ const commandMap = {
|
|
|
5824
5403
|
'Settings.create': create$1,
|
|
5825
5404
|
'Settings.diff2': diff2,
|
|
5826
5405
|
'Settings.getCommandIds': getCommandIds,
|
|
5827
|
-
'Settings.getKeyBindings': getKeyBindings
|
|
5406
|
+
'Settings.getKeyBindings': getKeyBindings,
|
|
5828
5407
|
'Settings.getMenuEntries': getMenuEntries,
|
|
5829
5408
|
'Settings.getMenuIds': getMenuIds,
|
|
5830
5409
|
'Settings.getName': getName,
|
|
@@ -5852,9 +5431,9 @@ const commandMap = {
|
|
|
5852
5431
|
'Settings.usePreviousSearchValue': wrapCommand(usePreviousSearchValue)
|
|
5853
5432
|
};
|
|
5854
5433
|
|
|
5855
|
-
const {
|
|
5856
|
-
set
|
|
5857
|
-
}
|
|
5434
|
+
const set = rpc => {
|
|
5435
|
+
set$1(rpc);
|
|
5436
|
+
};
|
|
5858
5437
|
|
|
5859
5438
|
const listen = async () => {
|
|
5860
5439
|
registerCommands(commandMap);
|