Skip to content

Commit 5cb0d29

Browse files
authored
Merge branch 'microsoft:main' into main
2 parents 5a29f5c + 71b996e commit 5cb0d29

File tree

140 files changed

+1737
-981
lines changed

Some content is hidden

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

140 files changed

+1737
-981
lines changed

.github/classifier.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
"snippets": {"assign": ["jrieken"]},
146146
"splitview": {"assign": ["joaomoreno"]},
147147
"suggest": {"assign": ["jrieken"]},
148-
"tasks": {"assign": ["alexr00"], "accuracy": 0.85},
148+
"tasks": {"assign": ["meganrogge"], "accuracy": 0.85},
149149
"telemetry": {"assign": []},
150150
"themes": {"assign": ["aeschli"]},
151151
"timeline": {"assign": ["lramos15"]},

build/lib/i18n.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -599,17 +599,24 @@ function createXlfFilesForExtensions() {
599599
const basename = path.basename(file.path);
600600
if (basename === 'package.nls.json') {
601601
const json = JSON.parse(buffer.toString('utf8'));
602-
const keys = Object.keys(json);
603-
const messages = keys.map((key) => {
602+
const keys = [];
603+
const messages = [];
604+
Object.keys(json).forEach((key) => {
604605
const value = json[key];
605606
if (Is.string(value)) {
606-
return value;
607+
keys.push(key);
608+
messages.push(value);
607609
}
608610
else if (value) {
609-
return value.message;
611+
keys.push({
612+
key,
613+
comment: value.comment
614+
});
615+
messages.push(value.message);
610616
}
611617
else {
612-
return `Unknown message for key: ${key}`;
618+
keys.push(key);
619+
messages.push(`Unknown message for key: ${key}`);
613620
}
614621
});
615622
getXlf().addFile(`extensions/${extensionName}/package`, keys, messages);

build/lib/i18n.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -714,15 +714,22 @@ export function createXlfFilesForExtensions(): ThroughStream {
714714
const basename = path.basename(file.path);
715715
if (basename === 'package.nls.json') {
716716
const json: PackageJsonFormat = JSON.parse(buffer.toString('utf8'));
717-
const keys = Object.keys(json);
718-
const messages = keys.map((key) => {
717+
const keys: Array<string | LocalizeInfo> = [];
718+
const messages: string[] = [];
719+
Object.keys(json).forEach((key) => {
719720
const value = json[key];
720721
if (Is.string(value)) {
721-
return value;
722+
keys.push(key);
723+
messages.push(value);
722724
} else if (value) {
723-
return value.message;
725+
keys.push({
726+
key,
727+
comment: value.comment
728+
});
729+
messages.push(value.message);
724730
} else {
725-
return `Unknown message for key: ${key}`;
731+
keys.push(key);
732+
messages.push(`Unknown message for key: ${key}`);
726733
}
727734
});
728735
getXlf().addFile(`extensions/${extensionName}/package`, keys, messages);

extensions/emmet/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
},
130130
"emmet.useInlineCompletions": {
131131
"type": "boolean",
132-
"default": true,
132+
"default": false,
133133
"markdownDescription": "%emmetUseInlineCompletions%"
134134
},
135135
"emmet.preferences": {

extensions/git/package.json

Lines changed: 46 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,18 @@
307307
"category": "Git",
308308
"enablement": "!commitInProgress"
309309
},
310+
{
311+
"command": "git.commitMessageAccept",
312+
"title": "%command.commitMessageAccept%",
313+
"icon": "$(check)",
314+
"category": "Git"
315+
},
316+
{
317+
"command": "git.commitMessageDiscard",
318+
"title": "%command.commitMessageDiscard%",
319+
"icon": "$(discard)",
320+
"category": "Git"
321+
},
310322
{
311323
"command": "git.restoreCommitTemplate",
312324
"title": "%command.restoreCommitTemplate%",
@@ -315,7 +327,8 @@
315327
{
316328
"command": "git.undoCommit",
317329
"title": "%command.undoCommit%",
318-
"category": "Git"
330+
"category": "Git",
331+
"enablement": "!commitInProgress"
319332
},
320333
{
321334
"command": "git.checkout",
@@ -586,7 +599,8 @@
586599
{
587600
"command": "git.acceptMerge",
588601
"title": "%command.git.acceptMerge%",
589-
"category": "Git"
602+
"category": "Git",
603+
"enablement": "isMergeEditor"
590604
}
591605
],
592606
"keybindings": [
@@ -795,6 +809,14 @@
795809
"command": "git.restoreCommitTemplate",
796810
"when": "false"
797811
},
812+
{
813+
"command": "git.commitMessageAccept",
814+
"when": "false"
815+
},
816+
{
817+
"command": "git.commitMessageDiscard",
818+
"when": "false"
819+
},
798820
{
799821
"command": "git.revealInExplorer",
800822
"when": "false"
@@ -1480,6 +1502,16 @@
14801502
"group": "navigation",
14811503
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && !isInDiffEditor && !isMergeEditor && resourceScheme == file && scmActiveResourceHasChanges"
14821504
},
1505+
{
1506+
"command": "git.commitMessageAccept",
1507+
"group": "navigation",
1508+
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && editorLangId == git-commit && commitInProgress"
1509+
},
1510+
{
1511+
"command": "git.commitMessageDiscard",
1512+
"group": "navigation",
1513+
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && editorLangId == git-commit && commitInProgress"
1514+
},
14831515
{
14841516
"command": "git.stageSelectedRanges",
14851517
"group": "2_git@1",
@@ -2438,19 +2470,6 @@
24382470
"default": 10000,
24392471
"description": "%config.statusLimit%"
24402472
},
2441-
"git.experimental.installGuide": {
2442-
"type": "string",
2443-
"enum": [
2444-
"default",
2445-
"download"
2446-
],
2447-
"tags": [
2448-
"experimental"
2449-
],
2450-
"scope": "machine",
2451-
"description": "%config.experimental.installGuide%",
2452-
"default": "default"
2453-
},
24542473
"git.repositoryScanIgnoredFolders": {
24552474
"type": "array",
24562475
"items": {
@@ -2629,54 +2648,49 @@
26292648
},
26302649
{
26312650
"view": "scm",
2632-
"contents": "%view.workbench.scm.missing.guide%",
2633-
"when": "config.git.enabled && git.missing && config.git.experimental.installGuide == download"
2634-
},
2635-
{
2636-
"view": "scm",
2637-
"contents": "%view.workbench.scm.missing.guide.mac%",
2638-
"when": "config.git.enabled && git.missing && config.git.experimental.installGuide == download && isMac"
2651+
"contents": "%view.workbench.scm.missing%",
2652+
"when": "config.git.enabled && git.missing"
26392653
},
26402654
{
26412655
"view": "scm",
2642-
"contents": "%view.workbench.scm.missing.guide.windows%",
2643-
"when": "config.git.enabled && git.missing && config.git.experimental.installGuide == download && isWindows"
2656+
"contents": "%view.workbench.scm.missing.mac%",
2657+
"when": "config.git.enabled && git.missing && isMac"
26442658
},
26452659
{
26462660
"view": "scm",
2647-
"contents": "%view.workbench.scm.missing.guide.linux%",
2648-
"when": "config.git.enabled && git.missing && config.git.experimental.installGuide == download && isLinux"
2661+
"contents": "%view.workbench.scm.missing.windows%",
2662+
"when": "config.git.enabled && git.missing && isWindows"
26492663
},
26502664
{
26512665
"view": "scm",
2652-
"contents": "%view.workbench.scm.missing%",
2653-
"when": "config.git.enabled && git.missing && config.git.experimental.installGuide == default"
2666+
"contents": "%view.workbench.scm.missing.linux%",
2667+
"when": "config.git.enabled && git.missing && isLinux"
26542668
},
26552669
{
26562670
"view": "scm",
26572671
"contents": "%view.workbench.scm.empty%",
2658-
"when": "config.git.enabled && workbenchState == empty",
2672+
"when": "config.git.enabled && !git.missing && workbenchState == empty",
26592673
"enablement": "git.state == initialized",
26602674
"group": "2_open@1"
26612675
},
26622676
{
26632677
"view": "scm",
26642678
"contents": "%view.workbench.scm.folder%",
2665-
"when": "config.git.enabled && workbenchState == folder",
2679+
"when": "config.git.enabled && !git.missing && workbenchState == folder",
26662680
"enablement": "git.state == initialized",
26672681
"group": "5_scm@1"
26682682
},
26692683
{
26702684
"view": "scm",
26712685
"contents": "%view.workbench.scm.workspace%",
2672-
"when": "config.git.enabled && workbenchState == workspace && workspaceFolderCount != 0",
2686+
"when": "config.git.enabled && !git.missing && workbenchState == workspace && workspaceFolderCount != 0",
26732687
"enablement": "git.state == initialized",
26742688
"group": "5_scm@1"
26752689
},
26762690
{
26772691
"view": "scm",
26782692
"contents": "%view.workbench.scm.emptyWorkspace%",
2679-
"when": "config.git.enabled && workbenchState == workspace && workspaceFolderCount == 0",
2693+
"when": "config.git.enabled && !git.missing && workbenchState == workspace && workspaceFolderCount == 0",
26802694
"enablement": "git.state == initialized",
26812695
"group": "2_open@1"
26822696
},

extensions/git/package.nls.json

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
"command.commitAllNoVerify": "Commit All (No Verify)",
4747
"command.commitAllSignedNoVerify": "Commit All (Signed Off, No Verify)",
4848
"command.commitAllAmendNoVerify": "Commit All (Amend, No Verify)",
49+
"command.commitMessageAccept": "Accept Commit Message",
50+
"command.commitMessageDiscard": "Discard Commit Message",
4951
"command.restoreCommitTemplate": "Restore Commit Template",
5052
"command.undoCommit": "Undo Last Commit",
5153
"command.checkout": "Checkout to...",
@@ -140,7 +142,7 @@
140142
"config.ignoreLimitWarning": "Ignores the warning when there are too many changes in a repository.",
141143
"config.ignoreRebaseWarning": "Ignores the warning when it looks like the branch might have been rebased when pulling.",
142144
"config.defaultCloneDirectory": "The default location to clone a git repository.",
143-
"config.useEditorAsCommitInput": "Use an editor to author the commit message.",
145+
"config.useEditorAsCommitInput": "Controls whether a full text editor will be used to author commit messages, whenever no message is provided in the commit input box.",
144146
"config.verboseCommit": "Enable verbose output when `#git.useEditorAsCommitInput#` is enabled.",
145147
"config.enableSmartCommit": "Commit all changes when there are no staged changes.",
146148
"config.smartCommitChanges": "Control which changes are automatically staged by Smart Commit.",
@@ -264,39 +266,31 @@
264266
"colors.ignored": "Color for ignored resources.",
265267
"colors.conflict": "Color for resources with conflicts.",
266268
"colors.submodule": "Color for submodule resources.",
267-
"view.workbench.scm.missing": {
268-
"message": "A valid git installation was not detected, more details can be found in the [git output](command:git.showOutput).\nPlease [install git](https://git-scm.com/), or learn more about how to use git and source control in VS Code in [our docs](https://aka.ms/vscode-scm).\nIf you're using a different version control system, you can [search the Marketplace](command:workbench.extensions.search?%22%40category%3A%5C%22scm%20providers%5C%22%22) for additional extensions.",
269-
"comment": [
270-
"{Locked='](command:git.showOutput'}",
271-
"Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
272-
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
273-
]
274-
},
275-
"view.workbench.scm.missing.guide.windows": {
269+
"view.workbench.scm.missing.windows": {
276270
"message": "[Download Git for Windows](https://git-scm.com/download/win)\nAfter installing, please [reload](command:workbench.action.reloadWindow) (or [troubleshoot](command:git.showOutput)). Additional source control providers can be installed [from the Marketplace](command:workbench.extensions.search?%22%40category%3A%5C%22scm%20providers%5C%22%22).",
277271
"comment": [
278272
"{Locked='](command:workbench.action.reloadWindow'}",
279273
"Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
280274
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
281275
]
282276
},
283-
"view.workbench.scm.missing.guide.mac": {
277+
"view.workbench.scm.missing.mac": {
284278
"message": "[Download Git for macOS](https://git-scm.com/download/mac)\nAfter installing, please [reload](command:workbench.action.reloadWindow) (or [troubleshoot](command:git.showOutput)). Additional source control providers can be installed [from the Marketplace](command:workbench.extensions.search?%22%40category%3A%5C%22scm%20providers%5C%22%22).",
285279
"comment": [
286280
"{Locked='](command:workbench.action.reloadWindow'}",
287281
"Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
288282
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
289283
]
290284
},
291-
"view.workbench.scm.missing.guide.linux": {
285+
"view.workbench.scm.missing.linux": {
292286
"message": "Source control depends on Git being installed.\n[Download Git for Linux](https://git-scm.com/download/linux)\nAfter installing, please [reload](command:workbench.action.reloadWindow) (or [troubleshoot](command:git.showOutput)). Additional source control providers can be installed [from the Marketplace](command:workbench.extensions.search?%22%40category%3A%5C%22scm%20providers%5C%22%22).",
293287
"comment": [
294288
"{Locked='](command:workbench.action.reloadWindow'}",
295289
"Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
296290
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
297291
]
298292
},
299-
"view.workbench.scm.missing.guide": "Install Git, a popular source control system, to track code changes and collaborate with others. Learn more in our [Git guides](https://aka.ms/vscode-scm).",
293+
"view.workbench.scm.missing": "Install Git, a popular source control system, to track code changes and collaborate with others. Learn more in our [Git guides](https://aka.ms/vscode-scm).",
300294
"view.workbench.scm.disabled": {
301295
"message": "If you would like to use git features, please enable git in your [settings](command:workbench.action.openSettings?%5B%22git.enabled%22%5D).\nTo learn more about how to use git and source control in VS Code [read our docs](https://aka.ms/vscode-scm).",
302296
"comment": [

0 commit comments

Comments
 (0)