@aws/lsp-codewhisperer 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/out/language-server/chat/chatController.js +31 -11
- package/out/language-server/chat/chatController.js.map +1 -1
- package/out/language-server/chat/chatController.test.js +364 -1
- package/out/language-server/chat/chatController.test.js.map +1 -1
- package/out/language-server/chat/telemetry/chatTelemetryController.test.js +2 -2
- package/out/language-server/chat/telemetry/chatTelemetryController.test.js.map +1 -1
- package/out/language-server/codeWhispererSecurityScanServer.d.ts +2 -2
- package/out/language-server/codeWhispererSecurityScanServer.js +1 -1
- package/out/language-server/codeWhispererSecurityScanServer.js.map +1 -1
- package/out/language-server/codeWhispererServer.d.ts +2 -2
- package/out/language-server/codeWhispererServer.js +18 -12
- package/out/language-server/codeWhispererServer.js.map +1 -1
- package/out/language-server/codeWhispererServer.test.js +39 -12
- package/out/language-server/codeWhispererServer.test.js.map +1 -1
- package/out/language-server/codeWhispererService.d.ts +4 -4
- package/out/language-server/codeWhispererService.js +10 -7
- package/out/language-server/codeWhispererService.js.map +1 -1
- package/out/language-server/configuration/qConfigurationServer.d.ts +2 -2
- package/out/language-server/configuration/qConfigurationServer.js +2 -2
- package/out/language-server/configuration/qConfigurationServer.js.map +1 -1
- package/out/language-server/dependencyGraph/dependencyGraph.d.ts +1 -1
- package/out/language-server/netTransform/tests/validation.test.js +5 -3
- package/out/language-server/netTransform/tests/validation.test.js.map +1 -1
- package/out/language-server/netTransform/transformHandler.js +2 -2
- package/out/language-server/netTransform/transformHandler.js.map +1 -1
- package/out/language-server/netTransform/validation.d.ts +3 -2
- package/out/language-server/netTransform/validation.js +12 -5
- package/out/language-server/netTransform/validation.js.map +1 -1
- package/out/language-server/netTransformServer.d.ts +2 -2
- package/out/language-server/netTransformServer.js +1 -1
- package/out/language-server/netTransformServer.js.map +1 -1
- package/out/language-server/proxy-server.js +10 -10
- package/out/language-server/proxy-server.js.map +1 -1
- package/out/language-server/qChatServer.js +2 -2
- package/out/language-server/qChatServer.js.map +1 -1
- package/out/language-server/telemetry/codePercentage.test.js +1 -0
- package/out/language-server/telemetry/codePercentage.test.js.map +1 -1
- package/out/language-server/telemetry/userTriggerDecision.test.js +0 -5
- package/out/language-server/telemetry/userTriggerDecision.test.js.map +1 -1
- package/out/language-server/telemetryService.d.ts +2 -2
- package/out/language-server/telemetryService.js +2 -2
- package/out/language-server/telemetryService.js.map +1 -1
- package/out/language-server/telemetryService.test.js +23 -22
- package/out/language-server/telemetryService.test.js.map +1 -1
- package/out/language-server/testUtils.d.ts +1 -0
- package/out/language-server/testUtils.js +2 -1
- package/out/language-server/testUtils.js.map +1 -1
- package/out/language-server/utilities/supplementalContextUtil/supplementalContextUtil.test.js.map +1 -1
- package/out/language-server/utils.d.ts +2 -2
- package/out/language-server/utils.js +2 -3
- package/out/language-server/utils.js.map +1 -1
- package/package.json +4 -3
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/README.md +0 -4
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-cjs/index.js +0 -295
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/auth.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/blob/blob-types.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/connection.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/credentials.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/dns.js +0 -5
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/endpoint.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/extensions/index.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/http.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/identity/AnonymousIdentity.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/identity/AwsCredentialIdentity.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/identity/Identity.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/identity/LoginIdentity.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/identity/TokenIdentity.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/identity/index.js +0 -5
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/index.js +0 -32
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/middleware.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/profile.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/request.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/token.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es/transfer.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/abort.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/auth.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +0 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/checksum.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/client.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/command.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/connection.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +0 -49
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/crypto.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/dns.d.ts +0 -85
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/encode.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/endpoint.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/eventStream.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/extensions/index.d.ts +0 -8
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/http.d.ts +0 -33
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/identity/AnonymousIdentity.d.ts +0 -6
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/identity/Identity.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/identity/LoginIdentity.d.ts +0 -18
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/identity/TokenIdentity.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/identity/index.d.ts +0 -5
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/index.d.ts +0 -32
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/logger.d.ts +0 -22
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/middleware.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/pagination.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/profile.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/request.d.ts +0 -7
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/response.d.ts +0 -7
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/retry.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/serde.d.ts +0 -24
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/shapes.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/signature.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/stream.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/token.d.ts +0 -17
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/transfer.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/abort.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/auth.d.ts +0 -5
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/blob/blob-types.d.ts +0 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/checksum.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/client.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/command.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/connection.d.ts +0 -6
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +0 -12
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/crypto.d.ts +0 -7
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/dns.d.ts +0 -19
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/encode.d.ts +0 -6
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/endpoint.d.ts +0 -9
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/eventStream.d.ts +0 -24
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/extensions/index.d.ts +0 -5
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/http.d.ts +0 -17
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AnonymousIdentity.d.ts +0 -2
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +0 -4
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/Identity.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/LoginIdentity.d.ts +0 -6
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/TokenIdentity.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/index.d.ts +0 -5
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/index.d.ts +0 -32
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/logger.d.ts +0 -15
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/middleware.d.ts +0 -40
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/pagination.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/profile.d.ts +0 -6
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/request.d.ts +0 -4
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/response.d.ts +0 -4
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/retry.d.ts +0 -12
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/serde.d.ts +0 -16
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/shapes.d.ts +0 -6
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/signature.d.ts +0 -15
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/stream.d.ts +0 -4
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/token.d.ts +0 -4
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/transfer.d.ts +0 -7
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/uri.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/util.d.ts +0 -14
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/ts3.4/waiter.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/uri.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/util.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-types/waiter.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/package.json +0 -56
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/LICENSE +0 -201
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/README.md +0 -4
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-cjs/index.js +0 -65
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js +0 -5
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-es/index.js +0 -3
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js +0 -10
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +0 -9
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +0 -10
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-types/fromUtf8.browser.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-types/fromUtf8.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-types/index.d.ts +0 -3
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-types/toUint8Array.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-types/toUtf8.browser.d.ts +0 -7
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-types/toUtf8.d.ts +0 -7
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.browser.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-types/ts3.4/index.d.ts +0 -3
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUint8Array.d.ts +0 -1
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.browser.d.ts +0 -7
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.d.ts +0 -7
- package/node_modules/@amzn/codewhisperer-streaming/node_modules/@smithy/util-utf8/package.json +0 -65
- package/node_modules/@smithy/abort-controller/LICENSE +0 -201
- package/node_modules/@smithy/types/dist-es/abort.js +0 -1
- package/node_modules/@smithy/types/dist-es/checksum.js +0 -1
- package/node_modules/@smithy/types/dist-es/client.js +0 -1
- package/node_modules/@smithy/types/dist-es/command.js +0 -1
- package/node_modules/@smithy/types/dist-es/crypto.js +0 -1
- package/node_modules/@smithy/types/dist-es/encode.js +0 -1
- package/node_modules/@smithy/types/dist-es/eventStream.js +0 -1
- package/node_modules/@smithy/types/dist-es/logger.js +0 -1
- package/node_modules/@smithy/types/dist-es/pagination.js +0 -1
- package/node_modules/@smithy/types/dist-es/response.js +0 -1
- package/node_modules/@smithy/types/dist-es/retry.js +0 -1
- package/node_modules/@smithy/types/dist-es/serde.js +0 -1
- package/node_modules/@smithy/types/dist-es/shapes.js +0 -1
- package/node_modules/@smithy/types/dist-es/signature.js +0 -1
- package/node_modules/@smithy/types/dist-es/stream.js +0 -1
- package/node_modules/@smithy/types/dist-es/uri.js +0 -1
- package/node_modules/@smithy/types/dist-es/util.js +0 -1
- package/node_modules/@smithy/types/dist-es/waiter.js +0 -1
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types → @smithy/node-http-handler/node_modules/@smithy/abort-controller}/LICENSE +0 -0
- /package/node_modules/@smithy/{abort-controller → node-http-handler/node_modules/@smithy/abort-controller}/README.md +0 -0
- /package/node_modules/@smithy/{abort-controller → node-http-handler/node_modules/@smithy/abort-controller}/dist-cjs/AbortController.js +0 -0
- /package/node_modules/@smithy/{abort-controller → node-http-handler/node_modules/@smithy/abort-controller}/dist-cjs/AbortSignal.js +0 -0
- /package/node_modules/@smithy/{abort-controller → node-http-handler/node_modules/@smithy/abort-controller}/dist-cjs/index.js +0 -0
- /package/node_modules/@smithy/{abort-controller → node-http-handler/node_modules/@smithy/abort-controller}/dist-es/AbortController.js +0 -0
- /package/node_modules/@smithy/{abort-controller → node-http-handler/node_modules/@smithy/abort-controller}/dist-es/AbortSignal.js +0 -0
- /package/node_modules/@smithy/{abort-controller → node-http-handler/node_modules/@smithy/abort-controller}/dist-es/index.js +0 -0
- /package/node_modules/@smithy/{abort-controller → node-http-handler/node_modules/@smithy/abort-controller}/dist-types/AbortController.d.ts +0 -0
- /package/node_modules/@smithy/{abort-controller → node-http-handler/node_modules/@smithy/abort-controller}/dist-types/AbortSignal.d.ts +0 -0
- /package/node_modules/@smithy/{abort-controller → node-http-handler/node_modules/@smithy/abort-controller}/dist-types/index.d.ts +0 -0
- /package/node_modules/@smithy/{abort-controller → node-http-handler/node_modules/@smithy/abort-controller}/dist-types/ts3.4/AbortController.d.ts +0 -0
- /package/node_modules/@smithy/{abort-controller → node-http-handler/node_modules/@smithy/abort-controller}/dist-types/ts3.4/AbortSignal.d.ts +0 -0
- /package/node_modules/@smithy/{abort-controller → node-http-handler/node_modules/@smithy/abort-controller}/dist-types/ts3.4/index.d.ts +0 -0
- /package/node_modules/@smithy/{abort-controller → node-http-handler/node_modules/@smithy/abort-controller}/package.json +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/LICENSE +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/README.md +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-cjs/Field.js +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-cjs/Fields.js +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-cjs/extensions/httpExtensionConfiguration.js +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-cjs/extensions/index.js +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-cjs/httpHandler.js +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-cjs/httpRequest.js +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-cjs/httpResponse.js +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-cjs/index.js +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-cjs/isValidHostname.js +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-cjs/types.js +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-es/Field.js +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-es/Fields.js +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-es/extensions/httpExtensionConfiguration.js +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-es/extensions/index.js +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-es/httpHandler.js +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-es/httpRequest.js +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-es/httpResponse.js +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-es/index.js +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-es/isValidHostname.js +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-es/types.js +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-types/Field.d.ts +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-types/Fields.d.ts +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-types/extensions/httpExtensionConfiguration.d.ts +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-types/extensions/index.d.ts +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-types/httpHandler.d.ts +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-types/httpRequest.d.ts +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-types/httpResponse.d.ts +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-types/index.d.ts +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-types/isValidHostname.d.ts +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-types/ts3.4/Field.d.ts +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-types/ts3.4/Fields.d.ts +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-types/ts3.4/extensions/httpExtensionConfiguration.d.ts +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-types/ts3.4/extensions/index.d.ts +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-types/ts3.4/httpHandler.d.ts +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-types/ts3.4/httpRequest.d.ts +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-types/ts3.4/httpResponse.d.ts +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-types/ts3.4/index.d.ts +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-types/ts3.4/isValidHostname.d.ts +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-types/ts3.4/types.d.ts +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/dist-types/types.d.ts +0 -0
- /package/node_modules/@smithy/{protocol-http → node-http-handler/node_modules/@smithy/protocol-http}/package.json +0 -0
- /package/node_modules/@smithy/{querystring-builder → node-http-handler/node_modules/@smithy/querystring-builder}/LICENSE +0 -0
- /package/node_modules/@smithy/{querystring-builder → node-http-handler/node_modules/@smithy/querystring-builder}/README.md +0 -0
- /package/node_modules/@smithy/{querystring-builder → node-http-handler/node_modules/@smithy/querystring-builder}/dist-cjs/index.js +0 -0
- /package/node_modules/@smithy/{querystring-builder → node-http-handler/node_modules/@smithy/querystring-builder}/dist-es/index.js +0 -0
- /package/node_modules/@smithy/{querystring-builder → node-http-handler/node_modules/@smithy/querystring-builder}/dist-types/index.d.ts +0 -0
- /package/node_modules/@smithy/{querystring-builder → node-http-handler/node_modules/@smithy/querystring-builder}/dist-types/ts3.4/index.d.ts +0 -0
- /package/node_modules/@smithy/{querystring-builder → node-http-handler/node_modules/@smithy/querystring-builder}/package.json +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/LICENSE +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/README.md +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/abort.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/auth/HttpApiKeyAuth.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/auth/HttpAuthScheme.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/auth/HttpAuthSchemeProvider.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/auth/HttpSigner.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/auth/IdentityProviderConfig.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/auth/auth.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/auth/index.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/blob/blob-payload-input-types.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/checksum.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/client.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/command.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/connection/config.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/connection/index.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/connection/manager.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/connection/pool.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/crypto.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/downlevel-ts3.4/transform/type-transform.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/encode.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/endpoint.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/endpoints/EndpointRuleObject.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/endpoints/ErrorRuleObject.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/endpoints/RuleSetObject.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/endpoints/TreeRuleObject.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/endpoints/index.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/endpoints/shared.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/eventStream.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/extensions/checksum.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/extensions/defaultClientConfiguration.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/extensions/defaultExtensionConfiguration.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/extensions/index.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/extensions/retry.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/externals-check/browser-externals-check.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/http/httpHandlerInitialization.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/http.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/identity/apiKeyIdentity.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/identity/awsCredentialIdentity.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/identity/identity.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/identity/index.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/identity/tokenIdentity.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/index.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/logger.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/middleware.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/pagination.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/profile.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/response.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/retry.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/serde.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/shapes.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/signature.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/stream.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/streaming-payload/streaming-blob-common-types.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/transfer.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/transform/client-method-transforms.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/transform/client-payload-blob-type-narrow.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/transform/exact.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/transform/no-undefined.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/transform/type-transform.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/uri.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/util.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-cjs/waiter.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@aws-sdk → @smithy/node-http-handler/node_modules/@smithy}/types/dist-es/abort.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/auth/HttpApiKeyAuth.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/auth/HttpAuthScheme.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/auth/HttpAuthSchemeProvider.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/auth/HttpSigner.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/auth/IdentityProviderConfig.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/auth/auth.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/auth/index.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/blob/blob-payload-input-types.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@aws-sdk → @smithy/node-http-handler/node_modules/@smithy}/types/dist-es/checksum.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@aws-sdk → @smithy/node-http-handler/node_modules/@smithy}/types/dist-es/client.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@aws-sdk → @smithy/node-http-handler/node_modules/@smithy}/types/dist-es/command.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/connection/config.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/connection/index.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/connection/manager.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/connection/pool.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@aws-sdk → @smithy/node-http-handler/node_modules/@smithy}/types/dist-es/crypto.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/downlevel-ts3.4/transform/type-transform.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@aws-sdk → @smithy/node-http-handler/node_modules/@smithy}/types/dist-es/encode.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/endpoint.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/endpoints/EndpointRuleObject.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/endpoints/ErrorRuleObject.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/endpoints/RuleSetObject.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/endpoints/TreeRuleObject.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/endpoints/index.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/endpoints/shared.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@aws-sdk → @smithy/node-http-handler/node_modules/@smithy}/types/dist-es/eventStream.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/extensions/checksum.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/extensions/defaultClientConfiguration.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/extensions/defaultExtensionConfiguration.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/extensions/index.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@aws-sdk/types/dist-es → @smithy/node-http-handler/node_modules/@smithy/types/dist-es/extensions}/retry.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/externals-check/browser-externals-check.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/http/httpHandlerInitialization.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/http.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/identity/apiKeyIdentity.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/identity/awsCredentialIdentity.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/identity/identity.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/identity/index.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/identity/tokenIdentity.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/index.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@aws-sdk → @smithy/node-http-handler/node_modules/@smithy}/types/dist-es/logger.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/middleware.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@aws-sdk → @smithy/node-http-handler/node_modules/@smithy}/types/dist-es/pagination.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/profile.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@aws-sdk → @smithy/node-http-handler/node_modules/@smithy}/types/dist-es/response.js +0 -0
- /package/node_modules/@smithy/{types/dist-es/extensions → node-http-handler/node_modules/@smithy/types/dist-es}/retry.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@aws-sdk → @smithy/node-http-handler/node_modules/@smithy}/types/dist-es/serde.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@aws-sdk → @smithy/node-http-handler/node_modules/@smithy}/types/dist-es/shapes.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@aws-sdk → @smithy/node-http-handler/node_modules/@smithy}/types/dist-es/signature.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@aws-sdk → @smithy/node-http-handler/node_modules/@smithy}/types/dist-es/stream.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/streaming-payload/streaming-blob-common-types.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/streaming-payload/streaming-blob-payload-input-types.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/streaming-payload/streaming-blob-payload-output-types.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/transfer.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/transform/client-method-transforms.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/transform/client-payload-blob-type-narrow.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/transform/exact.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/transform/no-undefined.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-es/transform/type-transform.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@aws-sdk → @smithy/node-http-handler/node_modules/@smithy}/types/dist-es/uri.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@aws-sdk → @smithy/node-http-handler/node_modules/@smithy}/types/dist-es/util.js +0 -0
- /package/node_modules/{@amzn/codewhisperer-streaming/node_modules/@aws-sdk → @smithy/node-http-handler/node_modules/@smithy}/types/dist-es/waiter.js +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/abort.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/auth/HttpApiKeyAuth.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/auth/HttpAuthScheme.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/auth/HttpAuthSchemeProvider.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/auth/HttpSigner.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/auth/IdentityProviderConfig.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/auth/auth.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/auth/index.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/blob/blob-payload-input-types.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/checksum.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/client.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/command.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/connection/config.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/connection/index.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/connection/manager.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/connection/pool.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/crypto.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/downlevel-ts3.4/transform/type-transform.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/encode.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/endpoint.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/endpoints/EndpointRuleObject.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/endpoints/ErrorRuleObject.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/endpoints/RuleSetObject.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/endpoints/TreeRuleObject.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/endpoints/index.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/endpoints/shared.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/eventStream.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/extensions/checksum.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/extensions/defaultClientConfiguration.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/extensions/defaultExtensionConfiguration.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/extensions/index.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/extensions/retry.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/externals-check/browser-externals-check.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/http/httpHandlerInitialization.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/http.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/identity/apiKeyIdentity.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/identity/awsCredentialIdentity.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/identity/identity.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/identity/index.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/identity/tokenIdentity.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/index.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/logger.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/middleware.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/pagination.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/profile.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/response.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/retry.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/serde.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/shapes.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/signature.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/stream.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/streaming-payload/streaming-blob-common-types.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/transfer.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/transform/client-method-transforms.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/transform/client-payload-blob-type-narrow.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/transform/exact.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/transform/no-undefined.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/transform/type-transform.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/abort.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/auth/HttpApiKeyAuth.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/auth/HttpAuthScheme.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/auth/HttpAuthSchemeProvider.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/auth/HttpSigner.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/auth/IdentityProviderConfig.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/auth/auth.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/auth/index.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/blob/blob-payload-input-types.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/checksum.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/client.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/command.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/connection/config.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/connection/index.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/connection/manager.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/connection/pool.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/crypto.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/downlevel-ts3.4/transform/type-transform.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/encode.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/endpoint.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/endpoints/EndpointRuleObject.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/endpoints/ErrorRuleObject.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/endpoints/RuleSetObject.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/endpoints/TreeRuleObject.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/endpoints/index.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/endpoints/shared.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/eventStream.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/extensions/checksum.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/extensions/defaultClientConfiguration.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/extensions/index.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/extensions/retry.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/externals-check/browser-externals-check.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/http.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/identity/apiKeyIdentity.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/identity/awsCredentialIdentity.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/identity/identity.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/identity/index.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/identity/tokenIdentity.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/index.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/logger.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/middleware.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/pagination.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/profile.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/response.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/retry.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/serde.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/shapes.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/signature.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/stream.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/streaming-payload/streaming-blob-common-types.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/streaming-payload/streaming-blob-payload-output-types.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/transfer.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/transform/client-method-transforms.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/transform/exact.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/transform/no-undefined.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/transform/type-transform.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/uri.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/util.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/ts3.4/waiter.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/uri.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/util.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/dist-types/waiter.d.ts +0 -0
- /package/node_modules/@smithy/{types → node-http-handler/node_modules/@smithy/types}/package.json +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.19](https://github.com/aws/language-servers/compare/lsp-codewhisperer/v0.0.18...lsp-codewhisperer/v0.0.19) (2025-01-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* handle virtual spaces when inserting code to cursor position ([#675](https://github.com/aws/language-servers/issues/675)) ([f2949d4](https://github.com/aws/language-servers/commit/f2949d4f54c5a91b78b02e4d5ff99b8f5c8961b5))
|
|
9
|
+
* pass supplemental contexts only for token client ([#697](https://github.com/aws/language-servers/issues/697)) ([7242835](https://github.com/aws/language-servers/commit/72428352db009835b7702977bd50492ab8b79606))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* adding tests for covering the special characters case for auto trigger ([#680](https://github.com/aws/language-servers/issues/680)) ([873fdae](https://github.com/aws/language-servers/commit/873fdae39ad59f7d681b37cfc0b5c2d7062395b9))
|
|
15
|
+
|
|
3
16
|
## [0.0.18] - 2024-11-20
|
|
4
17
|
|
|
5
18
|
### Changed
|
|
@@ -127,25 +127,45 @@ class ChatController {
|
|
|
127
127
|
this.#log(`Q Chat server failed to insert code. Missing required parameters for insert code: ${missingParams.join(', ')}`);
|
|
128
128
|
return;
|
|
129
129
|
}
|
|
130
|
-
|
|
130
|
+
let cursorPosition = params.cursorPosition;
|
|
131
131
|
const indentRange = {
|
|
132
132
|
start: { line: cursorPosition.line, character: 0 },
|
|
133
133
|
end: cursorPosition,
|
|
134
134
|
};
|
|
135
135
|
const documentContent = await this.#features.workspace.getTextDocument(params.textDocument.uri);
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
// linePrefix is the raw text that is between the start of the line and the current cursor position
|
|
137
|
+
let linePrefix = documentContent?.getText(indentRange);
|
|
138
|
+
// calculatedIndent is the indent we calculate inside this function and apply to the text to be inserted
|
|
139
|
+
let calculatedIndent = '';
|
|
140
|
+
let hasVirtualSpace = false;
|
|
141
|
+
if (linePrefix) {
|
|
142
|
+
// If linePrefix object is not empty, there are two possibilities:
|
|
143
|
+
// Case 1: If linePrefix contains only whitespace: Use the entire linePrefix as is for the indent
|
|
144
|
+
// Case 2: If linePrefix contains non-whitespace characters: Extract leading whitespace from linePrefix (if any), ignore rest of text
|
|
145
|
+
calculatedIndent =
|
|
146
|
+
linePrefix.trim().length == 0
|
|
147
|
+
? linePrefix
|
|
148
|
+
: ' '.repeat(linePrefix.length - linePrefix.trimStart().length);
|
|
139
149
|
}
|
|
140
|
-
|
|
141
|
-
|
|
150
|
+
else if (documentContent && cursorPosition.character > 0) {
|
|
151
|
+
// When the cursor is not at the start of the line (position > 0) but there's no actual text at the indentation range
|
|
152
|
+
// It means there are virtual spaces that is being rendered by the IDE
|
|
153
|
+
// In this case, the indentation is determined by the cursorPosition
|
|
154
|
+
this.#log('Indent is nullish and the cursor position is greater than zero while inserting code');
|
|
155
|
+
calculatedIndent = ' '.repeat(cursorPosition.character);
|
|
156
|
+
hasVirtualSpace = true;
|
|
157
|
+
cursorPosition.character = 0;
|
|
158
|
+
}
|
|
159
|
+
const textWithIndent = params.code
|
|
160
|
+
.split('\n')
|
|
161
|
+
.map((line, index) => {
|
|
142
162
|
if (index === 0) {
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
else {
|
|
146
|
-
textWithIndent += '\n' + indent + line;
|
|
163
|
+
return hasVirtualSpace && line ? calculatedIndent + line : line;
|
|
147
164
|
}
|
|
148
|
-
|
|
165
|
+
// Only indent non-empty lines
|
|
166
|
+
return line ? calculatedIndent + line : '';
|
|
167
|
+
})
|
|
168
|
+
.join('\n');
|
|
149
169
|
const workspaceEdit = {
|
|
150
170
|
edit: {
|
|
151
171
|
documentChanges: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatController.js","sourceRoot":"","sources":["../../../src/language-server/chat/chatController.ts"],"names":[],"mappings":";;;AACA,qEAQ+C;AAC/C,qFAYuD;AACvD,+BAAiC;AACjC,8CAK2B;AAE3B,uDAA2E;AAC3E,mCAA+F;AAE/F,iFAA6E;AAC7E,iDAA4C;AAC5C,oCAA2E;AAC3E,gDAA4C;AAC5C,8DAA+E;AAC/E,2CAA0C;AAC1C,gFAA+E;AAC/E,sDAAyD;AAKzD,MAAa,cAAc;IACvB,SAAS,CAAU;IACnB,6BAA6B,CAA8B;IAC3D,oBAAoB,CAAyB;IAC7C,eAAe,CAAqB;IACpC,iBAAiB,CAAS;IAC1B,iBAAiB,CAAkB;IAEnC,YACI,4BAA0D,EAC1D,QAAkB,EAClB,gBAAkC;QAElC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAA;QACzB,IAAI,CAAC,6BAA6B,GAAG,4BAA4B,CAAA;QACjE,IAAI,CAAC,eAAe,GAAG,IAAI,oCAAmB,CAAC,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;QACpF,IAAI,CAAC,oBAAoB,GAAG,IAAI,iDAAuB,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAA;QACnF,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAA;IAC7C,CAAC;IAED,OAAO;QACH,IAAI,CAAC,6BAA6B,CAAC,OAAO,EAAE,CAAA;QAC5C,IAAI,CAAC,oBAAoB,CAAC,OAAO,EAAE,CAAA;IACvC,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,MAAkB,EAAE,KAAwB;QAC3D,MAAM,oBAAoB,GAAG,IAAA,8BAAsB,EAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CA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AAC;gBACV,IAAI,CAAC,iBAAiB,GAAG,IAAA,4BAAgB,EAAC,OAAO,CAAC,aAAa,CAAC,CAAA;gBAChE,IAAI,CAAC,IAAI,CAAC,qCAAqC,IAAI,CAAC,iBAAiB,EAAE,CAAC,CAAA;gBACxE;;;kBAGE;gBACF,kDAAkD;gBAClD,sGAAsG;gBACtG,MAAM,yBAAyB,GAAG,OAAO,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAA;gBAC1F,IAAI,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,yBAAyB,CAAC,CAAA;YAC5E,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,CAAC,IAAI,CAAC,8BAA8B,KAAK,EAAE,CAAC,CAAA;QACpD,CAAC;IACL,CAAC,CAAA;IAED,IAAI,CAAC,GAAG,QAAkB;QACtB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;IAClD,CAAC;CACJ;AAvZD,wCAuZC"}
|
|
@@ -94,11 +94,12 @@ describe('ChatController', () => {
|
|
|
94
94
|
},
|
|
95
95
|
}),
|
|
96
96
|
};
|
|
97
|
+
const mockWorkspace = {};
|
|
97
98
|
telemetry = {
|
|
98
99
|
emitMetric: ts_sinon_1.default.stub(),
|
|
99
100
|
onClientTelemetry: ts_sinon_1.default.stub(),
|
|
100
101
|
};
|
|
101
|
-
telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'bearer', telemetry, logging);
|
|
102
|
+
telemetryService = new telemetryService_1.TelemetryService(mockCredentialsProvider, 'bearer', telemetry, logging, mockWorkspace);
|
|
102
103
|
invokeSendTelemetryEventStub = ts_sinon_1.default.stub(telemetryService, 'sendTelemetryEvent');
|
|
103
104
|
chatController = new chatController_1.ChatController(chatSessionManagementService, testFeatures, telemetryService);
|
|
104
105
|
});
|
|
@@ -325,5 +326,367 @@ describe('ChatController', () => {
|
|
|
325
326
|
});
|
|
326
327
|
});
|
|
327
328
|
});
|
|
329
|
+
describe('onCodeInsertToCursorPosition', () => {
|
|
330
|
+
beforeEach(() => {
|
|
331
|
+
chatController.onTabAdd({ tabId: mockTabId });
|
|
332
|
+
testFeatures.lsp.workspace.applyWorkspaceEdit.resolves({ applied: true });
|
|
333
|
+
testFeatures.workspace.getTextDocument = ts_sinon_1.default.stub();
|
|
334
|
+
});
|
|
335
|
+
it('handles regular insertion correctly', async () => {
|
|
336
|
+
const document = server_interface_1.TextDocument.create('test.ts', 'typescript', 1, ' ');
|
|
337
|
+
testFeatures.workspace.getTextDocument.resolves(document);
|
|
338
|
+
const cursorPosition = server_interface_1.Position.create(0, 0);
|
|
339
|
+
const params = {
|
|
340
|
+
textDocument: { uri: 'test.ts' },
|
|
341
|
+
cursorPosition,
|
|
342
|
+
code: 'const x = 1\n const y = 2',
|
|
343
|
+
tabId: mockTabId,
|
|
344
|
+
messageId: 'XXX',
|
|
345
|
+
};
|
|
346
|
+
await chatController.onCodeInsertToCursorPosition(params);
|
|
347
|
+
assert.deepStrictEqual(testFeatures.lsp.workspace.applyWorkspaceEdit.firstCall.args[0], {
|
|
348
|
+
edit: {
|
|
349
|
+
documentChanges: [
|
|
350
|
+
{
|
|
351
|
+
textDocument: { uri: 'test.ts', version: 0 },
|
|
352
|
+
edits: [
|
|
353
|
+
{
|
|
354
|
+
range: {
|
|
355
|
+
start: cursorPosition,
|
|
356
|
+
end: cursorPosition,
|
|
357
|
+
},
|
|
358
|
+
newText: params.code,
|
|
359
|
+
},
|
|
360
|
+
],
|
|
361
|
+
},
|
|
362
|
+
],
|
|
363
|
+
},
|
|
364
|
+
});
|
|
365
|
+
});
|
|
366
|
+
it('handles tab-based indentation correctly', async () => {
|
|
367
|
+
const documentContent = 'function test() {\n\tif (true) {\n\t\t// cursor here\n\t}';
|
|
368
|
+
const document = server_interface_1.TextDocument.create('test.ts', 'typescript', 1, documentContent);
|
|
369
|
+
testFeatures.workspace.getTextDocument.resolves(document);
|
|
370
|
+
const cursorPosition = server_interface_1.Position.create(2, 2);
|
|
371
|
+
const params = {
|
|
372
|
+
textDocument: { uri: 'test.ts' },
|
|
373
|
+
cursorPosition,
|
|
374
|
+
code: 'console.log("test");\nconsole.log("test2")',
|
|
375
|
+
tabId: mockTabId,
|
|
376
|
+
messageId: 'XXX',
|
|
377
|
+
};
|
|
378
|
+
await chatController.onCodeInsertToCursorPosition(params);
|
|
379
|
+
const documentChanges = testFeatures.lsp.workspace.applyWorkspaceEdit.firstCall.args[0].edit.documentChanges;
|
|
380
|
+
assert(documentChanges);
|
|
381
|
+
const insertedText = documentChanges[0].edits[0].newText;
|
|
382
|
+
// Should maintain tab-based indentation
|
|
383
|
+
assert.deepStrictEqual(insertedText, 'console.log("test");\n\t\tconsole.log("test2")');
|
|
384
|
+
});
|
|
385
|
+
it('handles insertion at mixed indentation levels correctly', async () => {
|
|
386
|
+
const documentContent = `function test() {
|
|
387
|
+
if (true) {
|
|
388
|
+
// cursor here
|
|
389
|
+
console.log("test");
|
|
390
|
+
}
|
|
391
|
+
}`;
|
|
392
|
+
const document = server_interface_1.TextDocument.create('test.ts', 'typescript', 1, documentContent);
|
|
393
|
+
testFeatures.workspace.getTextDocument.resolves(document);
|
|
394
|
+
const cursorPosition = server_interface_1.Position.create(2, 12);
|
|
395
|
+
const params = {
|
|
396
|
+
textDocument: { uri: 'test.ts' },
|
|
397
|
+
cursorPosition,
|
|
398
|
+
code: 'const x = 1;\nconst y = 2;',
|
|
399
|
+
tabId: mockTabId,
|
|
400
|
+
messageId: 'XXX',
|
|
401
|
+
};
|
|
402
|
+
await chatController.onCodeInsertToCursorPosition(params);
|
|
403
|
+
// Verify that the inserted code maintains the indentation level of the insertion point
|
|
404
|
+
const documentChanges = testFeatures.lsp.workspace.applyWorkspaceEdit.firstCall.args[0].edit.documentChanges;
|
|
405
|
+
assert(documentChanges);
|
|
406
|
+
const insertedText = documentChanges[0].edits[0].newText;
|
|
407
|
+
assert.deepStrictEqual(insertedText, `const x = 1;\n${' '.repeat(12)}const y = 2;`);
|
|
408
|
+
});
|
|
409
|
+
it('handles code starting with multiple blank lines correctly', async () => {
|
|
410
|
+
// Create a document with some existing indentation
|
|
411
|
+
const documentContent = `${' '.repeat(4)}const existingCode = true;`;
|
|
412
|
+
const document = server_interface_1.TextDocument.create('test.ts', 'typescript', 1, documentContent);
|
|
413
|
+
testFeatures.workspace.getTextDocument.resolves(document);
|
|
414
|
+
// Position cursor at an indented position
|
|
415
|
+
const cursorPosition = server_interface_1.Position.create(0, 4);
|
|
416
|
+
const params = {
|
|
417
|
+
textDocument: { uri: 'test.ts' },
|
|
418
|
+
cursorPosition,
|
|
419
|
+
// Code starts with 3 blank lines, followed by actual code
|
|
420
|
+
code: '\n\n\nfunction test() {\n console.log("test");\n}',
|
|
421
|
+
tabId: mockTabId,
|
|
422
|
+
messageId: 'XXX',
|
|
423
|
+
};
|
|
424
|
+
await chatController.onCodeInsertToCursorPosition(params);
|
|
425
|
+
const documentChanges = testFeatures.lsp.workspace.applyWorkspaceEdit.firstCall.args[0].edit.documentChanges;
|
|
426
|
+
assert(documentChanges);
|
|
427
|
+
const insertedText = documentChanges[0].edits[0].newText;
|
|
428
|
+
// The blank lines should have no indentation
|
|
429
|
+
// Only the actual code lines should be indented
|
|
430
|
+
// First three lines should be empty with no indentation
|
|
431
|
+
// Following lines should have the indentation
|
|
432
|
+
assert.deepStrictEqual(insertedText, `\n\n\n${' '.repeat(4)}function test() {\n${' '.repeat(8)}console.log("test");\n${' '.repeat(4)}}`);
|
|
433
|
+
});
|
|
434
|
+
it('handles insertion of code with multiple leading blank lines into empty document at position 0', async () => {
|
|
435
|
+
const documentContent = '';
|
|
436
|
+
const document = server_interface_1.TextDocument.create('test.py', 'python', 1, documentContent);
|
|
437
|
+
testFeatures.workspace.getTextDocument.resolves(document);
|
|
438
|
+
const cursorPosition = server_interface_1.Position.create(0, 0);
|
|
439
|
+
const params = {
|
|
440
|
+
textDocument: { uri: 'test.ts' },
|
|
441
|
+
cursorPosition,
|
|
442
|
+
// Code with 5 blank lines at the beginning
|
|
443
|
+
code: '\n\n\n\n\ndef multiply(x, y):\n result = x * y\n return result\n\nprint(multiply(4, 5))',
|
|
444
|
+
tabId: mockTabId,
|
|
445
|
+
messageId: 'XXX',
|
|
446
|
+
};
|
|
447
|
+
await chatController.onCodeInsertToCursorPosition(params);
|
|
448
|
+
const documentChanges = testFeatures.lsp.workspace.applyWorkspaceEdit.firstCall.args[0].edit.documentChanges;
|
|
449
|
+
assert(documentChanges);
|
|
450
|
+
const insertedText = documentChanges[0].edits[0].newText;
|
|
451
|
+
// Since document is empty and cursor is at 0,0:
|
|
452
|
+
// - Leading blank lines should be preserved exactly as is
|
|
453
|
+
// - No additional indentation should be added to any lines
|
|
454
|
+
assert.deepStrictEqual(insertedText, params.code);
|
|
455
|
+
});
|
|
456
|
+
it('handles undefined document content correctly', async () => {
|
|
457
|
+
testFeatures.workspace.getTextDocument.resolves(undefined);
|
|
458
|
+
const cursorPosition = server_interface_1.Position.create(0, 0);
|
|
459
|
+
const params = {
|
|
460
|
+
textDocument: { uri: 'test.ts' },
|
|
461
|
+
cursorPosition,
|
|
462
|
+
code: 'const x = 1;\nconst y = 2;',
|
|
463
|
+
tabId: mockTabId,
|
|
464
|
+
messageId: 'XXX',
|
|
465
|
+
};
|
|
466
|
+
await chatController.onCodeInsertToCursorPosition(params);
|
|
467
|
+
// When document content is undefined, the code should:
|
|
468
|
+
// 1. Still attempt to insert the code
|
|
469
|
+
// 2. Not add any indentation
|
|
470
|
+
const documentChanges = testFeatures.lsp.workspace.applyWorkspaceEdit.firstCall.args[0].edit.documentChanges;
|
|
471
|
+
assert(documentChanges);
|
|
472
|
+
const edit = documentChanges[0].edits[0];
|
|
473
|
+
assert.deepStrictEqual(edit.newText, params.code);
|
|
474
|
+
assert.deepStrictEqual(edit.range.start, cursorPosition);
|
|
475
|
+
assert.deepStrictEqual(edit.range.end, cursorPosition);
|
|
476
|
+
});
|
|
477
|
+
it('handles indentation correctly when inserting after an indent', async () => {
|
|
478
|
+
// Text document contains 8 space characters
|
|
479
|
+
const documentContent = ' '.repeat(8);
|
|
480
|
+
const document = server_interface_1.TextDocument.create('test.ts', 'typescript', 1, documentContent);
|
|
481
|
+
testFeatures.workspace.getTextDocument.resolves(document);
|
|
482
|
+
// Cursor is positioned at the end of the first line, after the 8 spaces
|
|
483
|
+
const cursorPosition = server_interface_1.Position.create(0, documentContent.length);
|
|
484
|
+
const params = {
|
|
485
|
+
textDocument: { uri: 'test.ts' },
|
|
486
|
+
cursorPosition,
|
|
487
|
+
code: 'const x = 1\nconst y = 2',
|
|
488
|
+
tabId: mockTabId,
|
|
489
|
+
messageId: 'XXX',
|
|
490
|
+
};
|
|
491
|
+
await chatController.onCodeInsertToCursorPosition(params);
|
|
492
|
+
assert.deepStrictEqual(testFeatures.lsp.workspace.applyWorkspaceEdit.firstCall.args[0], {
|
|
493
|
+
edit: {
|
|
494
|
+
documentChanges: [
|
|
495
|
+
{
|
|
496
|
+
textDocument: { uri: 'test.ts', version: 0 },
|
|
497
|
+
edits: [
|
|
498
|
+
{
|
|
499
|
+
range: {
|
|
500
|
+
start: cursorPosition,
|
|
501
|
+
end: cursorPosition,
|
|
502
|
+
},
|
|
503
|
+
// We expect new text to be added to the end of the existing line and also apply indentation on the next line
|
|
504
|
+
newText: `const x = 1\n${' '.repeat(8)}const y = 2`,
|
|
505
|
+
},
|
|
506
|
+
],
|
|
507
|
+
},
|
|
508
|
+
],
|
|
509
|
+
},
|
|
510
|
+
});
|
|
511
|
+
});
|
|
512
|
+
it('handles indentation correctly when inserting at the end of a single line that does not have any indentation', async () => {
|
|
513
|
+
const documentContent = 'console.log("Hello world")';
|
|
514
|
+
const document = server_interface_1.TextDocument.create('test.ts', 'typescript', 1, documentContent);
|
|
515
|
+
testFeatures.workspace.getTextDocument.resolves(document);
|
|
516
|
+
const forLoop = `for (let i = 2; i <= n; i++) {
|
|
517
|
+
const next = prev + current;
|
|
518
|
+
prev = current;
|
|
519
|
+
current = next;
|
|
520
|
+
}`;
|
|
521
|
+
const cursorPosition = server_interface_1.Position.create(0, documentContent.length);
|
|
522
|
+
const params = {
|
|
523
|
+
textDocument: { uri: 'test.ts' },
|
|
524
|
+
cursorPosition,
|
|
525
|
+
code: forLoop,
|
|
526
|
+
tabId: mockTabId,
|
|
527
|
+
messageId: 'XXX',
|
|
528
|
+
};
|
|
529
|
+
await chatController.onCodeInsertToCursorPosition(params);
|
|
530
|
+
const documentChanges = testFeatures.lsp.workspace.applyWorkspaceEdit.firstCall.args[0].edit.documentChanges;
|
|
531
|
+
assert(documentChanges);
|
|
532
|
+
const insertedText = documentChanges[0].edits[0].newText;
|
|
533
|
+
// For loop should be inserted as is in this case
|
|
534
|
+
assert.deepStrictEqual(insertedText, forLoop);
|
|
535
|
+
});
|
|
536
|
+
it('handles indentation correctly when inserting inside an indented block', async () => {
|
|
537
|
+
const fibonacci = `function fibonacci(n) {
|
|
538
|
+
if (n <= 1) return n;
|
|
539
|
+
|
|
540
|
+
let prev = 0,
|
|
541
|
+
let current = 1;
|
|
542
|
+
|
|
543
|
+
for (let i = 2; i <= n; i++) {
|
|
544
|
+
// Insertion will happen on the line below
|
|
545
|
+
|
|
546
|
+
const next = prev + current;
|
|
547
|
+
prev = current;
|
|
548
|
+
current = next;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
return current;
|
|
552
|
+
}
|
|
553
|
+
`;
|
|
554
|
+
// This test will insert an extra for loop inside the existing for loop in the fibonacci function above
|
|
555
|
+
const forLoop = `for (let i = 2; i <= n; i++) {
|
|
556
|
+
const next = prev + current;
|
|
557
|
+
prev = current;
|
|
558
|
+
current = next;
|
|
559
|
+
}
|
|
560
|
+
`;
|
|
561
|
+
// Given the for loop is inside a function and we will be inserting a new for loop inside, the for loop to be inserted will have 8 prefix spaces
|
|
562
|
+
const twiceIndentedForLoop = `for (let i = 2; i <= n; i++) {
|
|
563
|
+
${' '.repeat(8)} const next = prev + current;
|
|
564
|
+
${' '.repeat(8)} prev = current;
|
|
565
|
+
${' '.repeat(8)} current = next;
|
|
566
|
+
${' '.repeat(8)}}
|
|
567
|
+
`;
|
|
568
|
+
let document = server_interface_1.TextDocument.create('test.ts', 'typescript', 1, fibonacci);
|
|
569
|
+
testFeatures.workspace.getTextDocument.resolves(document);
|
|
570
|
+
const cursorPosition = server_interface_1.Position.create(8, 8);
|
|
571
|
+
const params = {
|
|
572
|
+
textDocument: { uri: 'test.ts' },
|
|
573
|
+
cursorPosition,
|
|
574
|
+
code: forLoop,
|
|
575
|
+
tabId: mockTabId,
|
|
576
|
+
messageId: 'XXX',
|
|
577
|
+
};
|
|
578
|
+
await chatController.onCodeInsertToCursorPosition(params);
|
|
579
|
+
const documentChanges = testFeatures.lsp.workspace.applyWorkspaceEdit.firstCall.args[0].edit.documentChanges;
|
|
580
|
+
assert(documentChanges);
|
|
581
|
+
const insertedText = documentChanges[0].edits[0].newText;
|
|
582
|
+
assert.deepStrictEqual(insertedText, twiceIndentedForLoop);
|
|
583
|
+
});
|
|
584
|
+
it('handles virtual spaces when cursor is in empty line with virtual indent', async () => {
|
|
585
|
+
// Create an empty document
|
|
586
|
+
const document = server_interface_1.TextDocument.create('test.ts', 'typescript', 1, '');
|
|
587
|
+
testFeatures.workspace.getTextDocument.resolves(document);
|
|
588
|
+
// Position cursor at character 8 in an empty line (virtual space)
|
|
589
|
+
const cursorPosition = server_interface_1.Position.create(0, 8);
|
|
590
|
+
const params = {
|
|
591
|
+
textDocument: { uri: 'test.ts' },
|
|
592
|
+
cursorPosition,
|
|
593
|
+
code: 'const x = 1\nconst y = 2',
|
|
594
|
+
tabId: mockTabId,
|
|
595
|
+
messageId: 'XXX',
|
|
596
|
+
};
|
|
597
|
+
await chatController.onCodeInsertToCursorPosition(params);
|
|
598
|
+
// The code should be indented with 8 spaces for both lines
|
|
599
|
+
// and cursor should be moved to position 0
|
|
600
|
+
assert.deepStrictEqual(testFeatures.lsp.workspace.applyWorkspaceEdit.firstCall.args[0], {
|
|
601
|
+
edit: {
|
|
602
|
+
documentChanges: [
|
|
603
|
+
{
|
|
604
|
+
textDocument: { uri: 'test.ts', version: 0 },
|
|
605
|
+
edits: [
|
|
606
|
+
{
|
|
607
|
+
range: {
|
|
608
|
+
start: server_interface_1.Position.create(0, 0), // Note: cursor moved to start
|
|
609
|
+
end: server_interface_1.Position.create(0, 0),
|
|
610
|
+
},
|
|
611
|
+
newText: `${' '.repeat(8)}const x = 1\n${' '.repeat(8)}const y = 2`,
|
|
612
|
+
},
|
|
613
|
+
],
|
|
614
|
+
},
|
|
615
|
+
],
|
|
616
|
+
},
|
|
617
|
+
});
|
|
618
|
+
});
|
|
619
|
+
it('handles virtual spaces with multiline code containing empty lines', async () => {
|
|
620
|
+
// Create an empty document
|
|
621
|
+
let document = server_interface_1.TextDocument.create('test.ts', 'typescript', 1, '');
|
|
622
|
+
testFeatures.workspace.getTextDocument.resolves(document);
|
|
623
|
+
// Position cursor at character 4 in an empty line (virtual space)
|
|
624
|
+
const cursorPosition = server_interface_1.Position.create(0, 4);
|
|
625
|
+
const params = {
|
|
626
|
+
textDocument: { uri: 'test.ts' },
|
|
627
|
+
cursorPosition,
|
|
628
|
+
code: 'if (condition) {\n\n console.log("test");\n}',
|
|
629
|
+
tabId: mockTabId,
|
|
630
|
+
messageId: 'XXX',
|
|
631
|
+
};
|
|
632
|
+
await chatController.onCodeInsertToCursorPosition(params);
|
|
633
|
+
// The code should be indented with 4 spaces, empty lines should remain empty
|
|
634
|
+
assert.deepStrictEqual(testFeatures.lsp.workspace.applyWorkspaceEdit.firstCall.args[0], {
|
|
635
|
+
edit: {
|
|
636
|
+
documentChanges: [
|
|
637
|
+
{
|
|
638
|
+
textDocument: { uri: 'test.ts', version: 0 },
|
|
639
|
+
edits: [
|
|
640
|
+
{
|
|
641
|
+
range: {
|
|
642
|
+
start: server_interface_1.Position.create(0, 0), // Note: cursor moved to start
|
|
643
|
+
end: server_interface_1.Position.create(0, 0),
|
|
644
|
+
},
|
|
645
|
+
newText: `${' '.repeat(4)}if (condition) {\n\n${' '.repeat(8)}console.log("test");\n }`,
|
|
646
|
+
},
|
|
647
|
+
],
|
|
648
|
+
},
|
|
649
|
+
],
|
|
650
|
+
},
|
|
651
|
+
});
|
|
652
|
+
});
|
|
653
|
+
it('handles virtual spaces correctly when code starts with empty line', async () => {
|
|
654
|
+
const document = server_interface_1.TextDocument.create('test.ts', 'typescript', 1, '');
|
|
655
|
+
testFeatures.workspace.getTextDocument.resolves(document);
|
|
656
|
+
// Position cursor at character 6 in an empty line (virtual space)
|
|
657
|
+
const cursorPosition = server_interface_1.Position.create(0, 6);
|
|
658
|
+
const params = {
|
|
659
|
+
textDocument: { uri: 'test.ts' },
|
|
660
|
+
cursorPosition,
|
|
661
|
+
// Code starts with an empty line, followed by actual code
|
|
662
|
+
code: '\nfunction test() {\n console.log("test");\n}',
|
|
663
|
+
tabId: mockTabId,
|
|
664
|
+
messageId: 'XXX',
|
|
665
|
+
};
|
|
666
|
+
await chatController.onCodeInsertToCursorPosition(params);
|
|
667
|
+
// The first empty line should have no indentation
|
|
668
|
+
// Subsequent lines should be indented with 6 spaces
|
|
669
|
+
assert.deepStrictEqual(testFeatures.lsp.workspace.applyWorkspaceEdit.firstCall.args[0], {
|
|
670
|
+
edit: {
|
|
671
|
+
documentChanges: [
|
|
672
|
+
{
|
|
673
|
+
textDocument: { uri: 'test.ts', version: 0 },
|
|
674
|
+
edits: [
|
|
675
|
+
{
|
|
676
|
+
range: {
|
|
677
|
+
start: server_interface_1.Position.create(0, 0), // Note: cursor moved to start
|
|
678
|
+
end: server_interface_1.Position.create(0, 0),
|
|
679
|
+
},
|
|
680
|
+
// First line is empty (no indentation)
|
|
681
|
+
// Following lines get the virtual space indentation
|
|
682
|
+
newText: `\n${' '.repeat(6)}function test() {\n${' '.repeat(10)}console.log("test");\n${' '.repeat(6)}}`,
|
|
683
|
+
},
|
|
684
|
+
],
|
|
685
|
+
},
|
|
686
|
+
],
|
|
687
|
+
},
|
|
688
|
+
});
|
|
689
|
+
});
|
|
690
|
+
});
|
|
328
691
|
});
|
|
329
692
|
//# sourceMappingURL=chatController.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatController.test.js","sourceRoot":"","sources":["../../../src/language-server/chat/chatController.test.ts"],"names":[],"mappings":";;AAAA,2EAAmH;AACnH,qFAQuD;AACvD,mEAAoE;AACpE,iCAAgC;AAChC,uCAA4B;AAC5B,4CAAqD;AACrD,qDAAiD;AACjD,iFAA6E;AAC7E,6DAAyD;AACzD,iFAA6E;AAC7E,gEAAqE;AACrE,iCAAgC;AAChC,2CAAyE;AACzE,0DAAsD;AAEtD,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC5B,MAAM,SAAS,GAAG,OAAO,CAAA;IACzB,MAAM,kBAAkB,GAAG,sBAAsB,CAAA;IACjD,MAAM,aAAa,GAAG,iBAAiB,CAAA;IAEvC,MAAM,oBAAoB,GAAyB;QAC/C;YACI,oBAAoB,EAAE;gBAClB,cAAc,EAAE,kBAAkB;aACrC;SACJ;QACD;YACI,sBAAsB,EAAE;gBACpB,OAAO,EAAE,QAAQ;aACpB;SACJ;QACD;YACI,sBAAsB,EAAE;gBACpB,OAAO,EAAE,OAAO;aACnB;SACJ;QACD;YACI,sBAAsB,EAAE;gBACpB,OAAO,EAAE,GAAG;aACf;SACJ;KACJ,CAAA;IAED,MAAM,0BAA0B,GAAe;QAC3C,SAAS,EAAE,aAAa;QACxB,IAAI,EAAE,cAAc;QACpB,UAAU,EAAE,IAAI;QAChB,aAAa,EAAE,SAAS;QACxB,QAAQ,EAAE,SAAS;QACnB,cAAc,EAAE,SAAS;KAC5B,CAAA;IAED,MAAM,qBAAqB,GAAG;QAC1B,uBAAuB,EAAE,KAAK;QAC9B,uBAAuB,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,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1B,mBAAmB,EAAE,YAAY;oBACjC,WAAW,EAAE,EAAE;oBACf,gBAAgB,EAAE,kBAAkB,CAAC,GAAG;iBAC3C,CAAA;gBACD,0BAA0B,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAA;gBAE1D,MAAM,cAAc,CAAC,YAAY,CAC7B;oBACI,KAAK,EAAE,SAAS;oBAChB,MAAM,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE;oBAC3B,YAAY,EAAE,EAAE,GAAG,EAAE,iBAAiB,EAAE;oBACxC,WAAW,EAAE,CAAC,eAAe,CAAC;iBACjC,EACD,qBAAqB,CACxB,CAAA;gBAED,MAAM,kBAAkB,GAA4B,eAAe,CAAC,SAAS,CAAC,QAAQ,CAAA;gBAEtF,MAAM,CAAC,eAAe,CAClB,kBAAkB,CAAC,iBAAiB,EAAE,cAAc,EAAE,gBAAgB,EAAE,uBAAuB;oBAC3F,EAAE,WAAW,EACjB;oBACI,WAAW,EAAE,EAAE;oBACf,QAAQ,EAAE;wBACN,mBAAmB,EAAE,YAAY;wBACjC,gBAAgB,EAAE,iBAAiB;wBACnC,IAAI,EAAE,SAAS;qBAClB;iBACJ,CACJ,CAAA;YACL,CAAC,CAAC,CAAA;QACN,CAAC,CAAC,CAAA;IACN,CAAC,CAAC,CAAA;AACN,CAAC,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"chatController.test.js","sourceRoot":"","sources":["../../../src/language-server/chat/chatController.test.ts"],"names":[],"mappings":";;AAAA,2EAAmH;AACnH,qFAYuD;AACvD,mEAAoE;AACpE,iCAAgC;AAChC,uCAA4B;AAC5B,4CAAqD;AACrD,qDAAiD;AACjD,iFAA6E;AAC7E,6DAAyD;AACzD,iFAA6E;AAC7E,gEAAqE;AACrE,iCAAgC;AAChC,2CAAyE;AACzE,0DAAsD;AAGtD,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC5B,MAAM,SAAS,GAAG,OAAO,CAAA;IACzB,MAAM,kBAAkB,GAA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,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE;4BAC5C,KAAK,EAAE;gCACH;oCACI,KAAK,EAAE;wCACH,KAAK,EAAE,2BAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,8BAA8B;wCAC5D,GAAG,EAAE,2BAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC;qCAC7B;oCACD,uCAAuC;oCACvC,oDAAoD;oCACpD,OAAO,EAAE,KAAK,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,sBAAsB,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,yBAAyB,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG;iCAC3G;6BACJ;yBACJ;qBACJ;iBACJ;aACJ,CAAC,CAAA;QACN,CAAC,CAAC,CAAA;IACN,CAAC,CAAC,CAAA;AACN,CAAC,CAAC,CAAA"}
|
|
@@ -11,10 +11,10 @@ describe('TelemetryController', () => {
|
|
|
11
11
|
const mockConversationId = 'mockConversationId';
|
|
12
12
|
let testFeatures;
|
|
13
13
|
let telemetryController;
|
|
14
|
-
let telemetryService;
|
|
15
14
|
beforeEach(() => {
|
|
15
|
+
const telemetryServiceStub = {};
|
|
16
16
|
testFeatures = new testing_1.TestFeatures();
|
|
17
|
-
telemetryController = new chatTelemetryController_1.ChatTelemetryController(testFeatures,
|
|
17
|
+
telemetryController = new chatTelemetryController_1.ChatTelemetryController(testFeatures, telemetryServiceStub);
|
|
18
18
|
});
|
|
19
19
|
it('able to set and get activeTabId', () => {
|
|
20
20
|
assert.strictEqual(telemetryController.activeTabId, undefined);
|