Skip to content

Commit 2f4f4dc

Browse files
authored
Merge pull request #2 from cortex-command-community/development
Language Server template implementation and Webpack bundling
2 parents ed24b65 + 38ca840 commit 2f4f4dc

Some content is hidden

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

58 files changed

+25672
-11373
lines changed

.DS_Store

6 KB
Binary file not shown.

.commitlintrc.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
{
2-
"extends": [
3-
"@commitlint/config-conventional"
4-
]
5-
}
2+
"extends": ["@commitlint/config-conventional"]
3+
}

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

.eslintrc.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": ["**/*"],
4+
"plugins": ["@nrwl/nx"],
5+
"overrides": [
6+
{
7+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
8+
"rules": {
9+
"@nrwl/nx/enforce-module-boundaries": [
10+
"error",
11+
{
12+
"enforceBuildableLibDependency": true,
13+
"allow": [],
14+
"depConstraints": [
15+
{
16+
"sourceTag": "*",
17+
"onlyDependOnLibsWithTags": ["*"]
18+
}
19+
]
20+
}
21+
]
22+
}
23+
},
24+
{
25+
"files": ["*.ts", "*.tsx"],
26+
"extends": ["plugin:@nrwl/nx/typescript"],
27+
"rules": {}
28+
},
29+
{
30+
"files": ["*.js", "*.jsx"],
31+
"extends": ["plugin:@nrwl/nx/javascript"],
32+
"rules": {}
33+
},
34+
{
35+
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
36+
"env": {
37+
"jest": true
38+
},
39+
"rules": {}
40+
}
41+
]
42+
}

.github/workflows/release.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Release Extension
55

66
on:
77
push:
8-
branches: ["main"]
8+
branches: ['main']
99

1010
jobs:
1111
release:
@@ -24,13 +24,16 @@ jobs:
2424
- uses: actions/setup-node@v3
2525
with:
2626
node-version: 18
27-
cache: "npm"
27+
cache: 'npm'
2828

29-
- name: "Install dependencies"
29+
- name: 'Install dependencies'
3030
run: npm ci
3131

32-
- name: "Build (ensure yaml is transpiled to json)"
33-
run: npm run build
32+
- name: 'Build syntaxes, client and server. '
33+
run: npx nx run-many --target=build
3434

35-
- name: "Semantic Release"
35+
- name: 'Package extension'
36+
run: npx vsce package
37+
38+
- name: 'Semantic Release'
3639
run: npx semantic-release

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
node_modules
2-
*.vsix
2+
*.vsix
3+
dist/**
4+
tmp/**

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Add files here to ignore them from prettier formatting
2+
3+
/dist
4+
/coverage

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}

.vscode/launch.json

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
1-
// A launch configuration that launches the extension inside a new window
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
1+
// A launch configuration that compiles the extension and then opens it inside a new window
52
{
6-
"version": "0.2.0",
7-
"configurations": [
8-
{
9-
"name": "Extension",
10-
"type": "extensionHost",
11-
"request": "launch",
12-
"args": [
13-
"--extensionDevelopmentPath=${workspaceFolder}"
14-
],
15-
"preLaunchTask": "npm: build"
16-
}
17-
]
18-
}
3+
"version": "0.2.0",
4+
"configurations": [
5+
{
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"name": "Launch Client",
9+
"runtimeExecutable": "${execPath}",
10+
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
11+
"outFiles": ["${workspaceRoot}/dist/client/out/**/*.js"],
12+
"autoAttachChildProcesses": true,
13+
"preLaunchTask": "watch"
14+
},
15+
{
16+
"name": "Language Server E2E Test",
17+
"type": "extensionHost",
18+
"request": "launch",
19+
"runtimeExecutable": "${execPath}",
20+
"args": [
21+
"--extensionDevelopmentPath=${workspaceRoot}",
22+
"--extensionTestsPath=${workspaceRoot}/client/out/test/index",
23+
"${workspaceRoot}/client/testFixture"
24+
],
25+
"outFiles": ["${workspaceRoot}/client/out/test/**/*.js"]
26+
}
27+
]
28+
}

.vscode/settings.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
{
2-
"editor.formatOnSave": true,
3-
"python.formatting.provider": "black",
4-
"yaml.schemas": {
5-
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
6-
"https://json.schemastore.org/github-workflow.json": "file:///d%3A/stuart/Documents/Cortex%20Command%20Community%20Project/Cortex-Command-Community-Project-VSCode-Extension/%2Cgithub/workflows/release.yaml"
7-
},
8-
}
2+
"editor.formatOnSave": true,
3+
"python.formatting.provider": "black",
4+
"yaml.schemas": {
5+
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
6+
"https://json.schemastore.org/github-workflow.json": "file:///d%3A/stuart/Documents/Cortex%20Command%20Community%20Project/Cortex-Command-Community-Project-VSCode-Extension/%2Cgithub/workflows/release.yaml"
7+
},
8+
"editor.defaultFormatter": "esbenp.prettier-vscode",
9+
"editor.codeActionsOnSave": {
10+
"source.fixAll.eslint": true
11+
}
12+
}

0 commit comments

Comments
 (0)