Skip to content

Commit 97d0fc5

Browse files
committed
Merge branch 'main' into coq-8.19
2 parents c8f063f + 11a8f4c commit 97d0fc5

File tree

13 files changed

+760
-843
lines changed

13 files changed

+760
-843
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ jobs:
9393
run: cat /tmp/vscoq_init_log.*
9494

9595
install-windows:
96+
if: false
9697
runs-on: windows-latest
9798
steps:
9899
- name: Set git to use LF

client/goal-view-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
"@types/vscode-webview": "^1.57.0",
2222
"@vitejs/plugin-react": "^1.0.7",
2323
"typescript": "^4.4.4",
24-
"vite": "^2.9.16"
24+
"vite": "^2.9.17"
2525
}
2626
}

client/goal-view-ui/src/components/atoms/PpString.module.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
margin-top: 12px;
33
width: 100%;
44
font-family: var(--vscode-editor-font-family);
5+
font-size: var(--vscode-editor-font-size);
56
}
67

78
.Error {
@@ -22,6 +23,7 @@
2223

2324
.Goal {
2425
font-family: var(--vscode-editor-font-family);
26+
font-size: var(--vscode-editor-font-size);
2527
color: var(--vscode-editor-foreground);
2628
white-space: pre-wrap;
2729
width: 100%;

client/goal-view-ui/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -898,10 +898,10 @@ update-browserslist-db@^1.0.9:
898898
escalade "^3.1.1"
899899
picocolors "^1.0.0"
900900

901-
vite@^2.9.16:
902-
version "2.9.16"
903-
resolved "https://registry.yarnpkg.com/vite/-/vite-2.9.16.tgz#daf7ba50f5cc37a7bf51b118ba06bc36e97898e9"
904-
integrity sha512-X+6q8KPyeuBvTQV8AVSnKDvXoBMnTx8zxh54sOwmmuOdxkjMmEJXH2UEchA+vTMps1xw9vL64uwJOWryULg7nA==
901+
vite@^2.9.17:
902+
version "2.9.17"
903+
resolved "https://registry.yarnpkg.com/vite/-/vite-2.9.17.tgz#6b770525e12fa2a2e3a0fa0d028d304f4f7dc7d4"
904+
integrity sha512-XxcRzra6d7xrKXH66jZUgb+srThoPu+TLJc06GifUyKq9JmjHkc1Numc8ra0h56rju2jfVWw3B3fs5l3OFMvUw==
905905
dependencies:
906906
esbuild "^0.14.27"
907907
postcss "^8.4.13"

client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@
325325
}
326326
],
327327
"menus": {
328-
"editor/context": [
328+
"editor/context": [
329329
{
330330
"when": "resourceLangId == coq",
331331
"command": "extension.coq.interpretToPoint",
@@ -351,7 +351,7 @@
351351
"command": "extension.coq.query.locate",
352352
"group": "queries"
353353
}
354-
],
354+
],
355355
"view/title": [
356356
{
357357
"command": "extension.coq.addQueryTab",

client/search-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
"@types/vscode-webview": "^1.57.0",
2323
"@vitejs/plugin-react": "^1.0.7",
2424
"typescript": "^4.4.4",
25-
"vite": "^2.9.16"
25+
"vite": "^2.9.17"
2626
}
2727
}

client/search-ui/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -916,10 +916,10 @@ uuidv4@^6.2.13:
916916
"@types/uuid" "8.3.4"
917917
uuid "8.3.2"
918918

919-
vite@^2.9.16:
920-
version "2.9.16"
921-
resolved "https://registry.yarnpkg.com/vite/-/vite-2.9.16.tgz#daf7ba50f5cc37a7bf51b118ba06bc36e97898e9"
922-
integrity sha512-X+6q8KPyeuBvTQV8AVSnKDvXoBMnTx8zxh54sOwmmuOdxkjMmEJXH2UEchA+vTMps1xw9vL64uwJOWryULg7nA==
919+
vite@^2.9.17:
920+
version "2.9.17"
921+
resolved "https://registry.yarnpkg.com/vite/-/vite-2.9.17.tgz#6b770525e12fa2a2e3a0fa0d028d304f4f7dc7d4"
922+
integrity sha512-XxcRzra6d7xrKXH66jZUgb+srThoPu+TLJc06GifUyKq9JmjHkc1Numc8ra0h56rju2jfVWw3B3fs5l3OFMvUw==
923923
dependencies:
924924
esbuild "^0.14.27"
925925
postcss "^8.4.13"

client/src/test/runTest.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as path from 'path';
22
import * as fs from 'node:fs/promises';
33
import * as tmp from 'tmp-promise';
44

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

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

3939
// Download VS Code, unzip it and run the integration test
40-
await runTests({ extensionDevelopmentPath, extensionTestsPath, launchArgs });
40+
//const vscodeExecutablePath = await downloadAndUnzipVSCode('1.84.0');
41+
await runTests({
42+
// vscodeExecutablePath,
43+
extensionDevelopmentPath,
44+
extensionTestsPath,
45+
launchArgs });
4146
} catch (err) {
4247
console.error('Failed to run tests');
4348
process.exit(1);

client/src/utilities/toolchain.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ export default class VsCoqToolchainManager implements Disposable {
6363
const config = workspace.getConfiguration('vscoq');
6464
const serverOptions : ServerOptions = {
6565
command: this._vscoqtopPath,
66-
args: config.args
66+
args: config.args,
67+
options: {
68+
cwd: workspace.rootPath,
69+
shell: true,
70+
},
6771
};
6872
return serverOptions;
6973
};
@@ -125,7 +129,7 @@ export default class VsCoqToolchainManager implements Disposable {
125129
const cmd = [this._vscoqtopPath].concat(options).join(' ');
126130

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

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

162166
return new Promise((resolve, reject: (reason: string) => void) => {
163-
exec(cmd, (error, stdout, stderr) => {
167+
exec(cmd, {cwd: workspace.rootPath}, (error, stdout, stderr) => {
164168
if(error) {
165169
reject(stderr);
166170
} else {

0 commit comments

Comments
 (0)