@lvce-editor/test-worker 17.0.2 → 17.1.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 CHANGED
@@ -999,6 +999,16 @@ interface RunAndDebug {
999
999
  readonly show: () => Promise<void>;
1000
1000
  }
1001
1001
 
1002
+ interface RunningExtensions {
1003
+ readonly copyId: (index: number) => Promise<void>;
1004
+ readonly disable: (index: number) => Promise<void>;
1005
+ readonly disableWorkspace: (index: number) => Promise<void>;
1006
+ readonly handleContextMenu: (index: number, x?: number, y?: number) => Promise<void>;
1007
+ readonly reportIssue: (index: number) => Promise<void>;
1008
+ readonly show: () => Promise<void>;
1009
+ readonly startProfile: () => Promise<void>;
1010
+ }
1011
+
1002
1012
  interface Search {
1003
1013
  readonly clearSearchResults: () => Promise<void>;
1004
1014
  readonly collapseAll: () => Promise<void>;
@@ -1159,6 +1169,7 @@ export interface TestApi {
1159
1169
  readonly QuickPick: QuickPick
1160
1170
  readonly References: References
1161
1171
  readonly RunAndDebug: RunAndDebug
1172
+ readonly RunningExtensions: RunningExtensions
1162
1173
  readonly Search: Search
1163
1174
  readonly Settings: Settings
1164
1175
  readonly SettingsView: SettingsView
@@ -298,7 +298,14 @@ class IpcError extends VError {
298
298
  const cause = new Error(message);
299
299
  // @ts-ignore
300
300
  cause.code = code;
301
- cause.stack = stack;
301
+ if (stack) {
302
+ Object.defineProperty(cause, 'stack', {
303
+ configurable: true,
304
+ enumerable: false,
305
+ value: stack,
306
+ writable: true
307
+ });
308
+ }
302
309
  super(cause, betterMessage);
303
310
  } else {
304
311
  super(betterMessage);
@@ -1863,7 +1870,7 @@ const {
1863
1870
  expect
1864
1871
  } = Expect$1;
1865
1872
 
1866
- const show$8 = async () => {
1873
+ const show$9 = async () => {
1867
1874
  return invoke('About.showAbout');
1868
1875
  };
1869
1876
  const handleClickOk = async () => {
@@ -1888,7 +1895,7 @@ const About = {
1888
1895
  handleClickClose: handleClickClose$1,
1889
1896
  handleClickCopy,
1890
1897
  handleClickOk,
1891
- show: show$8
1898
+ show: show$9
1892
1899
  };
1893
1900
 
1894
1901
  const focus$2 = async () => {
@@ -1924,7 +1931,7 @@ const handleClick$4 = async index => {
1924
1931
  const handleSideBarHidden = async () => {
1925
1932
  await invoke('ActivityBar.handleSideBarHidden');
1926
1933
  };
1927
- const handleContextMenu$5 = async () => {
1934
+ const handleContextMenu$6 = async () => {
1928
1935
  await invoke('ActivityBar.handleContextMenu');
1929
1936
  };
1930
1937
  const setUpdateState = async config => {
@@ -1948,7 +1955,7 @@ const ActivityBar = {
1948
1955
  focusPrevious: focusPrevious$8,
1949
1956
  handleClick: handleClick$4,
1950
1957
  handleClickSettings: handleClickSettings$1,
1951
- handleContextMenu: handleContextMenu$5,
1958
+ handleContextMenu: handleContextMenu$6,
1952
1959
  handleSideBarHidden,
1953
1960
  resize,
1954
1961
  selectCurrent,
@@ -2024,7 +2031,7 @@ const enterNewLine = async () => {
2024
2031
  const setScrollDownButtonEnabled = async enabled => {
2025
2032
  await invoke('Chat.setScrollDownButtonEnabled', enabled);
2026
2033
  };
2027
- const show$7 = async () => {
2034
+ const show$8 = async () => {
2028
2035
  await invoke('Layout.showSecondarySideBar');
2029
2036
  await invoke('Chat.reset');
2030
2037
  };
@@ -2255,7 +2262,7 @@ const Chat = {
2255
2262
  setStreamingEnabled,
2256
2263
  setUseOwnBackend,
2257
2264
  shouldHaveComposerSelection,
2258
- show: show$7,
2265
+ show: show$8,
2259
2266
  showComposerAttachmentPreviewOverlay,
2260
2267
  useMockApi
2261
2268
  };
@@ -3464,7 +3471,7 @@ const EditorCompletion = {
3464
3471
  selectIndex: selectIndex$6
3465
3472
  };
3466
3473
 
3467
- const show$6 = async () => {
3474
+ const show$7 = async () => {
3468
3475
  await invoke('Editor.showHover2');
3469
3476
  };
3470
3477
  const close$2 = async () => {
@@ -3473,7 +3480,7 @@ const close$2 = async () => {
3473
3480
 
3474
3481
  const EditorHover = {
3475
3482
  close: close$2,
3476
- show: show$6
3483
+ show: show$7
3477
3484
  };
3478
3485
 
3479
3486
  const handleInput$6 = async value => {
@@ -3687,7 +3694,7 @@ const executeCompletionProvider = async (textDocument, ...args) => {
3687
3694
  const enableWorkspace = async id => {
3688
3695
  await invoke$2('Extensions.enableWorkspace', id);
3689
3696
  };
3690
- const disableWorkspace = async id => {
3697
+ const disableWorkspace$1 = async id => {
3691
3698
  await invoke$2('Extensions.disableWorkspace', id);
3692
3699
  };
3693
3700
  const addNodeExtension = async relativePath => {
@@ -3699,7 +3706,7 @@ const addNodeExtension = async relativePath => {
3699
3706
  const Extension = {
3700
3707
  addNodeExtension,
3701
3708
  addWebExtension,
3702
- disableWorkspace,
3709
+ disableWorkspace: disableWorkspace$1,
3703
3710
  enableWorkspace,
3704
3711
  executeCompletionProvider,
3705
3712
  executeFormattingProvider
@@ -3838,7 +3845,7 @@ const handleClick$2 = async index => {
3838
3845
  const handleClickFilter = async () => {
3839
3846
  await invoke('Extensions.handleClickFilter');
3840
3847
  };
3841
- const handleContextMenu$4 = async (button, x, y) => {
3848
+ const handleContextMenu$5 = async (button, x, y) => {
3842
3849
  await invoke('Extensions.handleContextMenu', button, x, y);
3843
3850
  };
3844
3851
  const copyExtensionInfo = async () => {
@@ -3860,7 +3867,7 @@ const ExtensionSearch = {
3860
3867
  copyExtensionInfo,
3861
3868
  handleClick: handleClick$2,
3862
3869
  handleClickFilter,
3863
- handleContextMenu: handleContextMenu$4,
3870
+ handleContextMenu: handleContextMenu$5,
3864
3871
  handleInput: handleInput$5,
3865
3872
  open: open$7,
3866
3873
  setExtensionStatus
@@ -4475,7 +4482,7 @@ const sortByPrecedence = () => {
4475
4482
  const stopRecordingKeys = () => {
4476
4483
  return invoke('KeyBindings.stopRecordingKeys');
4477
4484
  };
4478
- const handleContextMenu$3 = (button, x, y) => {
4485
+ const handleContextMenu$4 = (button, x, y) => {
4479
4486
  return invoke('KeyBindings.handleContextMenu', button, x, y);
4480
4487
  };
4481
4488
  const copyCommandId = () => {
@@ -4512,7 +4519,7 @@ const KeyBindingsEditor = {
4512
4519
  focusNext: focusNext$4,
4513
4520
  focusPrevious: focusPrevious$4,
4514
4521
  handleClick: handleClick$1,
4515
- handleContextMenu: handleContextMenu$3,
4522
+ handleContextMenu: handleContextMenu$4,
4516
4523
  handleDoubleClick,
4517
4524
  handleInput: handleInput$4,
4518
4525
  handleWheel: handleWheel$1,
@@ -4685,7 +4692,7 @@ const Panel = {
4685
4692
  unmaximize
4686
4693
  };
4687
4694
 
4688
- const show$5 = async () => {
4695
+ const show$6 = async () => {
4689
4696
  await open$4('Output');
4690
4697
  await invoke('Panel.selectIndex', 1);
4691
4698
  };
@@ -4707,7 +4714,7 @@ const Output = {
4707
4714
  handleFilterInput: handleFilterInput$1,
4708
4715
  saveAs,
4709
4716
  selectChannel,
4710
- show: show$5
4717
+ show: show$6
4711
4718
  };
4712
4719
 
4713
4720
  const getIsFirefox = () => {
@@ -4954,7 +4961,7 @@ const ProcessExplorer = {
4954
4961
  table
4955
4962
  };
4956
4963
 
4957
- const show$4 = async () => {
4964
+ const show$5 = async () => {
4958
4965
  await invoke('Panel.selectIndex', 0);
4959
4966
  };
4960
4967
  const handleFilterInput = async text => {
@@ -4993,7 +5000,7 @@ const Problems = {
4993
5000
  handleClickAt: handleClickAt$1,
4994
5001
  handleFilterInput,
4995
5002
  handleIconThemeChange,
4996
- show: show$4,
5003
+ show: show$5,
4997
5004
  viewAsList,
4998
5005
  viewAsTable
4999
5006
  };
@@ -5118,7 +5125,7 @@ const References = {
5118
5125
  refresh
5119
5126
  };
5120
5127
 
5121
- const show$3 = async () => {
5128
+ const show$4 = async () => {
5122
5129
  await open$8('Run And Debug');
5123
5130
  };
5124
5131
  const handleClickSectionBreakPoints = async () => {
@@ -5159,7 +5166,39 @@ const RunAndDebug = {
5159
5166
  handleWatchValueChange,
5160
5167
  selectIndex: selectIndex$2,
5161
5168
  setPauseOnExceptions,
5162
- show: show$3
5169
+ show: show$4
5170
+ };
5171
+
5172
+ const show$3 = async () => {
5173
+ await invoke('Main.openUri', 'running-extensions:///1');
5174
+ };
5175
+ const handleContextMenu$3 = async (index, x = 0, y = 0) => {
5176
+ await invoke('RunningExtensions.handleContextMenu', index, x, y);
5177
+ };
5178
+ const copyId = async index => {
5179
+ await invoke('RunningExtensions.copyId', index);
5180
+ };
5181
+ const disable = async index => {
5182
+ await invoke('RunningExtensions.disable', index);
5183
+ };
5184
+ const disableWorkspace = async index => {
5185
+ await invoke('RunningExtensions.disableWorkspace', index);
5186
+ };
5187
+ const reportIssue = async index => {
5188
+ await invoke('RunningExtensions.reportIssue', index);
5189
+ };
5190
+ const startProfile = async () => {
5191
+ await invoke('RunningExtensions.startProfile');
5192
+ };
5193
+
5194
+ const RunningExtensions = {
5195
+ copyId,
5196
+ disable,
5197
+ disableWorkspace,
5198
+ handleContextMenu: handleContextMenu$3,
5199
+ reportIssue,
5200
+ show: show$3,
5201
+ startProfile
5163
5202
  };
5164
5203
 
5165
5204
  const show$2 = async () => {
@@ -5673,6 +5712,7 @@ const createApi = (platform, assetDir) => {
5673
5712
  QuickPick,
5674
5713
  References,
5675
5714
  RunAndDebug,
5715
+ RunningExtensions,
5676
5716
  Search,
5677
5717
  Settings,
5678
5718
  SettingsView,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "17.0.2",
3
+ "version": "17.1.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",