Skip to content

Commit c21f8de

Browse files
committed
chore: initialize e2e fixtures
1 parent f5fc32c commit c21f8de

32 files changed

+487
-163
lines changed

.editorconfig

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ max_line_length = 120
66
[*.rs]
77
indent_size = 4
88

9+
[*.py]
10+
indent_size = 4
11+
indent_style = space
12+
913
[*.{md,yml,yaml}]
1014
indent_style = space
1115
indent_size = 2

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ out/
77
dist/*
88
*.vsix
99
syntaxes/*.json
10+
.venv
11+
__pycache__
12+
.*_cache

.vscode/launch.json

+34-8
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,36 @@
22
{
33
"version": "0.2.0",
44
"configurations": [
5+
{
6+
"name": "E2E Tests",
7+
"type": "debugpy",
8+
"request": "launch",
9+
"program": ".venv/bin/pytest",
10+
"args": ["-v"],
11+
"cwd": "${workspaceFolder}/testing",
12+
"console": "integratedTerminal"
13+
},
514
{
615
"type": "lldb",
716
"request": "attach",
817
"name": "Attach",
918
"program": "odoo-lsp",
10-
"sourceLanguages": ["rust"]
19+
"sourceLanguages": [
20+
"rust"
21+
]
1122
},
1223
{
1324
"type": "extensionHost",
1425
"request": "launch",
1526
"name": "Launch Client",
1627
"runtimeExecutable": "${execPath}",
17-
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "${workspaceRoot}/examples"],
18-
"outFiles": ["${workspaceRoot}/dist/*.js"],
28+
"args": [
29+
"--extensionDevelopmentPath=${workspaceRoot}",
30+
"${workspaceRoot}/examples"
31+
],
32+
"outFiles": [
33+
"${workspaceRoot}/dist/*.js"
34+
],
1935
"preLaunchTask": {
2036
"type": "npm",
2137
"script": "watch"
@@ -31,8 +47,13 @@
3147
"request": "launch",
3248
"name": "Launch Client (Production Flow)",
3349
"runtimeExecutable": "${execPath}",
34-
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "${workspaceRoot}/examples"],
35-
"outFiles": ["${workspaceRoot}/dist/*.js"],
50+
"args": [
51+
"--extensionDevelopmentPath=${workspaceRoot}",
52+
"${workspaceRoot}/examples"
53+
],
54+
"outFiles": [
55+
"${workspaceRoot}/dist/*.js"
56+
],
3657
"preLaunchTask": {
3758
"type": "npm",
3859
"script": "watch"
@@ -52,7 +73,9 @@
5273
"--extensionTestsPath=${workspaceRoot}/client/out/test/index",
5374
"${workspaceRoot}/client/testFixture"
5475
],
55-
"outFiles": ["${workspaceRoot}/client/out/test/**/*.js"]
76+
"outFiles": [
77+
"${workspaceRoot}/client/out/test/**/*.js"
78+
]
5679
},
5780
{
5881
"name": "Attach to LSP",
@@ -64,7 +87,10 @@
6487
"compounds": [
6588
{
6689
"name": "Client + Server",
67-
"configurations": ["Launch Client", "Attach to Server"]
90+
"configurations": [
91+
"Launch Client",
92+
"Attach to Server"
93+
]
6894
}
6995
]
70-
}
96+
}

.vscode/settings.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@
88
},
99
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
1010
"typescript.tsc.autoDetect": "off",
11-
"typescript.tsdk": "node_modules/typescript/lib",
12-
"python.languageServer": "None"
11+
"typescript.tsdk": "node_modules/typescript/lib"
1312
}

0 commit comments

Comments
 (0)