Merge pull request #23 from Iheuzio/feature/format-code

Feature/format code
This commit is contained in:
Iheuzio 2023-06-25 19:38:15 -04:00 committed by GitHub
commit 2392bc7099
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 11 deletions

View File

@ -4,6 +4,29 @@ Version History
## [Unreleased]
## [Release 0.1.3]
## What's Changed
* fix(explorer-context): Shows the add files context for any file by @Iheuzio in https://github.com/Iheuzio/gpt-contextfiles/pull/19
* fix(assistant): Assistant would not answer reponse by @Iheuzio in https://github.com/Iheuzio/gpt-contextfiles/pull/20
* Release 0.1.3 by @Iheuzio in https://github.com/Iheuzio/gpt-contextfiles/pull/21
**Full Changelog**: https://github.com/Iheuzio/gpt-contextfiles/compare/0.1.2...0.1.3
## [Release 0.1.2]
## What's Changed
* feature(tags): associate project with relative keywords by @Iheuzio in https://github.com/Iheuzio/gpt-contextfiles/pull/11
* feature(categories): Expand into other categories related to this program by @Iheuzio in https://github.com/Iheuzio/gpt-contextfiles/pull/12
* Update issue templates by @Iheuzio in https://github.com/Iheuzio/gpt-contextfiles/pull/13
* Adding Guides by @Iheuzio in https://github.com/Iheuzio/gpt-contextfiles/pull/14
* feature(sidebar): Renders webpanel on the side by @Iheuzio in https://github.com/Iheuzio/gpt-contextfiles/pull/15
* fix(css): sidebar now has css by @Iheuzio in https://github.com/Iheuzio/gpt-contextfiles/pull/16
* Release 0.1.2 by @Iheuzio in https://github.com/Iheuzio/gpt-contextfiles/pull/17
**Full Changelog**: https://github.com/Iheuzio/gpt-contextfiles/compare/0.1.0...0.1.2
## [Release 0.1.1]
Swapped category from `other` to `Machine Learning` to better reflect use-case

View File

@ -226,11 +226,7 @@ function getWebviewContent(apiResponse = '', question = '') {
}
#response {
border: 1px solid #000;
background-color: #e0e0e0;
padding: 10px;
margin-top: 20px;
overflow-wrap: break-word;
white-space: pre-wrap;
}
#file-list {
@ -444,7 +440,9 @@ function getWebviewContent(apiResponse = '', question = '') {
${
apiResponse ? `
<div id="rendered">
<p id="responses">${apiResponse}</p>
<p id="responses">
<pre id="response">${apiResponse.replace(/```([^```]+)```/g, '<code>$1</code>')}</pre>
</p>
</div>
` : null
}
@ -481,7 +479,7 @@ function getWebviewContent(apiResponse = '', question = '') {
function toggleApiResponse() {
const apiResponse = document.getElementById('api-response');
var response = document.getElementById('responses');
if(response === null || response === 'null') {
if(response === null) {
return;
}
apiResponse.classList.toggle('active');