Verified Commit cb57ccd8 authored by Karl Jamoralin's avatar Karl Jamoralin Committed by GitLab
Browse files

refactor(sandbox): Include sandbox_worker.js in desktop packaging

parent 0d39c7c1
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -22,7 +22,6 @@ const copyLanguageServerAssets = env => {
  const platformAssets = glob.sync(
    [
      path.join(lspBasePath, platformDirectory, '**', 'main-bundle*.*'),
      path.join(lspBasePath, 'main-bundle-node.*'),
      path.join(lspBasePath, '*.wasm'),
      path.join(lspBasePath, '**', '*.wasm'),
      path.join(lspBasePath, 'webviews', '**', '*.*'),
+9 −2
Original line number Diff line number Diff line
@@ -22,9 +22,16 @@ const desktopWebviews = {
};

async function copyLanguageServerAssets() {
  const assets = glob.sync(path.join(lspBasePath, 'rg?(.exe)'), {
  const assets = glob.sync(
    [
      path.join(lspBasePath, 'rg?(.exe)'),
      path.join(lspBasePath, 'main-bundle-node.*'),
      path.join(lspBasePath, 'sandbox_worker.*'),
    ],
    {
      windowsPathsNoEscape: true,
  });
    },
  );
  const copyPromises = assets.map(asset =>
    copy(asset, path.join(`dist-desktop/assets/language-server`, asset.replace(lspBasePath, ''))),
  );