This pull request introduces enhancements to the config.ts module aimed at improving the interface and functionality within the application.
Changes:
Improved Configuration Object:
The config.ts module now exports an object where certain values are enforced with strong types, enhancing predictability and type safety within the application. This refinement ensures that configurations are set and accessed consistently throughout the codebase.
Added Configuration Options:
Three new configuration options have been introduced to customize timeout settings within the application:
fetchTimeout: Sets the default timeout value (in milliseconds) for fetch requests. By default, it is initialized with the value of env.FETCH_TIMEOUT or 10000 if not provided.
actionTimeout: Specifies the timeout value (in milliseconds) for LSP action events. If not explicitly set, it defaults to env.ACTION_TIMEOUT or 10000.
completionTimeout: Defines the timeout value (in milliseconds) for LSP completion events. The default value is either env.COMPLETION_TIMEOUT or 10000 if not specified.
Description:
This pull request introduces enhancements to the
config.ts
module aimed at improving the interface and functionality within the application.Changes:
Improved Configuration Object:
The
config.ts
module now exports an object where certain values are enforced with strong types, enhancing predictability and type safety within the application. This refinement ensures that configurations are set and accessed consistently throughout the codebase.Added Configuration Options:
Three new configuration options have been introduced to customize timeout settings within the application:
fetchTimeout
: Sets the default timeout value (in milliseconds) for fetch requests. By default, it is initialized with the value ofenv.FETCH_TIMEOUT
or 10000 if not provided.actionTimeout
: Specifies the timeout value (in milliseconds) for LSP action events. If not explicitly set, it defaults toenv.ACTION_TIMEOUT
or 10000.completionTimeout
: Defines the timeout value (in milliseconds) for LSP completion events. The default value is eitherenv.COMPLETION_TIMEOUT
or 10000 if not specified.