Skip to content

Commit ccb1db0

Browse files
authored
Merge pull request #22 from lstreckeisen/CMI-79-Create-SemanticTokenProvider-for-language-server
Cmi 79 create semantic token provider for language server
2 parents c01c07a + d61c5e0 commit ccb1db0

File tree

8 files changed

+16108
-41
lines changed

8 files changed

+16108
-41
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: CML language server build
22
on:
3+
pull_request:
34
push:
45
branches:
5-
- '**'
6+
- main
67
release:
78
types: [published]
89

@@ -15,13 +16,11 @@ permissions:
1516
jobs:
1617
build:
1718
runs-on: ubuntu-latest
18-
container:
19-
image: node:22-slim
2019
steps:
21-
- name: Prepare debian
22-
run: |
23-
apt update
24-
apt install -y git
20+
- name: Setup node
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '22'
2524
# required since test report action uses git
2625
- name: Setup git
2726
run: |
@@ -30,6 +29,9 @@ jobs:
3029
3130
- name: Checkout code
3231
uses: actions/checkout@v4
32+
with:
33+
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
34+
fetch-depth: 0 # a full history is required for pull request analysis
3335

3436
- name: Install dependencies
3537
run: yarn install --frozen-lockfile
@@ -57,6 +59,15 @@ jobs:
5759
- name: Bundle
5860
run: yarn bundle:language-server
5961

62+
- name: Qodana Scan
63+
uses: JetBrains/qodana-action@v2024.3
64+
with:
65+
pr-mode: false
66+
args: --linter,jetbrains/qodana-js:2024.3
67+
env:
68+
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN_379728607 }}
69+
QODANA_ENDPOINT: 'https://qodana.cloud'
70+
6071
- name: Upload language server artifact
6172
uses: actions/upload-artifact@v4
6273
with:

.github/workflows/qodana_code_quality.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
node_modules/
66
out/
77
dist/
8-
coverage/
8+
.qodana/
99
src/language/generated/
1010
syntaxes/
1111
.idea

.yarn/install-state.gz

2 Bytes
Binary file not shown.

LICENSE

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
Apache License
23
Version 2.0, January 2004
34
http://www.apache.org/licenses/
@@ -186,7 +187,7 @@
186187
same "printed page" as the copyright notice for easier
187188
identification within third-party archives.
188189

189-
Copyright [yyyy] [name of copyright owner]
190+
Copyright 2025 Lukas Streckeisen
190191

191192
Licensed under the Apache License, Version 2.0 (the "License");
192193
you may not use this file except in compliance with the License.
@@ -198,4 +199,4 @@
198199
distributed under the License is distributed on an "AS IS" BASIS,
199200
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200201
See the License for the specific language governing permissions and
201-
limitations under the License.
202+
limitations under the License.

0 commit comments

Comments
 (0)