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
64 changes: 40 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,14 @@
"@biomejs/biome": "2.6.4",
"@cucumber/biome-config": "github:cucumber/biome-config#v0.6.0",
"@cucumber/cucumber": "13.3.0",
"@tsconfig/recommended": "^1.0.13",
"@types/mocha": "10.0.10",
"@types/node": "26.6.6",
"@types/node": "^22.20.5",
"husky": "9.1.7",
"lint-staged": "^17.0.0",
"mocha": "12.0.3",
"ts-node": "10.9.2",
"typescript": "5.9.3",
"typescript": "^6.0.3",
"vscode-jsonrpc": "8.2.1",
"vscode-languageserver-protocol": "3.17.2"
},
Expand Down
14 changes: 7 additions & 7 deletions src/CucumberLanguageServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ const defaultSettings: Settings = {

export class CucumberLanguageServer {
private readonly expressionBuilder: ExpressionBuilder
private searchIndex: Index
private searchIndex!: Index
private expressionBuilderResult: ExpressionBuilderResult | undefined = undefined
private reindexingTimeout: NodeJS.Timeout
private rootUri: string
private files: Files
public registry: CucumberExpressions.ParameterTypeRegistry
private reindexingTimeout!: NodeJS.Timeout
private rootUri!: string
private files!: Files
public registry!: CucumberExpressions.ParameterTypeRegistry
public expressions: readonly CucumberExpressions.Expression[] = []
public suggestions: readonly Suggestion[] = []

Expand Down Expand Up @@ -411,7 +411,7 @@ export class CucumberLanguageServer {
return defaultSettings
}
} catch (err) {
this.connection.console.error(`Failed to request configuration: ${err.message}`)
this.connection.console.error(`Failed to request configuration: ${(err as Error).message}`)
this.connection.console.error(`Using default settings`)
return defaultSettings
}
Expand Down Expand Up @@ -484,7 +484,7 @@ export class CucumberLanguageServer {
this.suggestions = suggestions
this.onReindexed(registry, expressions, suggestions)
} catch (err) {
this.connection.console.error(err.stack)
this.connection.console.error((err as Error).stack as string)
this.connection.console.error(
'Please report an issue at https://github.com/cucumber/language-service/issues with the above stack trace'
)
Expand Down
11 changes: 3 additions & 8 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
{
"extends": "./tsconfig.json",
"include": ["src"],
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"rootDir": "src",
"noEmit": false,
"outDir": "dist",
"lib": ["ES2019"]
},
"include": ["src"]
"outDir": "dist"
}
}
23 changes: 8 additions & 15 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
{
"extends": "@tsconfig/recommended/tsconfig.json",
"include": ["src"],
"compilerOptions": {
"baseUrl": ".",
"declaration": true,
"sourceMap": true,
"allowJs": false,
"resolveJsonModule": true,
"esModuleInterop": true,
"noImplicitAny": true,
"downlevelIteration": true,
"skipLibCheck": true,
"strictNullChecks": true,
"experimentalDecorators": true,
"lib": ["ES6", "dom"],
"target": "ES6",
"lib": ["es2024"],
"target": "es2024",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"allowSyntheticDefaultImports": true,
"noEmit": true
"types": ["node", "mocha"],
"declaration": true,
"inlineSourceMap": true,
"inlineSources": true
}
}
Loading