Skip to content

Commit

Permalink
Add support for multiple files (#24)
Browse files Browse the repository at this point in the history
* Add multi-file support

  - Auto-detect and analyze Modelica files in libraries and workspace.

---------

Co-authored-by: PaddiM8 <[email protected]>
Co-authored-by: AnHeuermann <[email protected]>
  • Loading branch information
3 people committed May 29, 2024
1 parent 8e4a9bf commit 5cb52b8
Show file tree
Hide file tree
Showing 18 changed files with 1,010 additions and 513 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
run: |
Xvfb -ac :99 -screen 0 1280x1024x16 &
export DISPLAY=:99
npm run test
npm run test:e2e
- name: Package Extension
run: npx vsce package
Expand Down
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@
"test-compile": "tsc -b ./",
"lint": "eslint ./client/src ./server/src --ext .ts,.tsx",
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
"test": "npm run test-compile && sh ./scripts/e2e.sh",
"test:server": "cd server && npx mocha -r ts-node/register src/test/**/*.test.ts src/util/test/**/*.test.ts",
"all": "npm run postinstall && npm run esbuild && npm run lint && npm run test:server && npm run test && npm run vscode:prepublish"
"test:e2e": "run-script-os",
"test:e2e:win32": "npm run test-compile && powershell -File ./scripts/e2e.ps1",
"test:e2e:default": "npm run test-compile && sh ./scripts/e2e.sh",
"test:server": "cd server && npx mocha -r ts-node/register src/test/**/*.test.ts src/project/test/**/*.test.ts src/util/test/**/*.test.ts",
"all": "npm run postinstall && npm run esbuild && npm run lint && npm run test:server && npm run test:e2e && npm run vscode:prepublish"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
Expand All @@ -62,6 +64,7 @@
"esbuild": "^0.20.0",
"eslint": "^8.55.0",
"mocha": "^10.2.0",
"run-script-os": "^1.1.6",
"ts-node": "^10.9.1",
"typescript": "^5.3.3"
}
Expand Down
4 changes: 4 additions & 0 deletions scripts/e2e.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$env:CODE_TESTS_PATH = "$(Get-Location)\client\out\test"
$env:CODE_TESTS_WORKSPACE = "$(Get-Location)\client\testFixture"

node "$(Get-Location)\client\out\test\runTest"
Loading

0 comments on commit 5cb52b8

Please sign in to comment.