'createDebugAdapterDescriptor' is called at the start of a debug session to provide details about the debug adapter to use. These details must be returned as objects of type DebugAdapterDescriptor. Currently two types of debug adapters are supported:
The debug session for which the debug adapter will be used.
The debug adapter's executable information as specified in the package.json (or undefined if no such information exists).
a debug adapter descriptor or undefined.