diff --git a/CHANGELOG.md b/CHANGELOG.md index 02808ec..0ae8fe1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [unreleased] + +### Fixes +- resolve connect Promise in Websocket Requests on close before open Connection (AnWeber/httpbook#96) +- fixed Syntax highlighting issue with Intellij scripts when JSON body is used (#220) +- generate code did not load VSCode Settings configuration (#221) + ## [6.6.4] (2023-09-02) ### Fixes diff --git a/src/provider/generator/httpSnippetGenerator.ts b/src/provider/generator/httpSnippetGenerator.ts index db72659..a0135c5 100644 --- a/src/provider/generator/httpSnippetGenerator.ts +++ b/src/provider/generator/httpSnippetGenerator.ts @@ -1,6 +1,6 @@ import * as vscode from 'vscode'; import * as httpyac from 'httpyac'; -import { getConfigSetting } from '../../config'; +import { getConfigSetting, getEnvironmentConfig } from '../../config'; import { HTTPSnippet, HarRequest, availableTargets } from 'httpsnippet'; import { GenerationTarget } from './generationTarget'; @@ -40,6 +40,7 @@ async function generateHttpSnippetCodeRequest( title: 'create har', }, async (progress, token) => { + context.config = await getEnvironmentConfig(context.httpFile.fileName); context.progress = { divider: 1, isCanceled: () => token.isCancellationRequested,