Skip to content

Commit e7f5bda

Browse files
authored
Merge pull request #8113 from microsoft/release-198
Release 1.98
2 parents a38de75 + 4906e13 commit e7f5bda

File tree

369 files changed

+1998
-804
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

369 files changed

+1998
-804
lines changed

.husky/post-checkout

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
2-
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'post-checkout' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks').\n"; exit 2; }
2+
command -v git-lfs >/dev/null 2>&1 || { printf >&2 "\n%s\n\n" "This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'post-checkout' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks')."; exit 2; }
33
git lfs post-checkout "$@"

.husky/post-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
2-
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'post-commit' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks').\n"; exit 2; }
2+
command -v git-lfs >/dev/null 2>&1 || { printf >&2 "\n%s\n\n" "This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'post-commit' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks')."; exit 2; }
33
git lfs post-commit "$@"

.husky/post-merge

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
2-
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'post-merge' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks').\n"; exit 2; }
2+
command -v git-lfs >/dev/null 2>&1 || { printf >&2 "\n%s\n\n" "This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'post-merge' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks')."; exit 2; }
33
git lfs post-merge "$@"

.husky/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
2-
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'pre-push' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks').\n"; exit 2; }
2+
command -v git-lfs >/dev/null 2>&1 || { printf >&2 "\n%s\n\n" "This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting the 'pre-push' file in the hooks directory (set by 'core.hookspath'; usually '.git/hooks')."; exit 2; }
33
git lfs pre-push "$@"

.vscode/extensions/doc-assistant/dist/extension.js

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ exports["default"] = default_1;
118118
const vscode = __importStar(__webpack_require__(1));
119119
const prompt_tsx_1 = __webpack_require__(3);
120120
const generateReleaseNotes_1 = __webpack_require__(25);
121-
const tools_1 = __webpack_require__(53);
121+
const tools_1 = __webpack_require__(54);
122122
class History extends prompt_tsx_1.PromptElement {
123123
render() {
124124
return (vscpp(prompt_tsx_1.PrioritizedList, { priority: this.props.priority, descending: false }, this.props.context.history.map((turn) => {
@@ -5020,8 +5020,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
50205020
exports.GenerateReleaseNotesPrompt = void 0;
50215021
const prompt_tsx_1 = __webpack_require__(3);
50225022
const getReleaseIssues_1 = __webpack_require__(26);
5023-
const tools_1 = __webpack_require__(53);
5024-
const history_1 = __webpack_require__(54);
5023+
const tools_1 = __webpack_require__(54);
5024+
const history_1 = __webpack_require__(55);
50255025
class GenerateReleaseNotesPrompt extends prompt_tsx_1.PromptElement {
50265026
static ID = 'generate-release-notes';
50275027
render(state, sizing, progress, token) {
@@ -5086,12 +5086,16 @@ var __importStar = (this && this.__importStar) || (function () {
50865086
return result;
50875087
};
50885088
})();
5089+
var __importDefault = (this && this.__importDefault) || function (mod) {
5090+
return (mod && mod.__esModule) ? mod : { "default": mod };
5091+
};
50895092
Object.defineProperty(exports, "__esModule", ({ value: true }));
50905093
exports.GetReleaseFeatures = void 0;
50915094
const vscode = __importStar(__webpack_require__(1));
50925095
const prompt_tsx_1 = __webpack_require__(3);
50935096
const utils_1 = __webpack_require__(27);
50945097
const queries_1 = __webpack_require__(28);
5098+
const path_1 = __importDefault(__webpack_require__(53));
50955099
function isSuccess(props) {
50965100
return !!props.result;
50975101
}
@@ -5112,7 +5116,11 @@ class GetReleaseFeatures {
51125116
this.logger = logger;
51135117
}
51145118
async invoke(options, token) {
5115-
const milestoneName = vscode.workspace.getConfiguration().get('doc-assistant.milestone') ?? 'January 2025';
5119+
const wsFolder = vscode.workspace.workspaceFolders?.find(wsf => path_1.default.basename(wsf.uri.fsPath).toLowerCase() === 'vscode-docs');
5120+
const milestoneName = vscode.workspace.getConfiguration(undefined, wsFolder?.uri).get('doc-assistant.milestone');
5121+
if (!milestoneName) {
5122+
return (0, utils_1.createLanguageModelToolResult)(await (0, prompt_tsx_1.renderElementJSON)(GetReleaseFeaturesResult, { error: 'No milestone specified' }, options.tokenizationOptions, token));
5123+
}
51165124
const issues = await (0, queries_1.getReleaseFeatures)(milestoneName);
51175125
this.logger.debug('getReleaseFeatures', issues.map(i => i.url));
51185126
return (0, utils_1.createLanguageModelToolResult)(await (0, prompt_tsx_1.renderElementJSON)(GetReleaseFeaturesResult, { result: { features: issues } }, options.tokenizationOptions, token));
@@ -10338,6 +10346,13 @@ function wrappy (fn, cb) {
1033810346

1033910347
/***/ }),
1034010348
/* 53 */
10349+
/***/ ((module) => {
10350+
10351+
"use strict";
10352+
module.exports = require("path");
10353+
10354+
/***/ }),
10355+
/* 54 */
1034110356
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1034210357

1034310358
"use strict";
@@ -10444,7 +10459,7 @@ exports.ToolResultMetadata = ToolResultMetadata;
1044410459

1044510460

1044610461
/***/ }),
10447-
/* 54 */
10462+
/* 55 */
1044810463
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1044910464

1045010465
"use strict";

.vscode/extensions/doc-assistant/dist/extension.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.vscode/extensions/doc-assistant/package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@
99
},
1010
"main": "./dist/extension.js",
1111
"contributes": {
12+
"configuration": {
13+
"title": "VS Code Doc Assistant",
14+
"properties": {
15+
"doc-assistant.milestone": {
16+
"type": "string",
17+
"default": "",
18+
"description": "The milestone to use when generating release notes (e.g., 'v1.95').",
19+
"scope": "resource"
20+
}
21+
}
22+
},
1223
"chatParticipants": [
1324
{
1425
"id": "vscode-doc",

.vscode/extensions/doc-assistant/src/tools/getReleaseIssues.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import * as vscode from 'vscode';
77
import { BasePromptElementProps, PromptElement, renderElementJSON } from '@vscode/prompt-tsx';
88
import { createLanguageModelToolResult } from './utils';
99
import { getReleaseFeatures, ReleaseFeature } from './queries';
10+
import path from 'path';
1011

1112
interface GetReleaseFeaturesResultSuccessProps extends BasePromptElementProps {
1213
readonly result: {
@@ -45,7 +46,14 @@ export class GetReleaseFeatures implements vscode.LanguageModelTool<void> {
4546
}
4647

4748
async invoke(options: vscode.LanguageModelToolInvocationOptions<void>, token: vscode.CancellationToken) {
48-
const milestoneName = vscode.workspace.getConfiguration().get<string>('doc-assistant.milestone') ?? 'January 2025';
49+
const wsFolder = vscode.workspace.workspaceFolders?.find(wsf => path.basename(wsf.uri.fsPath).toLowerCase() === 'vscode-docs');
50+
const milestoneName = vscode.workspace.getConfiguration(undefined, wsFolder?.uri).get<string>('doc-assistant.milestone');
51+
if (!milestoneName) {
52+
return createLanguageModelToolResult(
53+
await renderElementJSON(GetReleaseFeaturesResult, { error: 'No milestone specified' }, options.tokenizationOptions, token),
54+
);
55+
}
56+
4957
const issues = await getReleaseFeatures(milestoneName);
5058
this.logger.debug('getReleaseFeatures', issues.map(i => i.url));
5159
return createLanguageModelToolResult(

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"markdown.editor.filePaste.videoSnippet": "<video src=\"${src}\" title=\"${title}\" autoplay loop controls muted></video>",
2929

30-
"doc-assistant.milestone": "January 2025",
30+
"doc-assistant.milestone": "February 2025",
3131

3232
"github.copilot.chat.codeGeneration.useInstructionFiles": false,
3333

api/advanced-topics/extension-host.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
# DO NOT TOUCH — Managed by doc writer
33
ContentId: 106AA11C-DB26-493A-9E3C-16F513B2AEC8
4-
DateApproved: 02/06/2025
4+
DateApproved: 03/05/2025
55

66
# Summarize the whole topic in less than 300 characters for SEO purpose
77
MetaDescription: The Visual Studio Code Extension Host is responsible for managing extensions and ensuring the stability and performance of Visual Studio Code.

0 commit comments

Comments
 (0)