Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into bugfix/prompt-install…
Browse files Browse the repository at this point in the history
…-pip
  • Loading branch information
samclark2015 committed Jan 22, 2025
2 parents e3d1c97 + c6906c6 commit 035e589
Showing 28 changed files with 471 additions and 1,682 deletions.
23 changes: 22 additions & 1 deletion .github/workflows/test-merge.yml
Original file line number Diff line number Diff line change
@@ -17,6 +17,27 @@ jobs:
currents_tags: "merge,electron/linux"
secrets: inherit

e2e-windows-electron:
name: e2e
uses: ./.github/workflows/test-e2e-windows.yml
with:
grep: ""
display_name: "electron (windows)"
currents_tags: "merge,electron/windows"
report_testrail: false
secrets: inherit

e2e-linux-browser:
name: e2e
uses: ./.github/workflows/test-e2e-linux.yml
with:
grep: ""
display_name: "browser (linux)"
project: "e2e-browser"
currents_tags: "merge,browser/linux"
report_testrail: false
secrets: inherit

unit-tests:
name: test
uses: ./.github/workflows/test-unit.yml
@@ -29,7 +50,7 @@ jobs:

slack-notify:
if: failure()
needs: [unit-tests, integration-tests, e2e-electron]
needs: [unit-tests, integration-tests, e2e-electron, e2e-windows-electron, e2e-linux-browser]
runs-on: ubuntu-latest
steps:
- name: Send Slack Notification
10 changes: 10 additions & 0 deletions .vscode/shared.code-snippets
Original file line number Diff line number Diff line change
@@ -49,5 +49,15 @@
"private readonly _onDid$1 = new Emitter<$2>();",
"readonly onDid$1: Event<$2> = this._onDid$1.event;"
],
},
"Positron Markers": {
"scope": "javascript,typescript",
"prefix": "// --- Start Positron ---",
"description": "Add Positron overlay markers",
"body": [
"// --- Start Positron ---",
"$0",
"// --- End Positron ---"
]
}
}
15 changes: 13 additions & 2 deletions build/gulpfile.reh.js
Original file line number Diff line number Diff line change
@@ -342,7 +342,8 @@ function packageTask(type, platform, arch, sourceFolderName, destinationFolderNa
// --- Start Positron ---
// Note: The remote/reh-web/package.json is generated/updated in build/npm/postinstall.js
const packageJsonBase = type === 'reh-web' ? 'remote/reh-web' : 'remote';
const packageJsonStream = gulp.src(['remote/package.json'], { base: packageJsonBase })
const packageJsonStream = gulp.src([`${packageJsonBase}/package.json`], { base: packageJsonBase })
// --- End Positron ---
.pipe(json({ name, version, dependencies: undefined, optionalDependencies: undefined, type: 'module' }))
.pipe(es.through(function (file) {
packageJsonContents = file.contents.toString();
@@ -391,7 +392,9 @@ function packageTask(type, platform, arch, sourceFolderName, destinationFolderNa
].map(resource => gulp.src(resource, { base: '.' }).pipe(rename(resource)));
}

const all = es.merge(
// --- Start Positron ---
let all = es.merge(
// --- End Positron ---
packageJsonStream,
productJsonStream,
license,
@@ -401,6 +404,14 @@ function packageTask(type, platform, arch, sourceFolderName, destinationFolderNa
...web
);

// --- Start Positron ---
if (type === 'reh-web') {
// External modules (React, etc.)
const moduleSources = gulp.src('src/esm-package-dependencies/**').pipe(rename(function (p) { p.dirname = path.join('out', 'esm-package-dependencies', p.dirname) }));
all = es.merge(all, moduleSources);
}
// --- End Positron ---

let result = all
.pipe(util.skipDirectories())
.pipe(util.fixWin32DirectoryPermissions());
4 changes: 4 additions & 0 deletions build/gulpfile.vscode.web.js
Original file line number Diff line number Diff line change
@@ -40,6 +40,10 @@ const positronVersion = (quality && quality !== 'stable') ? `${product.positronV
// --- End Positron ---

const vscodeWebResourceIncludes = [
// --- Start Positron ---
// Positron Help
'out-build/vs/workbench/contrib/positronHelp/browser/resources/help.html',
// --- End Positron ---

// NLS
'out-build/nls.messages.js',
4 changes: 2 additions & 2 deletions extensions/npm/package.json
Original file line number Diff line number Diff line change
@@ -36,11 +36,11 @@
"@types/which": "^3.0.0"
},
"overrides": {
"micromatch": "^4.0.6",
"micromatch": "^4.0.8",
"braces": "^3.0.3"
},
"resolutions": {
"micromatch": "^4.0.6",
"micromatch": "^4.0.8",
"braces": "^3.0.3"
},
"main": "./out/npmMain",
2 changes: 1 addition & 1 deletion extensions/positron-supervisor/package.json
Original file line number Diff line number Diff line change
@@ -141,7 +141,7 @@
},
"positron": {
"binaryDependencies": {
"kallichore": "0.1.27"
"kallichore": "0.1.28"
}
},
"dependencies": {
19 changes: 17 additions & 2 deletions extensions/positron-supervisor/src/KallichoreAdapterApi.ts
Original file line number Diff line number Diff line change
@@ -422,8 +422,23 @@ export class KCApi implements KallichoreAdapterApi {
continue;
} else {
// Give up; it shouldn't take this long to start
this._log.appendLine(`Kallichore server did not start after ${Date.now() - startTime}ms`);
throw new Error(`Kallichore server did not start after ${Date.now() - startTime}ms`);
let message = `Kallichore server did not start after ${Date.now() - startTime}ms`;
this._log.appendLine(message);

// The error that we're about to throw will show up in
// the Console. If there's any content in the log
// files, append it to the error message so that the
// user can see it without clicking over to the logs.
if (fs.existsSync(outFile)) {
// Note that we don't need to append this content
// to the lgos since the output file is already
// being watched by the log streamer.
const contents = fs.readFileSync(outFile, 'utf8');
if (contents) {
message += `; output:\n\n${contents}`;
}
}
throw new Error(message);
}
}

Loading

0 comments on commit 035e589

Please sign in to comment.