Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/language/ContextMapperDslModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
} from 'langium/lsp'
import { ContextMapperDslGeneratedModule, ContextMapperDslGeneratedSharedModule } from './generated/module.js'
import { ContextMapperDslValidator } from './validation/ContextMapperDslValidator.js'
import { ContextMapperDslSemanticTokenProvider } from './semantictokens/ContextMapperDslSemanticTokenProvider.js'
import { SemanticTokenProviderRegistry } from './semantictokens/SemanticTokenProviderRegistry.js'
import { ContextMapperDslSemanticTokenProvider } from './semanticTokens/ContextMapperDslSemanticTokenProvider.js'
import { SemanticTokenProviderRegistry } from './semanticTokens/SemanticTokenProviderRegistry.js'
import { ContextMapperDslValidationRegistry } from './validation/ContextMapperDslValidationRegistry.js'
import { ContextMapperValidationProviderRegistry } from './validation/ContextMapperValidationProviderRegistry.js'
import { ContextMapperDslScopeProvider } from './references/ContextMapperDslScopeProvider.js'
Expand Down Expand Up @@ -99,7 +99,7 @@
if (!context.connection) {
// We don't run inside a language server
// Therefore, initialize the configuration provider instantly
shared.workspace.ConfigurationProvider.initialized({})

Check notice on line 102 in src/language/ContextMapperDslModule.ts

View workflow job for this annotation

GitHub Actions / Qodana for JS

Result of method call returning a promise is ignored

Promise returned from initialized is ignored
}
return { shared, ContextMapperDsl }
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class RelationshipSemanticTokenProvider implements ContextMapperSemanticT
if (node.upstreamRoles.length > 0) {
acceptor({
node,
type: SemanticTokenTypes.enumMember,
type: SemanticTokenTypes.keyword,
property: 'upstreamRoles'
})
}
Expand All @@ -72,7 +72,7 @@ export class RelationshipSemanticTokenProvider implements ContextMapperSemanticT
if (node.downstreamRoles.length > 0) {
acceptor({
node,
type: SemanticTokenTypes.enumMember,
type: SemanticTokenTypes.keyword,
property: 'downstreamRoles'
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,10 @@ describe('Relationship semantic token tests', () => {

expectSemanticTokensToEqual(tokens[1], 1, 10, 11, semanticTokenProvider.tokenTypes.type, 0)
expectSemanticTokensToEqual(tokens[2], 0, 13, 1, semanticTokenProvider.tokenTypes.keyword, 0)
expectSemanticTokensToEqual(tokens[3], 0, 2, 3, semanticTokenProvider.tokenTypes.enumMember, 0)
expectSemanticTokensToEqual(tokens[3], 0, 2, 3, semanticTokenProvider.tokenTypes.keyword, 0)
expectSemanticTokensToEqual(tokens[4], 0, 5, 2, semanticTokenProvider.tokenTypes.operator, 0)
expectSemanticTokensToEqual(tokens[5], 0, 4, 1, semanticTokenProvider.tokenTypes.keyword, 0)
expectSemanticTokensToEqual(tokens[6], 0, 2, 2, semanticTokenProvider.tokenTypes.enumMember, 0)
expectSemanticTokensToEqual(tokens[6], 0, 2, 2, semanticTokenProvider.tokenTypes.keyword, 0)
expectSemanticTokensToEqual(tokens[7], 0, 4, 12, semanticTokenProvider.tokenTypes.type, 0)
expectSemanticTokensToEqual(tokens[8], 0, 15, 7, semanticTokenProvider.tokenTypes.type, semanticTokenProvider.tokenModifiers.declaration)

Expand Down Expand Up @@ -481,10 +481,10 @@ describe('Relationship semantic token tests', () => {

expectSemanticTokensToEqual(tokens[1], 1, 10, 11, semanticTokenProvider.tokenTypes.type, 0)
expectSemanticTokensToEqual(tokens[2], 0, 13, 1, semanticTokenProvider.tokenTypes.keyword, 0)
expectSemanticTokensToEqual(tokens[3], 0, 2, 3, semanticTokenProvider.tokenTypes.enumMember, 0)
expectSemanticTokensToEqual(tokens[3], 0, 2, 3, semanticTokenProvider.tokenTypes.keyword, 0)
expectSemanticTokensToEqual(tokens[4], 0, 5, 2, semanticTokenProvider.tokenTypes.operator, 0)
expectSemanticTokensToEqual(tokens[5], 0, 4, 1, semanticTokenProvider.tokenTypes.keyword, 0)
expectSemanticTokensToEqual(tokens[6], 0, 2, 2, semanticTokenProvider.tokenTypes.enumMember, 0)
expectSemanticTokensToEqual(tokens[6], 0, 2, 2, semanticTokenProvider.tokenTypes.keyword, 0)
expectSemanticTokensToEqual(tokens[7], 0, 4, 12, semanticTokenProvider.tokenTypes.type, 0)
expectSemanticTokensToEqual(tokens[8], 0, 15, 7, semanticTokenProvider.tokenTypes.type, semanticTokenProvider.tokenModifiers.declaration)

Expand Down
Loading