@lvce-editor/test-worker 14.1.0 → 14.3.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/api.d.ts +24 -6
- package/dist/testWorkerMain.js +177 -136
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -74,6 +74,13 @@ export interface UpdateConfig {
|
|
|
74
74
|
readonly state: number;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
export interface Dimensions {
|
|
78
|
+
readonly height: number;
|
|
79
|
+
readonly width: number;
|
|
80
|
+
readonly x: number;
|
|
81
|
+
readonly y: number;
|
|
82
|
+
}
|
|
83
|
+
|
|
77
84
|
export interface DroppedFileHandle {
|
|
78
85
|
readonly file: File;
|
|
79
86
|
readonly id: number;
|
|
@@ -155,9 +162,12 @@ interface ActivityBar {
|
|
|
155
162
|
readonly handleClick: (index: number) => Promise<void>;
|
|
156
163
|
readonly handleClickSettings: (x: number, y: number) => Promise<void>;
|
|
157
164
|
readonly handleContextMenu: () => Promise<void>;
|
|
165
|
+
readonly handleSideBarHidden: () => Promise<void>;
|
|
166
|
+
readonly resize: (dimensions: Dimensions) => Promise<void>;
|
|
158
167
|
readonly selectCurrent: () => Promise<void>;
|
|
159
168
|
readonly setAccountEnabled: (enabled: boolean) => Promise<void>;
|
|
160
169
|
readonly setUpdateState: (config: UpdateConfig) => Promise<void>;
|
|
170
|
+
readonly setUserLoginState: (loginState: string) => Promise<void>;
|
|
161
171
|
readonly toggleActivityBarItem: (id: string) => Promise<void>;
|
|
162
172
|
}
|
|
163
173
|
|
|
@@ -288,6 +298,12 @@ interface Dialog {
|
|
|
288
298
|
readonly showSaveFilePicker: () => Promise<void>;
|
|
289
299
|
}
|
|
290
300
|
|
|
301
|
+
interface DiffView {
|
|
302
|
+
readonly open: (leftUri: string, rightUri: string) => Promise<void>;
|
|
303
|
+
readonly shouldHaveContentLeft: (expectedContent: string) => Promise<void>;
|
|
304
|
+
readonly shouldHaveContentRight: (expectedContent: string) => Promise<void>;
|
|
305
|
+
}
|
|
306
|
+
|
|
291
307
|
interface Editor {
|
|
292
308
|
readonly addAllMissingImports: () => Promise<void>;
|
|
293
309
|
readonly cancelSelection: () => Promise<void>;
|
|
@@ -569,11 +585,6 @@ interface KeyBoard {
|
|
|
569
585
|
readonly press: (key: string) => Promise<void>;
|
|
570
586
|
}
|
|
571
587
|
|
|
572
|
-
interface Layout {
|
|
573
|
-
readonly handleWorkspaceRefresh: () => Promise<void>;
|
|
574
|
-
readonly showSideBar: () => Promise<void>;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
588
|
interface LanguageModels {
|
|
578
589
|
readonly addModel: () => Promise<void>;
|
|
579
590
|
readonly clearFilterInput: () => Promise<void>;
|
|
@@ -582,6 +593,11 @@ interface LanguageModels {
|
|
|
582
593
|
readonly removeModel: (id: string) => Promise<void>;
|
|
583
594
|
}
|
|
584
595
|
|
|
596
|
+
interface Layout {
|
|
597
|
+
readonly handleWorkspaceRefresh: () => Promise<void>;
|
|
598
|
+
readonly showSideBar: () => Promise<void>;
|
|
599
|
+
}
|
|
600
|
+
|
|
585
601
|
interface Main {
|
|
586
602
|
readonly closeActiveEditor: () => Promise<void>;
|
|
587
603
|
readonly closeAllEditors: () => Promise<void>;
|
|
@@ -601,6 +617,7 @@ interface Main {
|
|
|
601
617
|
readonly openUri: (uri: string) => Promise<void>;
|
|
602
618
|
readonly save: () => Promise<void>;
|
|
603
619
|
readonly saveAll: () => Promise<void>;
|
|
620
|
+
readonly saveState: (uid: number) => Promise<any>;
|
|
604
621
|
readonly selectTab: (groupIndex: number, tabIndex: number) => Promise<void>;
|
|
605
622
|
readonly splitDown: () => Promise<void>;
|
|
606
623
|
readonly splitRight: () => Promise<void>;
|
|
@@ -816,6 +833,7 @@ export interface TestApi {
|
|
|
816
833
|
readonly ContextMenu: ContextMenu
|
|
817
834
|
readonly Developer: Developer
|
|
818
835
|
readonly Dialog: Dialog
|
|
836
|
+
readonly DiffView: DiffView
|
|
819
837
|
readonly Editor: Editor
|
|
820
838
|
readonly EditorCompletion: EditorCompletion
|
|
821
839
|
readonly EditorHover: EditorHover
|
|
@@ -831,8 +849,8 @@ export interface TestApi {
|
|
|
831
849
|
readonly IframeInspector: IframeInspector
|
|
832
850
|
readonly KeyBindingsEditor: KeyBindingsEditor
|
|
833
851
|
readonly KeyBoard: KeyBoard
|
|
834
|
-
readonly Layout: Layout
|
|
835
852
|
readonly LanguageModels: LanguageModels
|
|
853
|
+
readonly Layout: Layout
|
|
836
854
|
readonly Main: Main
|
|
837
855
|
readonly Open: Open
|
|
838
856
|
readonly Output: Output
|
package/dist/testWorkerMain.js
CHANGED
|
@@ -1783,6 +1783,12 @@ const focus$2 = async () => {
|
|
|
1783
1783
|
const toggleActivityBarItem = async id => {
|
|
1784
1784
|
await invoke('ActivityBar.toggleActivityBarItem', id);
|
|
1785
1785
|
};
|
|
1786
|
+
|
|
1787
|
+
// export type LoginState = 'logging in' | 'logging out'
|
|
1788
|
+
|
|
1789
|
+
const setUserLoginState = async loginState => {
|
|
1790
|
+
await invoke('ActivityBar.setUserLoginState', loginState);
|
|
1791
|
+
};
|
|
1786
1792
|
const focusFirst$7 = async () => {
|
|
1787
1793
|
await invoke('ActivityBar.focusFirst');
|
|
1788
1794
|
};
|
|
@@ -1801,11 +1807,14 @@ const focusPrevious$7 = async () => {
|
|
|
1801
1807
|
const handleClick$4 = async index => {
|
|
1802
1808
|
await invoke('ActivityBar.handleClick', index);
|
|
1803
1809
|
};
|
|
1810
|
+
const handleSideBarHidden = async () => {
|
|
1811
|
+
await invoke('ActivityBar.handleSideBarHidden');
|
|
1812
|
+
};
|
|
1804
1813
|
const handleContextMenu$5 = async () => {
|
|
1805
1814
|
await invoke('ActivityBar.handleContextMenu');
|
|
1806
1815
|
};
|
|
1807
1816
|
const setUpdateState = async config => {
|
|
1808
|
-
await invoke('ActivityBar.
|
|
1817
|
+
await invoke('ActivityBar.handleUpdateStateChange', config);
|
|
1809
1818
|
};
|
|
1810
1819
|
const selectCurrent = async () => {
|
|
1811
1820
|
await invoke('ActivityBar.selectCurrent');
|
|
@@ -1813,6 +1822,9 @@ const selectCurrent = async () => {
|
|
|
1813
1822
|
const handleClickSettings$1 = async (x, y) => {
|
|
1814
1823
|
await invoke('ActivityBar.handleClickSettings', x, y);
|
|
1815
1824
|
};
|
|
1825
|
+
const resize = async dimensions => {
|
|
1826
|
+
await invoke('ActivityBar.resize', dimensions);
|
|
1827
|
+
};
|
|
1816
1828
|
|
|
1817
1829
|
const ActivityBar = {
|
|
1818
1830
|
focus: focus$2,
|
|
@@ -1823,9 +1835,12 @@ const ActivityBar = {
|
|
|
1823
1835
|
handleClick: handleClick$4,
|
|
1824
1836
|
handleClickSettings: handleClickSettings$1,
|
|
1825
1837
|
handleContextMenu: handleContextMenu$5,
|
|
1838
|
+
handleSideBarHidden,
|
|
1839
|
+
resize,
|
|
1826
1840
|
selectCurrent,
|
|
1827
1841
|
setAccountEnabled,
|
|
1828
1842
|
setUpdateState,
|
|
1843
|
+
setUserLoginState,
|
|
1829
1844
|
toggleActivityBarItem
|
|
1830
1845
|
};
|
|
1831
1846
|
|
|
@@ -2066,7 +2081,7 @@ const Chat = {
|
|
|
2066
2081
|
useMockApi
|
|
2067
2082
|
};
|
|
2068
2083
|
|
|
2069
|
-
const open$
|
|
2084
|
+
const open$a = async sessionId => {
|
|
2070
2085
|
await invoke('Main.openUri', `chat-debug://${sessionId}`);
|
|
2071
2086
|
};
|
|
2072
2087
|
const open2 = async ({
|
|
@@ -2148,7 +2163,7 @@ const ChatDebug = {
|
|
|
2148
2163
|
closeDetails,
|
|
2149
2164
|
handleClickRefresh,
|
|
2150
2165
|
handleInput: handleInput$7,
|
|
2151
|
-
open: open$
|
|
2166
|
+
open: open$a,
|
|
2152
2167
|
open2,
|
|
2153
2168
|
openTabPayload,
|
|
2154
2169
|
openTabPreview,
|
|
@@ -2294,6 +2309,116 @@ const Dialog = {
|
|
|
2294
2309
|
showSaveFilePicker
|
|
2295
2310
|
};
|
|
2296
2311
|
|
|
2312
|
+
const openUri = async uri => {
|
|
2313
|
+
await invoke('Main.openUri', uri);
|
|
2314
|
+
};
|
|
2315
|
+
const saveState = async uid => {
|
|
2316
|
+
return invoke('Main.saveState', uid);
|
|
2317
|
+
};
|
|
2318
|
+
const splitRight = async () => {
|
|
2319
|
+
await invoke('Main.splitRight');
|
|
2320
|
+
};
|
|
2321
|
+
const splitDown = async () => {
|
|
2322
|
+
await invoke('Main.splitDown');
|
|
2323
|
+
};
|
|
2324
|
+
const openKeyBindings = async () => {
|
|
2325
|
+
await invoke('Main.openKeyBindings');
|
|
2326
|
+
};
|
|
2327
|
+
const handleClickTogglePreview = async () => {
|
|
2328
|
+
await invoke('Main.handleClickTogglePreview');
|
|
2329
|
+
};
|
|
2330
|
+
const closeAllEditors = async () => {
|
|
2331
|
+
await invoke('Main.closeAllEditors');
|
|
2332
|
+
};
|
|
2333
|
+
const closeTabsLeft = async () => {
|
|
2334
|
+
await invoke('Main.closeTabsLeft');
|
|
2335
|
+
};
|
|
2336
|
+
const handleModifiedStatusChange = async (uri, newStatus) => {
|
|
2337
|
+
await invoke('Main.handleModifiedStatusChange', uri, newStatus);
|
|
2338
|
+
};
|
|
2339
|
+
const closeTabsRight = async () => {
|
|
2340
|
+
await invoke('Main.closeTabsRight');
|
|
2341
|
+
};
|
|
2342
|
+
const selectTab$2 = async (groupIndex, tabIndex) => {
|
|
2343
|
+
await invoke('Main.selectTab', groupIndex, tabIndex);
|
|
2344
|
+
};
|
|
2345
|
+
const closeOthers = async () => {
|
|
2346
|
+
await invoke('Main.closeOthers');
|
|
2347
|
+
};
|
|
2348
|
+
const closeActiveEditor = async () => {
|
|
2349
|
+
await invoke('Main.closeActiveEditor');
|
|
2350
|
+
};
|
|
2351
|
+
const save = async () => {
|
|
2352
|
+
await invoke('Main.save');
|
|
2353
|
+
};
|
|
2354
|
+
const saveAll = async () => {
|
|
2355
|
+
await invoke('Main.saveAll');
|
|
2356
|
+
};
|
|
2357
|
+
const focusFirst$6 = async () => {
|
|
2358
|
+
await invoke('Main.focusFirst');
|
|
2359
|
+
};
|
|
2360
|
+
const focusNext$7 = async () => {
|
|
2361
|
+
await invoke('Main.focusNext');
|
|
2362
|
+
};
|
|
2363
|
+
const focusPrevious$6 = async () => {
|
|
2364
|
+
await invoke('Main.focusPrevious');
|
|
2365
|
+
};
|
|
2366
|
+
const focusLast$5 = async () => {
|
|
2367
|
+
await invoke('Main.focusLast');
|
|
2368
|
+
};
|
|
2369
|
+
const handleTabContextMenu = async (button, x, y) => {
|
|
2370
|
+
await invoke('Main.handleTabContextMenu', button, x, y);
|
|
2371
|
+
};
|
|
2372
|
+
const copyPath$2 = async () => {
|
|
2373
|
+
await invoke('Main.copyPath');
|
|
2374
|
+
};
|
|
2375
|
+
const copyRelativePath$1 = async () => {
|
|
2376
|
+
await invoke('Main.copyRelativePath');
|
|
2377
|
+
};
|
|
2378
|
+
|
|
2379
|
+
const Main = {
|
|
2380
|
+
closeActiveEditor,
|
|
2381
|
+
closeAllEditors,
|
|
2382
|
+
closeOthers,
|
|
2383
|
+
closeTabsLeft,
|
|
2384
|
+
closeTabsRight,
|
|
2385
|
+
copyPath: copyPath$2,
|
|
2386
|
+
copyRelativePath: copyRelativePath$1,
|
|
2387
|
+
focusFirst: focusFirst$6,
|
|
2388
|
+
focusLast: focusLast$5,
|
|
2389
|
+
focusNext: focusNext$7,
|
|
2390
|
+
focusPrevious: focusPrevious$6,
|
|
2391
|
+
handleClickTogglePreview,
|
|
2392
|
+
handleModifiedStatusChange,
|
|
2393
|
+
handleTabContextMenu,
|
|
2394
|
+
openKeyBindings,
|
|
2395
|
+
openUri,
|
|
2396
|
+
save,
|
|
2397
|
+
saveAll,
|
|
2398
|
+
saveState,
|
|
2399
|
+
selectTab: selectTab$2,
|
|
2400
|
+
splitDown,
|
|
2401
|
+
splitRight
|
|
2402
|
+
};
|
|
2403
|
+
|
|
2404
|
+
const open$9 = async (leftUri, rightUri) => {
|
|
2405
|
+
await openUri(`diff://${leftUri}<->${rightUri}`);
|
|
2406
|
+
};
|
|
2407
|
+
const shouldHaveContentLeft = async expectedContent => {
|
|
2408
|
+
const contentLeft = createLocator('.DiffEditorContentLeft');
|
|
2409
|
+
await expect$1(contentLeft).toHaveText(expectedContent);
|
|
2410
|
+
};
|
|
2411
|
+
const shouldHaveContentRight = async expectedContent => {
|
|
2412
|
+
const contentRight = createLocator('.DiffEditorContentRight');
|
|
2413
|
+
await expect$1(contentRight).toHaveText(expectedContent);
|
|
2414
|
+
};
|
|
2415
|
+
|
|
2416
|
+
const DiffView = {
|
|
2417
|
+
open: open$9,
|
|
2418
|
+
shouldHaveContentLeft,
|
|
2419
|
+
shouldHaveContentRight
|
|
2420
|
+
};
|
|
2421
|
+
|
|
2297
2422
|
const isDiagnosticEqual = (actual, expected) => {
|
|
2298
2423
|
return actual.rowIndex === expected.rowIndex && actual.columnIndex === expected.columnIndex && actual.endRowIndex === expected.endRowIndex && actual.endColumnIndex === expected.endColumnIndex && actual.message === expected.message && actual.type === expected.type;
|
|
2299
2424
|
};
|
|
@@ -2846,7 +2971,7 @@ const focus$1 = async () => {
|
|
|
2846
2971
|
const setDeltaY = async deltaY => {
|
|
2847
2972
|
await invoke('Explorer.setDeltaY', deltaY);
|
|
2848
2973
|
};
|
|
2849
|
-
const focusNext$
|
|
2974
|
+
const focusNext$6 = async () => {
|
|
2850
2975
|
await invoke('Explorer.focusNext');
|
|
2851
2976
|
};
|
|
2852
2977
|
const selectUp = async () => {
|
|
@@ -2873,10 +2998,10 @@ const clickCurrent = async () => {
|
|
|
2873
2998
|
const handleArrowLeft$1 = async () => {
|
|
2874
2999
|
await invoke('Explorer.handleArrowLeft');
|
|
2875
3000
|
};
|
|
2876
|
-
const focusLast$
|
|
3001
|
+
const focusLast$4 = async () => {
|
|
2877
3002
|
await invoke('Explorer.focusLast');
|
|
2878
3003
|
};
|
|
2879
|
-
const focusFirst$
|
|
3004
|
+
const focusFirst$5 = async () => {
|
|
2880
3005
|
await invoke('Explorer.focusFirst');
|
|
2881
3006
|
};
|
|
2882
3007
|
const removeDirent = async () => {
|
|
@@ -2891,10 +3016,10 @@ const newFile = async () => {
|
|
|
2891
3016
|
const newFolder = async () => {
|
|
2892
3017
|
await invoke('Explorer.newFolder');
|
|
2893
3018
|
};
|
|
2894
|
-
const copyPath$
|
|
3019
|
+
const copyPath$1 = async () => {
|
|
2895
3020
|
await invoke('Explorer.copyPath');
|
|
2896
3021
|
};
|
|
2897
|
-
const copyRelativePath
|
|
3022
|
+
const copyRelativePath = async () => {
|
|
2898
3023
|
await invoke('Explorer.copyRelativePath');
|
|
2899
3024
|
};
|
|
2900
3025
|
const handleClick$3 = async index => {
|
|
@@ -2951,15 +3076,15 @@ const Explorer = {
|
|
|
2951
3076
|
cancelEdit,
|
|
2952
3077
|
clickCurrent,
|
|
2953
3078
|
collapseAll: collapseAll$2,
|
|
2954
|
-
copyPath: copyPath$
|
|
2955
|
-
copyRelativePath
|
|
3079
|
+
copyPath: copyPath$1,
|
|
3080
|
+
copyRelativePath,
|
|
2956
3081
|
expandAll,
|
|
2957
3082
|
expandRecursively,
|
|
2958
3083
|
focus: focus$1,
|
|
2959
|
-
focusFirst: focusFirst$
|
|
3084
|
+
focusFirst: focusFirst$5,
|
|
2960
3085
|
focusIndex: focusIndex$5,
|
|
2961
|
-
focusLast: focusLast$
|
|
2962
|
-
focusNext: focusNext$
|
|
3086
|
+
focusLast: focusLast$4,
|
|
3087
|
+
focusNext: focusNext$6,
|
|
2963
3088
|
handleArrowLeft: handleArrowLeft$1,
|
|
2964
3089
|
handleBlur,
|
|
2965
3090
|
handleClick: handleClick$3,
|
|
@@ -3027,17 +3152,17 @@ const handleClickSetColorTheme = async () => {
|
|
|
3027
3152
|
const selectFeature = name => {
|
|
3028
3153
|
return invoke('ExtensionDetail.selectFeature', name);
|
|
3029
3154
|
};
|
|
3030
|
-
const selectTab$
|
|
3155
|
+
const selectTab$1 = name => {
|
|
3031
3156
|
return invoke('ExtensionDetail.selectTab', name);
|
|
3032
3157
|
};
|
|
3033
3158
|
const selectDetails = async () => {
|
|
3034
|
-
await selectTab$
|
|
3159
|
+
await selectTab$1('Details');
|
|
3035
3160
|
};
|
|
3036
3161
|
const selectFeatures = async () => {
|
|
3037
|
-
await selectTab$
|
|
3162
|
+
await selectTab$1('Features');
|
|
3038
3163
|
};
|
|
3039
3164
|
const selectChangelog = async () => {
|
|
3040
|
-
await selectTab$
|
|
3165
|
+
await selectTab$1('Changelog');
|
|
3041
3166
|
};
|
|
3042
3167
|
const focusNextTab = async () => {
|
|
3043
3168
|
await invoke('ExtensionDetail.focusNextTab');
|
|
@@ -3112,7 +3237,7 @@ const ExtensionDetail = {
|
|
|
3112
3237
|
selectDetails,
|
|
3113
3238
|
selectFeature,
|
|
3114
3239
|
selectFeatures,
|
|
3115
|
-
selectTab: selectTab$
|
|
3240
|
+
selectTab: selectTab$1
|
|
3116
3241
|
};
|
|
3117
3242
|
|
|
3118
3243
|
const open$7 = async id => {
|
|
@@ -3192,11 +3317,14 @@ const getFileMapNode = async url => {
|
|
|
3192
3317
|
const fileUrl = toFileUrl(url);
|
|
3193
3318
|
const allFiles = await getDirents(fileUrl);
|
|
3194
3319
|
const fileMap = Object.create(null);
|
|
3195
|
-
await Promise.all(allFiles.map(
|
|
3196
|
-
|
|
3320
|
+
const contents = await Promise.all(allFiles.map(filePath => {
|
|
3321
|
+
return readFile$1(filePath);
|
|
3322
|
+
}));
|
|
3323
|
+
allFiles.map((filePath, index) => {
|
|
3324
|
+
const content = contents[index];
|
|
3197
3325
|
const relativePaths = filePath.slice(fileUrl.length + 1);
|
|
3198
3326
|
fileMap[relativePaths] = content;
|
|
3199
|
-
})
|
|
3327
|
+
});
|
|
3200
3328
|
return fileMap;
|
|
3201
3329
|
};
|
|
3202
3330
|
|
|
@@ -3360,10 +3488,10 @@ const FileSystem = {
|
|
|
3360
3488
|
writeJson
|
|
3361
3489
|
};
|
|
3362
3490
|
|
|
3363
|
-
const focusNext$
|
|
3491
|
+
const focusNext$5 = async () => {
|
|
3364
3492
|
await invoke('FindWidget.focusNext');
|
|
3365
3493
|
};
|
|
3366
|
-
const focusPrevious$
|
|
3494
|
+
const focusPrevious$5 = async () => {
|
|
3367
3495
|
await invoke('FindWidget.focusPrevious');
|
|
3368
3496
|
};
|
|
3369
3497
|
const close = async () => {
|
|
@@ -3409,9 +3537,9 @@ const focusPreviousElement = async () => {
|
|
|
3409
3537
|
const FindWidget = {
|
|
3410
3538
|
close,
|
|
3411
3539
|
focusElement,
|
|
3412
|
-
focusNext: focusNext$
|
|
3540
|
+
focusNext: focusNext$5,
|
|
3413
3541
|
focusNextElement,
|
|
3414
|
-
focusPrevious: focusPrevious$
|
|
3542
|
+
focusPrevious: focusPrevious$5,
|
|
3415
3543
|
focusPreviousElement,
|
|
3416
3544
|
replace,
|
|
3417
3545
|
replaceAll: replaceAll$1,
|
|
@@ -3435,24 +3563,24 @@ const IconTheme = {
|
|
|
3435
3563
|
const selectIndex$4 = async index => {
|
|
3436
3564
|
return invoke('IframeInspector.selectIndex', index);
|
|
3437
3565
|
};
|
|
3438
|
-
const focusNext$
|
|
3566
|
+
const focusNext$4 = async () => {
|
|
3439
3567
|
return invoke('IframeInspector.focusNext');
|
|
3440
3568
|
};
|
|
3441
|
-
const focusPrevious$
|
|
3569
|
+
const focusPrevious$4 = async () => {
|
|
3442
3570
|
return invoke('IframeInspector.focusPrevious');
|
|
3443
3571
|
};
|
|
3444
|
-
const focusFirst$
|
|
3572
|
+
const focusFirst$4 = async () => {
|
|
3445
3573
|
return invoke('IframeInspector.focusFirst');
|
|
3446
3574
|
};
|
|
3447
|
-
const focusLast$
|
|
3575
|
+
const focusLast$3 = async () => {
|
|
3448
3576
|
return invoke('IframeInspector.focusLast');
|
|
3449
3577
|
};
|
|
3450
3578
|
|
|
3451
3579
|
const IframeInspector = {
|
|
3452
|
-
focusFirst: focusFirst$
|
|
3453
|
-
focusLast: focusLast$
|
|
3454
|
-
focusNext: focusNext$
|
|
3455
|
-
focusPrevious: focusPrevious$
|
|
3580
|
+
focusFirst: focusFirst$4,
|
|
3581
|
+
focusLast: focusLast$3,
|
|
3582
|
+
focusNext: focusNext$4,
|
|
3583
|
+
focusPrevious: focusPrevious$4,
|
|
3456
3584
|
selectIndex: selectIndex$4
|
|
3457
3585
|
};
|
|
3458
3586
|
|
|
@@ -3471,19 +3599,19 @@ const handleWheel$1 = (deltaMode, deltaY) => {
|
|
|
3471
3599
|
const handleDoubleClick = (x, y) => {
|
|
3472
3600
|
return invoke('KeyBindings.handleDoubleClick', x, y);
|
|
3473
3601
|
};
|
|
3474
|
-
const focusNext$
|
|
3602
|
+
const focusNext$3 = () => {
|
|
3475
3603
|
return invoke('KeyBindings.focusNext');
|
|
3476
3604
|
};
|
|
3477
|
-
const focusPrevious$
|
|
3605
|
+
const focusPrevious$3 = () => {
|
|
3478
3606
|
return invoke('KeyBindings.focusPrevious');
|
|
3479
3607
|
};
|
|
3480
|
-
const focusFirst$
|
|
3608
|
+
const focusFirst$3 = () => {
|
|
3481
3609
|
return invoke('KeyBindings.focusFirst');
|
|
3482
3610
|
};
|
|
3483
3611
|
const focusIndex$4 = index => {
|
|
3484
3612
|
return invoke('KeyBindings.focusIndex', index);
|
|
3485
3613
|
};
|
|
3486
|
-
const focusLast$
|
|
3614
|
+
const focusLast$2 = () => {
|
|
3487
3615
|
return invoke('KeyBindings.focusLast');
|
|
3488
3616
|
};
|
|
3489
3617
|
const toggleRecordingKeys = () => {
|
|
@@ -3532,11 +3660,11 @@ const KeyBindingsEditor = {
|
|
|
3532
3660
|
clearInput,
|
|
3533
3661
|
copyCommandId,
|
|
3534
3662
|
copyCommandTitle,
|
|
3535
|
-
focusFirst: focusFirst$
|
|
3663
|
+
focusFirst: focusFirst$3,
|
|
3536
3664
|
focusIndex: focusIndex$4,
|
|
3537
|
-
focusLast: focusLast$
|
|
3538
|
-
focusNext: focusNext$
|
|
3539
|
-
focusPrevious: focusPrevious$
|
|
3665
|
+
focusLast: focusLast$2,
|
|
3666
|
+
focusNext: focusNext$3,
|
|
3667
|
+
focusPrevious: focusPrevious$3,
|
|
3540
3668
|
handleClick: handleClick$1,
|
|
3541
3669
|
handleContextMenu: handleContextMenu$3,
|
|
3542
3670
|
handleDoubleClick,
|
|
@@ -3605,18 +3733,6 @@ const KeyBoard = {
|
|
|
3605
3733
|
press
|
|
3606
3734
|
};
|
|
3607
3735
|
|
|
3608
|
-
const showSideBar = async () => {
|
|
3609
|
-
await execute$1('Layout.showSideBar');
|
|
3610
|
-
};
|
|
3611
|
-
const handleWorkspaceRefresh = async () => {
|
|
3612
|
-
await invoke('Layout.handleWorkspaceRefresh');
|
|
3613
|
-
};
|
|
3614
|
-
|
|
3615
|
-
const Layout = {
|
|
3616
|
-
handleWorkspaceRefresh,
|
|
3617
|
-
showSideBar
|
|
3618
|
-
};
|
|
3619
|
-
|
|
3620
3736
|
const open$4 = async () => {
|
|
3621
3737
|
await invoke('Main.openUri', 'language-models:///1');
|
|
3622
3738
|
};
|
|
@@ -3641,92 +3757,16 @@ const LanguageModels = {
|
|
|
3641
3757
|
removeModel
|
|
3642
3758
|
};
|
|
3643
3759
|
|
|
3644
|
-
const
|
|
3645
|
-
await
|
|
3646
|
-
};
|
|
3647
|
-
const splitRight = async () => {
|
|
3648
|
-
await invoke('Main.splitRight');
|
|
3649
|
-
};
|
|
3650
|
-
const splitDown = async () => {
|
|
3651
|
-
await invoke('Main.splitDown');
|
|
3652
|
-
};
|
|
3653
|
-
const openKeyBindings = async () => {
|
|
3654
|
-
await invoke('Main.openKeyBindings');
|
|
3655
|
-
};
|
|
3656
|
-
const handleClickTogglePreview = async () => {
|
|
3657
|
-
await invoke('Main.handleClickTogglePreview');
|
|
3658
|
-
};
|
|
3659
|
-
const closeAllEditors = async () => {
|
|
3660
|
-
await invoke('Main.closeAllEditors');
|
|
3661
|
-
};
|
|
3662
|
-
const closeTabsLeft = async () => {
|
|
3663
|
-
await invoke('Main.closeTabsLeft');
|
|
3664
|
-
};
|
|
3665
|
-
const handleModifiedStatusChange = async (uri, newStatus) => {
|
|
3666
|
-
await invoke('Main.handleModifiedStatusChange', uri, newStatus);
|
|
3667
|
-
};
|
|
3668
|
-
const closeTabsRight = async () => {
|
|
3669
|
-
await invoke('Main.closeTabsRight');
|
|
3670
|
-
};
|
|
3671
|
-
const selectTab$1 = async (groupIndex, tabIndex) => {
|
|
3672
|
-
await invoke('Main.selectTab', groupIndex, tabIndex);
|
|
3673
|
-
};
|
|
3674
|
-
const closeOthers = async () => {
|
|
3675
|
-
await invoke('Main.closeOthers');
|
|
3676
|
-
};
|
|
3677
|
-
const closeActiveEditor = async () => {
|
|
3678
|
-
await invoke('Main.closeActiveEditor');
|
|
3679
|
-
};
|
|
3680
|
-
const save = async () => {
|
|
3681
|
-
await invoke('Main.save');
|
|
3682
|
-
};
|
|
3683
|
-
const saveAll = async () => {
|
|
3684
|
-
await invoke('Main.saveAll');
|
|
3685
|
-
};
|
|
3686
|
-
const focusFirst$3 = async () => {
|
|
3687
|
-
await invoke('Main.focusFirst');
|
|
3688
|
-
};
|
|
3689
|
-
const focusNext$3 = async () => {
|
|
3690
|
-
await invoke('Main.focusNext');
|
|
3691
|
-
};
|
|
3692
|
-
const focusPrevious$3 = async () => {
|
|
3693
|
-
await invoke('Main.focusPrevious');
|
|
3694
|
-
};
|
|
3695
|
-
const focusLast$2 = async () => {
|
|
3696
|
-
await invoke('Main.focusLast');
|
|
3697
|
-
};
|
|
3698
|
-
const handleTabContextMenu = async (button, x, y) => {
|
|
3699
|
-
await invoke('Main.handleTabContextMenu', button, x, y);
|
|
3700
|
-
};
|
|
3701
|
-
const copyPath$1 = async () => {
|
|
3702
|
-
await invoke('Main.copyPath');
|
|
3760
|
+
const showSideBar = async () => {
|
|
3761
|
+
await execute$1('Layout.showSideBar');
|
|
3703
3762
|
};
|
|
3704
|
-
const
|
|
3705
|
-
await invoke('
|
|
3763
|
+
const handleWorkspaceRefresh = async () => {
|
|
3764
|
+
await invoke('Layout.handleWorkspaceRefresh');
|
|
3706
3765
|
};
|
|
3707
3766
|
|
|
3708
|
-
const
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
closeOthers,
|
|
3712
|
-
closeTabsLeft,
|
|
3713
|
-
closeTabsRight,
|
|
3714
|
-
copyPath: copyPath$1,
|
|
3715
|
-
copyRelativePath,
|
|
3716
|
-
focusFirst: focusFirst$3,
|
|
3717
|
-
focusLast: focusLast$2,
|
|
3718
|
-
focusNext: focusNext$3,
|
|
3719
|
-
focusPrevious: focusPrevious$3,
|
|
3720
|
-
handleClickTogglePreview,
|
|
3721
|
-
handleModifiedStatusChange,
|
|
3722
|
-
handleTabContextMenu,
|
|
3723
|
-
openKeyBindings,
|
|
3724
|
-
openUri,
|
|
3725
|
-
save,
|
|
3726
|
-
saveAll,
|
|
3727
|
-
selectTab: selectTab$1,
|
|
3728
|
-
splitDown,
|
|
3729
|
-
splitRight
|
|
3767
|
+
const Layout = {
|
|
3768
|
+
handleWorkspaceRefresh,
|
|
3769
|
+
showSideBar
|
|
3730
3770
|
};
|
|
3731
3771
|
|
|
3732
3772
|
const enableMemoryOpener = async () => {
|
|
@@ -4521,6 +4561,7 @@ const createApi = (platform, assetDir) => {
|
|
|
4521
4561
|
ContextMenu,
|
|
4522
4562
|
Developer,
|
|
4523
4563
|
Dialog,
|
|
4564
|
+
DiffView,
|
|
4524
4565
|
Editor,
|
|
4525
4566
|
EditorCompletion,
|
|
4526
4567
|
EditorHover,
|