From 40f49c27ccfdc6dc967f38919d43223536551b51 Mon Sep 17 00:00:00 2001 From: Lukas Streckeisen Date: Mon, 2 Jun 2025 14:31:27 +0200 Subject: [PATCH 1/3] add poc note --- README.md | 9 ++++++--- sonar-project.properties | 15 --------------- 2 files changed, 6 insertions(+), 18 deletions(-) delete mode 100644 sonar-project.properties diff --git a/README.md b/README.md index 7ca97db..17254ba 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,12 @@ ![Context Mapper](https://raw.githubusercontent.com/wiki/ContextMapper/context-mapper-dsl/logo/cm-logo-github-small.png) -# ContextMapper DSL Language Server -[ContextMapper](https://contextmapper.org/) is an open source tool providing a Domain-specific Language based on Domain-Driven Design (DDD) patterns for context mapping and service decomposition. +# Context Mapper DSL Language Server + +> **_NOTE:_** This language server is a proof of concept and does not support all Context Mapper features yet. + +[Context Mapper](https://contextmapper.org/) is an open source tool providing a Domain-specific Language based on Domain-Driven Design (DDD) patterns for context mapping and service decomposition. ## System Requirements -The ContextMapper language server is implemented with Langium. To run the language server the following tools have to be installed locally: +The Context Mapper language server is implemented with Langium. To run the language server the following tools have to be installed locally: * [Node.js](https://nodejs.org/en/download) (v22) ## Build and/or Run the language server diff --git a/sonar-project.properties b/sonar-project.properties deleted file mode 100644 index eff6617..0000000 --- a/sonar-project.properties +++ /dev/null @@ -1,15 +0,0 @@ -sonar.projectKey=lstreckeisen_context-mapper-language-server -sonar.organization=lstreckeisen - - -# This is the name and version displayed in the SonarCloud UI. -sonar.projectName=context-mapper-language-server -#sonar.projectVersion=1.0 - - -# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. -#sonar.sources=. - -# Encoding of the source code. Default is default system encoding -sonar.sourceEncoding=UTF-8 -sonar.javascript.lcov.reportPaths=./coverage/lcov.info \ No newline at end of file From 2b47e8f7ca0e68a54f79e282831a886953937a50 Mon Sep 17 00:00:00 2001 From: Lukas Streckeisen Date: Mon, 2 Jun 2025 14:39:09 +0200 Subject: [PATCH 2/3] fix context mapper spelling --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4787760..5dd2c79 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lstreckeisen/context-mapper-language-server", - "description": "Langium language server for the ContextMapper DSL", + "description": "Langium language server for the Context Mapper DSL", "version": "0.4.1", "license": "Apache-2.0", "publishConfig": { From 929a93a68e240f459d23a73c70ce03bcfef131dc Mon Sep 17 00:00:00 2001 From: Lukas Streckeisen Date: Mon, 2 Jun 2025 14:39:55 +0200 Subject: [PATCH 3/3] remove console logs --- src/language/commands/generators/PlantUMLGenerator.ts | 1 - .../semanticTokens/ContextMapperDslSemanticTokenProvider.ts | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/language/commands/generators/PlantUMLGenerator.ts b/src/language/commands/generators/PlantUMLGenerator.ts index bfc43a3..5851f02 100644 --- a/src/language/commands/generators/PlantUMLGenerator.ts +++ b/src/language/commands/generators/PlantUMLGenerator.ts @@ -10,7 +10,6 @@ export class PlantUMLGenerator implements ContextMapperGenerator { // there must not be any extra spaces especially at the start, since the path will be treated as relative otherwise const destination = (args[0] as string)?.trim() if (destination == null || destination === '') { - console.log('Destination must be specified') throw Error('Destination must be specified') } diff --git a/src/language/semanticTokens/ContextMapperDslSemanticTokenProvider.ts b/src/language/semanticTokens/ContextMapperDslSemanticTokenProvider.ts index ac58bdd..701a19f 100644 --- a/src/language/semanticTokens/ContextMapperDslSemanticTokenProvider.ts +++ b/src/language/semanticTokens/ContextMapperDslSemanticTokenProvider.ts @@ -14,8 +14,6 @@ export class ContextMapperDslSemanticTokenProvider extends AbstractSemanticToken const semanticTokenProvider = this.semanticTokenProviderRegistry.get(node) if (semanticTokenProvider) { semanticTokenProvider.highlight(node, acceptor) - } else { - console.error('Node type with no token provider', node.$type) } } }