Skip to content

Commit

Permalink
fix: generate code did not load VSCode Settings configuration (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnWeber committed Sep 15, 2023
1 parent f69422c commit 41e775c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/provider/generator/httpSnippetGenerator.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 41e775c

Please sign in to comment.