Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
9f2e50b
Update edge strings for FI (#12487)
Colengms Jul 18, 2024
01829f8
Update 1.21.2 changelog in main. (#12485)
sean-mcmanus Jul 18, 2024
626bb6e
Change cpp editor.stickyScroll.defaultModel. (#12486)
sean-mcmanus Jul 19, 2024
7078f4b
Enable codeQL for TypeScript (#12490)
bobbrow Jul 19, 2024
15c6bdd
Update changelog and version for 1.21.3. (#12499)
sean-mcmanus Jul 24, 2024
4e09135
Go back to supporting VS Code 1.67.0 instead of 1.82.0. (#12515)
sean-mcmanus Jul 25, 2024
570862b
Update TPN for 1.21.4 (#12518)
sean-mcmanus Jul 25, 2024
b768a54
Update for 1.21.5. (#12530)
sean-mcmanus Jul 31, 2024
99af8d8
Update changelog and version for 1.21.6 (#12539)
sean-mcmanus Aug 5, 2024
3cf9a99
Add Validation for VS Code Settings (#12454)
browntarik Aug 9, 2024
da2fcbc
Fix vsce with cg.yml (#12561)
sean-mcmanus Aug 12, 2024
5cec9b9
Fix 5 high severity vulnerabilities in .github/actions. (#12562)
sean-mcmanus Aug 13, 2024
571f2d5
Update axios to 1.7.4. (#12564)
sean-mcmanus Aug 13, 2024
631c522
Remove debug and ms from TPN (not actually distributed). (#12566)
sean-mcmanus Aug 15, 2024
d4c46c7
Update OneLocBuild pipeline (#12573)
Colengms Aug 15, 2024
d2bd3e0
Refactor compilerPath logic to reflect settings validation changes (#…
browntarik Aug 15, 2024
0ffdc00
Fix "Replacement of a substring with itself" warning. (#12546)
sean-mcmanus Aug 16, 2024
4a7fe28
Update msvc versions for 17.11 (#12583)
sean-mcmanus Aug 18, 2024
06ed838
Release pipelines for themes and extension pack (#12589)
bobbrow Aug 19, 2024
6324549
Add `AddComment` GitHub action, and workflows for tagging new debugge…
Colengms Aug 20, 2024
cb50bb1
Fix addComment action (#12599)
Colengms Aug 20, 2024
818f7c6
Update scripts use of spawnSync to work with newer versions of nodejs…
fearthecowboy Aug 20, 2024
a0f863c
Fix LSP cancellation (#12592)
Colengms Aug 20, 2024
7dcd5a4
Remove use of `editorconfig` module to avoid dependency on `one-ini` …
Colengms Aug 20, 2024
66b934c
Update TPN for 1.22.0. (#12601)
sean-mcmanus Aug 21, 2024
d7bfae6
Update changelog/version for 1.22.0 (#12602)
sean-mcmanus Aug 21, 2024
fbfddd2
Prevent AddComment action from adding redundant comments (#12611)
Colengms Aug 21, 2024
326f7d9
Spread out schedules of github actions to avoid 'rate limit' errors (…
Colengms Aug 23, 2024
d8a6a98
Switch from LSP hover to HoverProvider (#12612)
Colengms Aug 23, 2024
d3cd4fc
Fix vcFormat not working and other case comparison bugs. (#12620)
sean-mcmanus Aug 23, 2024
e5ce40b
Log the modified extension settings as part of Log Diagnostics (#12621)
bobbrow Aug 26, 2024
c81120e
Bump micromatch from 4.0.7 to 4.0.8 in /Extension (#12630)
dependabot[bot] Aug 26, 2024
49d987d
Fix show a list local processes, if remote connection failed (useExte…
MrStanislav0 Aug 26, 2024
3dc7067
Update changelog (2nd time) (#12631)
sean-mcmanus Aug 26, 2024
994e7b9
Log the values of editor settings that we track (#12635)
bobbrow Aug 28, 2024
1f426ed
Address a component governance report on webpack (#12649)
bobbrow Aug 28, 2024
f222a97
Update changelog for 1.22.1 (#12646)
sean-mcmanus Aug 29, 2024
fcdccd4
Remove usage of intellisenseEngineFallback setting. (#12600)
browntarik Aug 29, 2024
b7f76c5
Remove intellisenseEngineFallback description (#12655)
browntarik Aug 30, 2024
86b698b
Update changelog and version for 1.22.2. (#12657)
sean-mcmanus Aug 30, 2024
93a20bc
Update link to glob info (#12671)
bobbrow Aug 31, 2024
f077665
delete configuration properties when empty (#12670)
bobbrow Sep 4, 2024
7006e18
The compiler path selection control is not in sync with the textbox (…
bobbrow Sep 4, 2024
8111083
remove old loc files for TS files that don't exist anymore (#12686)
bobbrow Sep 5, 2024
8718b96
Fix extract to function formatting. (#12679)
sean-mcmanus Sep 6, 2024
731cccd
Add C++ configuration as a language model tool (luca) (#12685)
lukka Sep 6, 2024
44671aa
Update checkDTS() to be aware of lmTools (#12696)
benmcmorran Sep 9, 2024
fc5a084
Update changelog and version for 1.22.3 (#12703)
Colengms Sep 12, 2024
50e0f86
Show the reload window message when caseSensitiveFileSupport is chang…
sean-mcmanus Sep 13, 2024
ccc07f5
Enable log diagnostics without a C/C++ file active. (#12701)
sean-mcmanus Sep 13, 2024
cd4ef23
Update changelog. (#12710)
sean-mcmanus Sep 13, 2024
970f95b
Update IntelliSense loc strings. (#12726)
sean-mcmanus Sep 18, 2024
458ef30
Rework custom config requests (#12727)
Colengms Sep 18, 2024
e4ae0b7
Update version and changelog for 1.22.4 (#12733)
Colengms Sep 18, 2024
ca12b97
Migrate to Copilot related files API (#12735)
benmcmorran Sep 19, 2024
0efda4b
Update changelog for 1.22.4 (again) (#12737)
Colengms Sep 19, 2024
1f263c5
Work around issue with clang 18 and size_t (#12739)
Colengms Sep 19, 2024
478765f
Update changelog for 1.22.4 (again) (#12741)
Colengms Sep 19, 2024
8d7668e
Check related files API flag when IntelliSense is disabled (#12743)
benmcmorran Sep 20, 2024
1f83dd7
Add signing for .js files (#12749)
sean-mcmanus Sep 21, 2024
b92dbb4
Update lmTools API (#12755)
benmcmorran Sep 23, 2024
cc653f8
Fix .js signing (#12757)
sean-mcmanus Sep 24, 2024
4079b1e
Fix Cg build. (#12759)
sean-mcmanus Sep 24, 2024
1e89750
1.22.5 changelog (#12762)
sean-mcmanus Sep 24, 2024
5c588fb
Remove parametersSchema for #cpp (#12768)
benmcmorran Sep 25, 2024
2431425
Update changelog for 1.22.6 (#12769)
Colengms Sep 25, 2024
c65b11b
Fix an issue preventing use of a full command line in compilerPath (#…
Colengms Sep 26, 2024
b70f156
Adding vsix signing. (#12758)
sean-mcmanus Sep 27, 2024
1ec1c9b
Use the Microsoft CFS registry instead of npm's registry directly (#1…
bobbrow Sep 30, 2024
a5a7481
Add cancellation token to react to Copilot API changes (#12773)
benmcmorran Sep 30, 2024
4c0a9ea
Update TPN. (#12789)
sean-mcmanus Sep 30, 2024
911c04b
Update changelog for 1.22.7. (#12790)
sean-mcmanus Sep 30, 2024
0364ab0
Fix issue with Rename UI lingering after cancellation (#12796)
Colengms Oct 2, 2024
4b2dac3
React to breaking changes in Copilot API (#12797)
benmcmorran Oct 3, 2024
23c9fb5
Fix break in lmTools API (#12801)
benmcmorran Oct 3, 2024
34f0dd6
filter out C++ headers outside the current opened folder. (#12803)
lukka Oct 4, 2024
3324ea8
Update changelog for 1.22.8. (#12802)
sean-mcmanus Oct 4, 2024
bdd3541
Merge branch 'main' into seanmcm/1_22_8_release
sean-mcmanus Oct 4, 2024
c2baddd
clang-format/tidy version comparisons fail for some builds (#12813)
bobbrow Oct 7, 2024
292d84f
Update changelog for 1.22.8 (insiders) (#12816)
Colengms Oct 8, 2024
c1de737
Update changelog for 1.22.9. (#12823)
sean-mcmanus Oct 9, 2024
8a2324d
Merge branch 'main' into seanmcm/1_22_9_release
sean-mcmanus Oct 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/actions/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
registry=https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/
always-auth=true
86 changes: 86 additions & 0 deletions .github/actions/AddComment/AddComment.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

98 changes: 98 additions & 0 deletions .github/actions/AddComment/AddComment.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import { GitHub } from '../api/api';
import { ActionBase } from '../common/ActionBase';
import { daysAgoToHumanReadbleDate, daysAgoToTimestamp, safeLog } from '../common/utils';

export class AddComment extends ActionBase {
constructor(
private github: GitHub,
private createdAfter: string | undefined,
private afterDays: number,
labels: string,
private addComment: string,
private addLabels?: string,
private removeLabels?: string,
private setMilestoneId?: string,
milestoneName?: string,
milestoneId?: string,
ignoreLabels?: string,
ignoreMilestoneNames?: string,
ignoreMilestoneIds?: string,
minimumVotes?: number,
maximumVotes?: number,
involves?: string
) {
super(labels, milestoneName, milestoneId, ignoreLabels, ignoreMilestoneNames, ignoreMilestoneIds, minimumVotes, maximumVotes, involves);
}

async run() {
const updatedTimestamp = this.afterDays ? daysAgoToHumanReadbleDate(this.afterDays) : undefined;
const query = this.buildQuery(
(updatedTimestamp ? `updated:<${updatedTimestamp} ` : "") +
(this.createdAfter ? `created:>${this.createdAfter} ` : "") +
"is:open is:unlocked");

const addLabelsSet = this.addLabels ? this.addLabels.split(',') : [];
const removeLabelsSet = this.removeLabels ? this.removeLabels.split(',') : [];

for await (const page of this.github.query({ q: query })) {
for (const issue of page) {
const hydrated = await issue.getIssue();
if (hydrated.open && this.validateIssue(hydrated)
// TODO: Verify updated timestamp
) {
// Don't add a comment if already commented on by an action.
let foundActionComment = false;
for await (const commentBatch of issue.getComments()) {
for (const comment of commentBatch) {
if (comment.author.isGitHubApp) {
foundActionComment = true;
break;
}
}
if (foundActionComment)
break;
}
if (foundActionComment) {
safeLog(`Issue ${hydrated.number} already commented on by an action. Ignoring.`);
continue;
}

if (this.addComment) {
safeLog(`Posting comment on issue ${hydrated.number}`);
await issue.postComment(this.addComment);
}
if (removeLabelsSet.length > 0) {
for (const removeLabel of removeLabelsSet) {
if (removeLabel && removeLabel.length > 0) {
safeLog(`Removing label on issue ${hydrated.number}: ${removeLabel}`);
await issue.removeLabel(removeLabel);
}
}
}
if (addLabelsSet.length > 0) {
for (const addLabel of addLabelsSet) {
if (addLabel && addLabel.length > 0) {
safeLog(`Adding label on issue ${hydrated.number}: ${addLabel}`);
await issue.addLabel(addLabel);
}
}
}
if (this.setMilestoneId != undefined) {
safeLog(`Setting milestone of issue ${hydrated.number} to id ${+this.setMilestoneId}`);
await issue.setMilestone(+this.setMilestoneId);
}
safeLog(`Processing issue ${hydrated.number}.`);
} else {
if (!hydrated.open) {
safeLog(`Issue ${hydrated.number} is not open. Ignoring`);
}
}
}
}
}
}
42 changes: 42 additions & 0 deletions .github/actions/AddComment/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Add Comment and Label
description: Add comment (etc) to issues that are marked with a specified label (etc)
inputs:
token:
description: GitHub token with issue, comment, and label read/write permissions
default: ${{ github.token }}
createdAfter:
description: Creation date after which to be considered.
required: false
afterDays:
description: Days to wait before performing this action (may be 0).
required: false
addComment:
description: Comment to add
labels:
description: items with these labels will be considered. May be "*".
required: true
milestoneName:
description: items with these milestones will be considered (name only, must match ID)
milestoneId:
description: items with these milestones will be considered (id only, must match name)
ignoreLabels:
description: items with these labels will not be considered
ignoreMilestoneNames:
description: items with these milestones will not be considered (names only, must match IDs). May be "*".
ignoreMilestoneIds:
description: items with these milestones will not be considered (IDs only, must match names)
addLabels:
description: Labels to add to issue.
removeLabels:
description: Labels to remove from issue.
minimumVotes:
descriptions: Only issues with at least this many votes will be considered.
maximumVotes:
descriptions: Only issues fewer or equal to this many votes will be considered.
involves:
descriptions: Qualifier to find issues that in some way involve a certain user either as an author, assignee, or mentions.
readonly:
description: If true, changes are not applied.
runs:
using: 'node12'
main: 'index.js'
20 changes: 20 additions & 0 deletions .github/actions/AddComment/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions .github/actions/AddComment/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import { OctoKit } from '../api/octokit'
import { getInput, getRequiredInput } from '../common/utils'
import { AddComment } from './AddComment'
import { Action } from '../common/Action'

class AddCommentAction extends Action {
id = 'AddComment';

async onTriggered(github: OctoKit) {
await new AddComment(
github,
getInput('createdAfter') || undefined,
+(getInput('afterDays') || 0),
getRequiredInput('labels'),
getInput('addComment') || '',
getInput('addLabels') || undefined,
getInput('removeLabels') || undefined,
getInput('setMilestoneId') || undefined,
getInput('milestoneName') || undefined,
getInput('milestoneId') || undefined,
getInput('ignoreLabels') || undefined,
getInput('ignoreMilestoneNames') || undefined,
getInput('ignoreMilestoneIds') || undefined,
+(getInput('minimumVotes') || 0),
+(getInput('maximumVotes') || 9999999),
getInput('involves') || undefined
).run();
}
}

new AddCommentAction().run(); // eslint-disable-line
2 changes: 1 addition & 1 deletion .github/actions/Locker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ inputs:
milestoneId:
description: items with these milestones will be considered (id only, must match name)
labels:
description: items with these labels will not be considered. May be "*".
description: items with these labels will be considered. May be "*".
ignoreMilestoneNames:
description: items with these milestones will not be considered (names only, must match IDs). May be "*".
ignoreMilestoneIds:
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/Reopener/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ inputs:
milestoneId:
description: items with these milestones will be considered (id only, must match name)
labels:
description: items with these labels will not be considered. May be "*".
description: items with these labels will be considered. May be "*".
ignoreMilestoneNames:
description: items with these milestones will not be considered (names only, must match IDs). May be "*".
ignoreMilestoneIds:
Expand Down
Loading