mirror of
https://github.com/Iheuzio/gpt-contextfiles.git
synced 2025-07-18 14:00:48 +00:00
Merge pull request #23 from Iheuzio/feature/format-code
Feature/format code
This commit is contained in:
commit
2392bc7099
23
CHANGELOG.md
23
CHANGELOG.md
@ -4,6 +4,29 @@ Version History
|
|||||||
|
|
||||||
## [Unreleased]
|
## [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]
|
## [Release 0.1.1]
|
||||||
|
|
||||||
Swapped category from `other` to `Machine Learning` to better reflect use-case
|
Swapped category from `other` to `Machine Learning` to better reflect use-case
|
||||||
|
12
extension.js
12
extension.js
@ -226,11 +226,7 @@ function getWebviewContent(apiResponse = '', question = '') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#response {
|
#response {
|
||||||
border: 1px solid #000;
|
white-space: pre-wrap;
|
||||||
background-color: #e0e0e0;
|
|
||||||
padding: 10px;
|
|
||||||
margin-top: 20px;
|
|
||||||
overflow-wrap: break-word;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#file-list {
|
#file-list {
|
||||||
@ -444,7 +440,9 @@ function getWebviewContent(apiResponse = '', question = '') {
|
|||||||
${
|
${
|
||||||
apiResponse ? `
|
apiResponse ? `
|
||||||
<div id="rendered">
|
<div id="rendered">
|
||||||
<p id="responses">${apiResponse}</p>
|
<p id="responses">
|
||||||
|
<pre id="response">${apiResponse.replace(/```([^```]+)```/g, '<code>$1</code>')}</pre>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
` : null
|
` : null
|
||||||
}
|
}
|
||||||
@ -481,7 +479,7 @@ function getWebviewContent(apiResponse = '', question = '') {
|
|||||||
function toggleApiResponse() {
|
function toggleApiResponse() {
|
||||||
const apiResponse = document.getElementById('api-response');
|
const apiResponse = document.getElementById('api-response');
|
||||||
var response = document.getElementById('responses');
|
var response = document.getElementById('responses');
|
||||||
if(response === null || response === 'null') {
|
if(response === null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
apiResponse.classList.toggle('active');
|
apiResponse.classList.toggle('active');
|
||||||
|
Loading…
Reference in New Issue
Block a user