Skip to content

Fix most of the tests #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 42 commits into from
Jul 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
20e8f81
Alter dependencies to match `tree-sitter-scrapscript`
neuroevolutus Jun 26, 2025
85a03f1
Add dependency on `tree-sitter-scrapscript`
neuroevolutus Jun 26, 2025
8af60d7
Update `tsconfig.json` files
neuroevolutus Jun 9, 2025
88dcbd3
Add `.vscode/tasks.json`
neuroevolutus Jul 8, 2025
453d70b
Add `.vscode/launch.json`
neuroevolutus Jul 8, 2025
db13a60
Update `test` script to only operate on `out` folder
neuroevolutus Jun 27, 2025
f50dc86
Fix import
neuroevolutus Jun 8, 2025
0c0d2ea
Remove spurious hole from `enhancedExampleCode`
neuroevolutus Jun 27, 2025
33f0b7b
Add function `limitDiagnostics`
neuroevolutus Jun 19, 2025
97ec266
Add function `walkTreeCollecting`
neuroevolutus Jul 1, 2025
a64f138
Add function `walkTreeFlatMapping`
neuroevolutus Jun 29, 2025
21ffff5
Add function `validateNodeBy`
neuroevolutus Jun 19, 2025
258077e
Refactor validation functions in terms of `validateNodeBy`
neuroevolutus Jun 19, 2025
3f46409
Refactor `findNodesOfType` using `walkTreeFlatMapping`
neuroevolutus Jun 30, 2025
7ee7afa
Refactor `getPatternMatchCompletions` using `map`
neuroevolutus Jun 23, 2025
d669bad
Simplify `getTagCompletions`
neuroevolutus Jun 24, 2025
76ba7f1
Simplify `getPipelineCompletions`
neuroevolutus Jun 24, 2025
982c07a
Fix test "should handle empty documents"
neuroevolutus Jun 30, 2025
9520b93
Fix test "should validate complex code without errors"
neuroevolutus Jun 20, 2025
ad031ee
Fix test "should provide pattern match completions"
neuroevolutus Jun 23, 2025
2194ca1
Add TODO comment
neuroevolutus Jun 23, 2025
9feb87b
Update bytestring literal to match current ScrapScript syntax
neuroevolutus Jun 27, 2025
3b3153f
Add TODO comment
neuroevolutus Jun 29, 2025
ab6ba5a
Refactor function `findReferences` using `walkTreeFlatMapping`
neuroevolutus Jun 29, 2025
9e3a047
Update line and character numbers in tests
neuroevolutus Jun 30, 2025
abfd625
Fix test "should find all enhanced declarations"
neuroevolutus Jun 30, 2025
9e26e83
Rename `createDocumentSymbol`
neuroevolutus Jun 30, 2025
56f6c83
Fix test "should provide detailed symbol information"
neuroevolutus Jun 30, 2025
4de83cf
Temporarily skip failing tests
neuroevolutus Jul 5, 2025
53deade
Remove unused imports from `server/src/server.ts`
neuroevolutus Jul 6, 2025
43865f9
Remove unused imports from `server/src/server.test.ts`
neuroevolutus Jul 6, 2025
4a3d31a
Wrap `case`s in curly braces
neuroevolutus Jul 6, 2025
3606422
Temporarily silence `@typescript-eslint/no-unused-vars` errors
neuroevolutus Jul 6, 2025
0db33b2
Add `eslint` dependencies
neuroevolutus Jul 6, 2025
26675b2
Add `lint` script
neuroevolutus Jul 6, 2025
6d678d2
Add `eslint` configuration
neuroevolutus Jul 6, 2025
98553d3
Re-enable linting
neuroevolutus Jul 6, 2025
9982126
Re-enable testing
neuroevolutus Jul 6, 2025
1a0279c
Add file extension `.scrapscript` for VS Code extension
neuroevolutus Jul 8, 2025
409c0d8
Update language aliases for VS Code extension
neuroevolutus Jul 8, 2025
6d1db5a
Move extension configuration properties into `package.json`
neuroevolutus Jul 8, 2025
7b30b22
Update configuration property name to avoid runtime errors
neuroevolutus Jul 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ jobs:

- name: Lint
run: npm run lint
if: ${{ false }} # Disable linting for now
if: ${{ ! startsWith(matrix.node-version, '16.') }}

- name: Test
run: npm test
if: ${{ false }} # Disable testing for now
run: npm run --workspace server test

package:
runs-on: ubuntu-latest
Expand Down
24 changes: 24 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "extensionHost",
"request": "launch",
"name": "Launch Extension",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/client/out/**/*.js",
"${workspaceFolder}/server/out/**/*.js",
],
"autoAttachChildProcesses": true,
"preLaunchTask": {
"type": "npm",
"script": "watch"
}
}
]
}
18 changes: 18 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
1 change: 1 addition & 0 deletions client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"target": "es2020",
Expand Down
13 changes: 13 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import js from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";
import { defineConfig } from "eslint/config";


export default defineConfig([
{ ignores: ["**/*.{js,mjs,cjs}"] },
{ files: ["**/*.{js,mjs,cjs,ts,mts,cts}"], plugins: { js }, extends: ["js/recommended"] },
{ files: ["**/*.js"], languageOptions: { sourceType: "commonjs" } },
{ files: ["**/*.{js,mjs,cjs,ts,mts,cts}"], languageOptions: { globals: globals.node } },
tseslint.configs.recommended,
]);
18 changes: 0 additions & 18 deletions language-configuration.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"title": "scrapscript",
"comments": {
"lineComment": "--"
},
Expand All @@ -23,23 +22,6 @@
"indentationRules": {
"increaseIndentPattern": "({[\\s]*|\\([\\s]*)$",
"decreaseIndentPattern": "^[\\s]*[)}]"
},
"properties": {
"scrapscript.maxNumberOfProblems": {
"type": "number",
"default": 1000,
"description": "Maximum number of problems to report"
},
"scrapscript.enableEnhancedFeatures": {
"type": "boolean",
"default": true,
"description": "Enable enhanced language features"
},
"scrapscript.enableTypeChecking": {
"type": "boolean",
"default": true,
"description": "Enable type checking"
}
}
}

Loading