Skip to content

Commit

Permalink
Merge branch 'main' into coq-8.19
Browse files Browse the repository at this point in the history
  • Loading branch information
rtetley committed Jan 31, 2024
2 parents c8f063f + 11a8f4c commit 97d0fc5
Show file tree
Hide file tree
Showing 13 changed files with 760 additions and 843 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ jobs:
run: cat /tmp/vscoq_init_log.*

install-windows:
if: false
runs-on: windows-latest
steps:
- name: Set git to use LF
Expand Down
2 changes: 1 addition & 1 deletion client/goal-view-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
"@types/vscode-webview": "^1.57.0",
"@vitejs/plugin-react": "^1.0.7",
"typescript": "^4.4.4",
"vite": "^2.9.16"
"vite": "^2.9.17"
}
}
2 changes: 2 additions & 0 deletions client/goal-view-ui/src/components/atoms/PpString.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
margin-top: 12px;
width: 100%;
font-family: var(--vscode-editor-font-family);
font-size: var(--vscode-editor-font-size);
}

.Error {
Expand All @@ -22,6 +23,7 @@

.Goal {
font-family: var(--vscode-editor-font-family);
font-size: var(--vscode-editor-font-size);
color: var(--vscode-editor-foreground);
white-space: pre-wrap;
width: 100%;
Expand Down
8 changes: 4 additions & 4 deletions client/goal-view-ui/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -898,10 +898,10 @@ update-browserslist-db@^1.0.9:
escalade "^3.1.1"
picocolors "^1.0.0"

vite@^2.9.16:
version "2.9.16"
resolved "https://registry.yarnpkg.com/vite/-/vite-2.9.16.tgz#daf7ba50f5cc37a7bf51b118ba06bc36e97898e9"
integrity sha512-X+6q8KPyeuBvTQV8AVSnKDvXoBMnTx8zxh54sOwmmuOdxkjMmEJXH2UEchA+vTMps1xw9vL64uwJOWryULg7nA==
vite@^2.9.17:
version "2.9.17"
resolved "https://registry.yarnpkg.com/vite/-/vite-2.9.17.tgz#6b770525e12fa2a2e3a0fa0d028d304f4f7dc7d4"
integrity sha512-XxcRzra6d7xrKXH66jZUgb+srThoPu+TLJc06GifUyKq9JmjHkc1Numc8ra0h56rju2jfVWw3B3fs5l3OFMvUw==
dependencies:
esbuild "^0.14.27"
postcss "^8.4.13"
Expand Down
4 changes: 2 additions & 2 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@
}
],
"menus": {
"editor/context": [
"editor/context": [
{
"when": "resourceLangId == coq",
"command": "extension.coq.interpretToPoint",
Expand All @@ -351,7 +351,7 @@
"command": "extension.coq.query.locate",
"group": "queries"
}
],
],
"view/title": [
{
"command": "extension.coq.addQueryTab",
Expand Down
2 changes: 1 addition & 1 deletion client/search-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"@types/vscode-webview": "^1.57.0",
"@vitejs/plugin-react": "^1.0.7",
"typescript": "^4.4.4",
"vite": "^2.9.16"
"vite": "^2.9.17"
}
}
8 changes: 4 additions & 4 deletions client/search-ui/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -916,10 +916,10 @@ uuidv4@^6.2.13:
"@types/uuid" "8.3.4"
uuid "8.3.2"

vite@^2.9.16:
version "2.9.16"
resolved "https://registry.yarnpkg.com/vite/-/vite-2.9.16.tgz#daf7ba50f5cc37a7bf51b118ba06bc36e97898e9"
integrity sha512-X+6q8KPyeuBvTQV8AVSnKDvXoBMnTx8zxh54sOwmmuOdxkjMmEJXH2UEchA+vTMps1xw9vL64uwJOWryULg7nA==
vite@^2.9.17:
version "2.9.17"
resolved "https://registry.yarnpkg.com/vite/-/vite-2.9.17.tgz#6b770525e12fa2a2e3a0fa0d028d304f4f7dc7d4"
integrity sha512-XxcRzra6d7xrKXH66jZUgb+srThoPu+TLJc06GifUyKq9JmjHkc1Numc8ra0h56rju2jfVWw3B3fs5l3OFMvUw==
dependencies:
esbuild "^0.14.27"
postcss "^8.4.13"
Expand Down
9 changes: 7 additions & 2 deletions client/src/test/runTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as path from 'path';
import * as fs from 'node:fs/promises';
import * as tmp from 'tmp-promise';

import { runTests } from '@vscode/test-electron';
import { runTests, downloadAndUnzipVSCode } from '@vscode/test-electron';

async function main() {
try {
Expand Down Expand Up @@ -37,7 +37,12 @@ async function main() {
const launchArgs = [path.resolve(__dirname, '../../testFixture'), "--disable-extensions", "--user-data-dir=" + userDataDir];

// Download VS Code, unzip it and run the integration test
await runTests({ extensionDevelopmentPath, extensionTestsPath, launchArgs });
//const vscodeExecutablePath = await downloadAndUnzipVSCode('1.84.0');
await runTests({
// vscodeExecutablePath,
extensionDevelopmentPath,
extensionTestsPath,
launchArgs });
} catch (err) {
console.error('Failed to run tests');
process.exit(1);
Expand Down
10 changes: 7 additions & 3 deletions client/src/utilities/toolchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ export default class VsCoqToolchainManager implements Disposable {
const config = workspace.getConfiguration('vscoq');
const serverOptions : ServerOptions = {
command: this._vscoqtopPath,
args: config.args
args: config.args,
options: {
cwd: workspace.rootPath,
shell: true,
},
};
return serverOptions;
};
Expand Down Expand Up @@ -125,7 +129,7 @@ export default class VsCoqToolchainManager implements Disposable {
const cmd = [this._vscoqtopPath].concat(options).join(' ');

return new Promise((resolve, reject: ((reason: ToolchainError) => void)) => {
exec(cmd, (error, stdout, stderr) => {
exec(cmd, {cwd: workspace.rootPath}, (error, stdout, stderr) => {

if(error) {
reject({
Expand Down Expand Up @@ -160,7 +164,7 @@ export default class VsCoqToolchainManager implements Disposable {
const cmd = [this._vscoqtopPath].concat(options).join(' ');

return new Promise((resolve, reject: (reason: string) => void) => {
exec(cmd, (error, stdout, stderr) => {
exec(cmd, {cwd: workspace.rootPath}, (error, stdout, stderr) => {
if(error) {
reject(stderr);
} else {
Expand Down
Loading

0 comments on commit 97d0fc5

Please sign in to comment.