Skip to content

Commit

Permalink
feat: make all backends and formatters node streams
Browse files Browse the repository at this point in the history
this greatly simplifies the code and makes
easier to add new backends and formatters

closes #128
  • Loading branch information
dvirtz committed Aug 20, 2024
1 parent d456e3e commit 4d4c520
Show file tree
Hide file tree
Showing 29 changed files with 435 additions and 17,202 deletions.
80 changes: 21 additions & 59 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,24 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Unit test",
"args": "./test/unit/backend.test.ts",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"type": "node",
"runtimeArgs": [
"--import",
"tsx",
"--import",
"./test/unit/automocks.ts",
"--test-name-pattern",
"parquet-tools backend tests supports cancellation",
"--test"
]
},
{
"name": "Extension Tests",
"type": "extensionHost",
Expand All @@ -19,14 +37,15 @@
"env": {
"DEBUG_MODE": "TRUE",
"LOG_TO_CONSOLE": "true",
"TEST_GLOB_PATTERN": "extension.test.js"
// "TEST_GLOB_PATTERN": "extension.test.js",
// "TEST_SUBPROCESS": "true"
},
"resolveSourceMapLocations": [
"${workspaceFolder}/**",
"!**/node_modules/**"
],
"skipFiles": [
"<node_internals>/**"
// "<node_internals>/**"
]
},
{
Expand All @@ -45,36 +64,6 @@
],
"trace": true
},
{
"type": "node",
"name": "vscode-jest-tests.v2",
"request": "launch",
"args": [
"--runInBand",
"--watchAll=false",
"--config",
"test/unit/jest.config.ts",
"--testNamePattern",
"${jest.testNamePattern}",
"--runTestsByPath",
"${jest.testFile}"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
},
"env": {
"DEBUG_MODE": "TRUE"
},
"outFiles": [
"${workspaceFolder}/**/*.js",
"!**/node_modules/**",
"${workspaceFolder}/node_modules/apache-arrow/**/*.js"
]
},
{
"name": "vsce",
"program": "${workspaceFolder}/node_modules/@vscode/vsce/vsce",
Expand Down Expand Up @@ -102,33 +91,6 @@
}
},
},
{
"name": "(Windows) Launch",
"type": "cppvsdbg",
"request": "launch",
"program": "node",
"args": [
"${workspaceFolder}/node_modules/jest/bin/jest",
"test/unit/arrow-backend.test.ts"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [
{
"name": "DEBUG_MODE",
"value": "TRUE"
}
],
"console": "externalTerminal",
"presentation": {
"hidden": true
},
"windows": {
"presentation": {
"hidden": false,
}
},
},
{
"name": "Conan Install",
"type": "debugpy",
Expand Down
8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,11 @@
"./automocks.ts"
]
}
]
],
"[typescript]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "always"
}
}
}
17 changes: 17 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,23 @@
"presentation": {
"clear": true
}
},
{
"type": "npm",
"script": "unit",
"problemMatcher": [],
"label": "npm: unit",
"detail": "node --import tsx --import ./test/unit/automocks.ts --test test/unit/*.test.ts",
"presentation": {
"clear": true
}
},
{
"type": "npm",
"script": "lint",
"problemMatcher": [],
"label": "npm: lint",
"detail": "eslint --max-warnings=0 \"**/*.ts\""
}
]
}
Loading

0 comments on commit 4d4c520

Please sign in to comment.