Skip to content

Commit a180898

Browse files
committed
Polish
1 parent 165e65b commit a180898

3 files changed

Lines changed: 6 additions & 31 deletions

File tree

src/@types/vscode.proposed.chatSessionsProvider.d.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -241,14 +241,6 @@ declare module 'vscode' {
241241
*/
242242
readonly onDidChangeChatSessionOptions?: Event<ChatSessionOptionChangeEvent>;
243243

244-
/**
245-
* Event that the provider can fire to signal that the available provider options have changed.
246-
*
247-
* When fired, the editor will re-query {@link ChatSessionContentProvider.provideChatSessionProviderOptions}
248-
* and update the UI to reflect the new option groups.
249-
*/
250-
readonly onDidChangeChatSessionProviderOptions?: Event<void>;
251-
252244
/**
253245
* Provides the chat session content for a given uri.
254246
*

src/github/createPRViewProvider.ts

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -893,27 +893,11 @@ export class CreatePullRequestViewProvider extends BaseCreatePullRequestViewProv
893893
const templatePath = vscode.Uri.joinPath(workspaceFolder, selected.label);
894894

895895
// Default template content
896-
const templateContent = `## Description
897-
<!-- Please include a summary of the changes and the related issue. -->
898-
899-
## Type of change
900-
<!-- Please delete options that are not relevant. -->
901-
- [ ] Bug fix (non-breaking change which fixes an issue)
902-
- [ ] New feature (non-breaking change which adds functionality)
903-
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
904-
- [ ] Documentation update
905-
906-
## How Has This Been Tested?
907-
<!-- Please describe the tests that you ran to verify your changes. -->
908-
909-
## Checklist:
910-
- [ ] My code follows the style guidelines of this project
911-
- [ ] I have performed a self-review of my code
912-
- [ ] I have commented my code, particularly in hard-to-understand areas
913-
- [ ] I have made corresponding changes to the documentation
914-
- [ ] My changes generate no new warnings
915-
- [ ] I have added tests that prove my fix is effective or that my feature works
916-
- [ ] New and existing unit tests pass locally with my changes
896+
const templateContent = `## Sample Pull Request Template Description
897+
898+
This is a sample pull request template. You can customize it to fit your project's needs.
899+
900+
Don't forget to commit your template file to the repository so that it can be used for future pull requests!
917901
`;
918902

919903
try {

webviews/createPullRequestViewNew/app.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,7 @@ export function main() {
341341
<label htmlFor='description' className='input-title'>Description</label>
342342
<div className='description-actions'>
343343
{ctx.createParams.usingTemplate ?
344-
<a title='Change template' className={`title-action icon-button${isBusy || !ctx.initialized ? ' disabled' : ''}`} onClick={() => changeTemplate()} tabIndex={0}>{notebookTemplate}</a> :
345-
<a title='Manage templates' className={`title-action icon-button${isBusy || !ctx.initialized ? ' disabled' : ''}`} onClick={() => changeTemplate()} tabIndex={0}>{notebookTemplate}</a>}
344+
<a title='Change template' className={`title-action icon-button${isBusy || !ctx.initialized ? ' disabled' : ''}`} onClick={() => changeTemplate()} tabIndex={0}>{notebookTemplate}</a> : null}
346345
<a role='button' title='Open pull request description settings' aria-label='Open pull request description settings' className='icon-button' onClick={openDescriptionSettings} tabIndex={0}>{settingsIcon}</a>
347346
</div>
348347
</div>

0 commit comments

Comments
 (0)