Skip to content

Commit 5553f86

Browse files
authored
Merge pull request #1 from neuroevolutus/import-tree-sitter
Fix most of the tests
2 parents d97e37c + 7b30b22 commit 5553f86

File tree

13 files changed

+506
-276
lines changed

13 files changed

+506
-276
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,10 @@ jobs:
3131

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

3636
- name: Test
37-
run: npm test
38-
if: ${{ false }} # Disable testing for now
37+
run: npm run --workspace server test
3938

4039
package:
4140
runs-on: ubuntu-latest

.vscode/launch.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "extensionHost",
6+
"request": "launch",
7+
"name": "Launch Extension",
8+
"runtimeExecutable": "${execPath}",
9+
"args": [
10+
"--extensionDevelopmentPath=${workspaceFolder}",
11+
"${workspaceFolder}"
12+
],
13+
"outFiles": [
14+
"${workspaceFolder}/client/out/**/*.js",
15+
"${workspaceFolder}/server/out/**/*.js",
16+
],
17+
"autoAttachChildProcesses": true,
18+
"preLaunchTask": {
19+
"type": "npm",
20+
"script": "watch"
21+
}
22+
}
23+
]
24+
}

.vscode/tasks.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "npm",
6+
"script": "watch",
7+
"problemMatcher": "$tsc-watch",
8+
"isBackground": true,
9+
"presentation": {
10+
"reveal": "never"
11+
},
12+
"group": {
13+
"kind": "build",
14+
"isDefault": true
15+
}
16+
}
17+
]
18+
}

client/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"extends": "../tsconfig.json",
23
"compilerOptions": {
34
"module": "commonjs",
45
"target": "es2020",

eslint.config.mjs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import js from "@eslint/js";
2+
import globals from "globals";
3+
import tseslint from "typescript-eslint";
4+
import { defineConfig } from "eslint/config";
5+
6+
7+
export default defineConfig([
8+
{ ignores: ["**/*.{js,mjs,cjs}"] },
9+
{ files: ["**/*.{js,mjs,cjs,ts,mts,cts}"], plugins: { js }, extends: ["js/recommended"] },
10+
{ files: ["**/*.js"], languageOptions: { sourceType: "commonjs" } },
11+
{ files: ["**/*.{js,mjs,cjs,ts,mts,cts}"], languageOptions: { globals: globals.node } },
12+
tseslint.configs.recommended,
13+
]);

language-configuration.json

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"title": "scrapscript",
32
"comments": {
43
"lineComment": "--"
54
},
@@ -23,23 +22,6 @@
2322
"indentationRules": {
2423
"increaseIndentPattern": "({[\\s]*|\\([\\s]*)$",
2524
"decreaseIndentPattern": "^[\\s]*[)}]"
26-
},
27-
"properties": {
28-
"scrapscript.maxNumberOfProblems": {
29-
"type": "number",
30-
"default": 1000,
31-
"description": "Maximum number of problems to report"
32-
},
33-
"scrapscript.enableEnhancedFeatures": {
34-
"type": "boolean",
35-
"default": true,
36-
"description": "Enable enhanced language features"
37-
},
38-
"scrapscript.enableTypeChecking": {
39-
"type": "boolean",
40-
"default": true,
41-
"description": "Enable type checking"
42-
}
4325
}
4426
}
4527

0 commit comments

Comments
 (0)