@lvce-editor/test-worker 15.0.0 → 15.2.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.
@@ -3801,7 +3801,9 @@ const remove = async uri => {
3801
3801
  const getTmpDirFileScheme = async () => {
3802
3802
  const tmpFolder = await invoke('PlatformPaths.getTmpDir');
3803
3803
  const tmpUri = tmpFolder.startsWith('file://') ? tmpFolder : `file://${tmpFolder}`;
3804
- return `${tmpUri}/test-${Date.now()}`;
3804
+ const uri = `${tmpUri}/test-${Date.now()}`;
3805
+ await mkdir(uri);
3806
+ return uri;
3805
3807
  };
3806
3808
  const getTmpDir = async ({
3807
3809
  scheme = Memfs
@@ -3944,41 +3946,40 @@ const FindWidget = {
3944
3946
  };
3945
3947
 
3946
3948
  const init = async () => {
3947
- // await RendererWorker.invoke('ExtensionHostManagement.activateByEvent', 'onSourceControl:')
3948
3949
  await invoke('ExtensionHost.executeCommand', 'git.init');
3949
3950
  };
3950
3951
  const clone = async (repositoryUrl, cwd) => {
3951
- await invoke('ExtensionHost.executeCommand', 'Git.clone', repositoryUrl, cwd);
3952
+ await invoke('ExtensionHost.executeCommand', 'git.clone', repositoryUrl, cwd);
3952
3953
  };
3953
3954
  const add = async pathSpec => {
3954
- await invoke('ExtensionHost.executeCommand', 'Git.add', pathSpec);
3955
+ await invoke('ExtensionHost.executeCommand', 'git.add', pathSpec);
3955
3956
  };
3956
3957
  const commit = async message => {
3957
- await invoke('ExtensionHost.executeCommand', 'Git.commit', message);
3958
+ await invoke('ExtensionHost.executeCommand', 'git.commit', message);
3958
3959
  };
3959
3960
  const push$1 = async (remote, branch) => {
3960
- await invoke('ExtensionHost.executeCommand', 'Git.push', remote, branch);
3961
+ await invoke('ExtensionHost.executeCommand', 'git.push', remote, branch);
3961
3962
  };
3962
3963
  const pull = async (remote, branch) => {
3963
- await invoke('ExtensionHost.executeCommand', 'Git.pull', remote, branch);
3964
+ await invoke('ExtensionHost.executeCommand', 'git.pull', remote, branch);
3964
3965
  };
3965
3966
  const fetch$1 = async remote => {
3966
- await invoke('ExtensionHost.executeCommand', 'Git.fetch', remote);
3967
+ await invoke('ExtensionHost.executeCommand', 'git.fetch', remote);
3967
3968
  };
3968
3969
  const checkout = async ref => {
3969
- await invoke('ExtensionHost.executeCommand', 'Git.checkout', ref);
3970
+ await invoke('ExtensionHost.executeCommand', 'git.checkout', ref);
3970
3971
  };
3971
3972
  const branch = async name => {
3972
- await invoke('ExtensionHost.executeCommand', 'Git.branch', name);
3973
+ await invoke('ExtensionHost.executeCommand', 'git.branch', name);
3973
3974
  };
3974
3975
  const status = async () => {
3975
- return invoke('ExtensionHost.executeCommand', 'Git.status');
3976
+ return invoke('ExtensionHost.executeCommand', 'git.status');
3976
3977
  };
3977
3978
  const addRemote = async (name, remoteUrl) => {
3978
- await invoke('ExtensionHost.executeCommand', 'Git.addRemote', name, remoteUrl);
3979
+ await invoke('ExtensionHost.executeCommand', 'git.addRemote', name, remoteUrl);
3979
3980
  };
3980
3981
  const setConfig = async (key, value) => {
3981
- await invoke('ExtensionHost.executeCommand', 'Git.setConfig', key, value);
3982
+ await invoke('ExtensionHost.executeCommand', 'git.setConfig', key, value);
3982
3983
  };
3983
3984
  const shouldHaveInvocations = async invocations => {
3984
3985
  // TODO
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "15.0.0",
3
+ "version": "15.2.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",