Skip to content

Commit 845128a

Browse files
authored
refactor: server structure (#849)
* Refactor filename and placement in septic folder * Rename reference provider and move to new file * Remove findCycles from context api * Move config provider from language services * Remove unused import * Refactor parsing of cnfg using docs * Refactor hoverprovider to use new cnfg class * Refactor signatureprovider to use new cnfg class * Refactor folding range provider to use new cnfg class * Make cnfg implement doc class * Refactor code action provider for new cnfg * Refactor dianostic provider for new cnfg * Refactor symbols provider for new cnfg * Refactor format provider for new cnfg * Refactor reference provider for new cnfg * Remove unused test utility * Fix import path * Refactor rename provider for new cnfg * Remove singel use function from cnfg api * Rename function to use more consistent naming * Support position for searchin for objects/refs * Remove unnecessary public function cnfg * Remove duplicated function cnfg * Refactor completion provider to use new cnfg * Create api for attribute access in object class * Create new context manager * Fix formatting bug * Fix bug with getting context * Use vscode-test-cli for integration tests * Update workspace path e2e test * Fix errors in expected result e2e tests * Update package-lock after rebase * Create test-workspace in root * Clean up integration tests * Add integration tests for hover * Add check for diagnostics when scg config is updated * Add test for opc taglist command * Use setup and teardown for managing workspace * Remove ununsed file integration testing * Remove unnecessary parameter to function
1 parent 8e5547a commit 845128a

90 files changed

Lines changed: 4293 additions & 3591 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/codequality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run: xvfb-run --auto-servernum npm run test
2323

2424
- name: 🧪 Run Integrationtests
25-
run: xvfb-run --auto-servernum npm run e2e-test
25+
run: xvfb-run --auto-servernum npm run integration-test
2626

2727
- name: 🧪 Test Building of Artifact
2828
run: npx @vscode/vsce package

.vscode-test.mjs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// .vscode-test.mjs
2+
import { defineConfig } from '@vscode/test-cli';
3+
4+
export default defineConfig([
5+
{
6+
// Required: Glob of files to load (can be an array and include absolute paths).
7+
files: 'client/out/test/**/*.test.js',
8+
// Optional: Version to use, same as the API above, defaults to stable
9+
version: 'insiders',
10+
// Optional: sample workspace to open
11+
workspaceFolder: `./test-workspace`,
12+
// Optional: install additional extensions to the installation prior to testing. By
13+
//default, any `extensionDependencies` from the package.json are automatically installed.
14+
// Optional: additional mocha options to use:
15+
mocha: {
16+
timeout: 100000
17+
},
18+
launchArgs: ['--disable-extensions']
19+
},
20+
// you can specify additional test configurations if necessary
21+
]);

0 commit comments

Comments
 (0)