Skip to content

Commit 4828845

Browse files
authored
Merge branch 'main' into fish-shell-integration
2 parents 327773c + 1141808 commit 4828845

File tree

122 files changed

+2677
-884
lines changed

Some content is hidden

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

122 files changed

+2677
-884
lines changed

.github/commands.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,35 @@
1515
"type": "label",
1616
"name": "*question",
1717
"action": "close",
18+
"reason": "not_planned",
1819
"comment": "We closed this issue because it is a question about using VS Code rather than an issue or feature request. Please search for help on [StackOverflow](https://aka.ms/vscodestackoverflow), where the community has already answered thousands of similar questions. You may find their [guide on asking a new question](https://aka.ms/vscodestackoverflowquestion) helpful if your question has not already been asked. See also our [issue reporting guidelines](https://aka.ms/vscodeissuereporting).\n\nHappy Coding!"
1920
},
2021
{
2122
"type": "label",
2223
"name": "*dev-question",
2324
"action": "close",
25+
"reason": "not_planned",
2426
"comment": "We have a great developer community [over on slack](https://aka.ms/vscode-dev-community) where extension authors help each other. This is a great place for you to ask questions and find support.\n\nHappy Coding!"
2527
},
2628
{
2729
"type": "label",
2830
"name": "*extension-candidate",
2931
"action": "close",
32+
"reason": "not_planned",
3033
"comment": "We try to keep VS Code lean and we think the functionality you're asking for is great for a VS Code extension. Maybe you can already find one that suits you in the [VS Code Marketplace](https://aka.ms/vscodemarketplace). Just in case, in a few simple steps you can get started [writing your own extension](https://aka.ms/vscodewritingextensions). See also our [issue reporting guidelines](https://aka.ms/vscodeissuereporting).\n\nHappy Coding!"
3134
},
3235
{
3336
"type": "label",
3437
"name": "*not-reproducible",
3538
"action": "close",
39+
"reason": "not_planned",
3640
"comment": "We closed this issue because we are unable to reproduce the problem with the steps you describe. Chances are we've already fixed your problem in a recent version of VS Code. If not, please ask us to reopen the issue and provide us with more detail. Our [issue reporting guidelines](https://aka.ms/vscodeissuereporting) might help you with that.\n\nHappy Coding!"
3741
},
3842
{
3943
"type": "label",
4044
"name": "*out-of-scope",
4145
"action": "close",
46+
"reason": "not_planned",
4247
"comment": "We closed this issue because we [don't plan to address it](https://aka.ms/vscode-out-of-scope) in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.\n\nIf you wonder what we are up to, please see our [roadmap](https://aka.ms/vscoderoadmap) and [issue reporting guidelines](https://aka.ms/vscodeissuereporting).\n\nThanks for your understanding, and happy coding!"
4348
},
4449
{
@@ -57,12 +62,14 @@
5762
"type": "label",
5863
"name": "*caused-by-extension",
5964
"action": "close",
65+
"reason": "not_planned",
6066
"comment": "This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the [marketplace](https://aka.ms/vscodemarketplace) for VS Code. See also our [issue reporting guidelines](https://aka.ms/vscodeissuereporting).\n\nHappy Coding!"
6167
},
6268
{
6369
"type": "label",
6470
"name": "*as-designed",
6571
"action": "close",
72+
"reason": "not_planned",
6673
"comment": "The described behavior is how it is expected to work. If you disagree, please explain what is expected and what is not in more detail. See also our [issue reporting guidelines](https://aka.ms/vscodeissuereporting).\n\nHappy Coding!"
6774
},
6875
{
@@ -104,6 +111,7 @@
104111
"type": "label",
105112
"name": "*duplicate",
106113
"action": "close",
114+
"reason": "not_planned",
107115
"comment": "Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for [similar existing issues](${duplicateQuery}). See also our [issue reporting guidelines](https://aka.ms/vscodeissuereporting).\n\nHappy Coding!"
108116
},
109117
{
@@ -185,6 +193,7 @@
185193
"IllusionMH"
186194
],
187195
"action": "close",
196+
"reason": "completed",
188197
"addLabel": "unreleased"
189198
},
190199
{
@@ -222,6 +231,7 @@
222231
"type": "label",
223232
"name": "*off-topic",
224233
"action": "close",
234+
"reason": "not_planned",
225235
"comment": "Thanks for creating this issue. We think this issue is unactionable or unrelated to the goals of this project. Please follow our [issue reporting guidelines](https://aka.ms/vscodeissuereporting).\n\nHappy Coding!"
226236
},
227237
{
@@ -234,6 +244,7 @@
234244
"IllusionMH"
235245
],
236246
"action": "close",
247+
"reason": "not_planned",
237248
"addLabel": "*caused-by-extension",
238249
"comment": "It looks like this is caused by the Python extension. Please file the issue to the [Python extension repository](https://github.com/microsoft/vscode-python). Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our [issue reporting guidelines](https://aka.ms/vscodeissuereporting) for more information.\n\nHappy Coding!"
239250
},
@@ -247,6 +258,7 @@
247258
"IllusionMH"
248259
],
249260
"action": "close",
261+
"reason": "not_planned",
250262
"addLabel": "*caused-by-extension",
251263
"comment": "It looks like this is caused by the Jupyter extension. Please file the issue to the [Jupyter extension repository](https://github.com/microsoft/vscode-jupyter). Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our [issue reporting guidelines](https://aka.ms/vscodeissuereporting) for more information.\n\nHappy Coding!"
252264
},
@@ -260,6 +272,7 @@
260272
"IllusionMH"
261273
],
262274
"action": "close",
275+
"reason": "not_planned",
263276
"addLabel": "*caused-by-extension",
264277
"comment": "It looks like this is caused by the C extension. Please file the issue to the [C extension repository](https://github.com/microsoft/vscode-cpptools). Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our [issue reporting guidelines](https://aka.ms/vscodeissuereporting) for more information.\n\nHappy Coding!"
265278
},
@@ -273,6 +286,7 @@
273286
"IllusionMH"
274287
],
275288
"action": "close",
289+
"reason": "not_planned",
276290
"addLabel": "*caused-by-extension",
277291
"comment": "It looks like this is caused by the C++ extension. Please file the issue to the [C++ extension repository](https://github.com/microsoft/vscode-cpptools). Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our [issue reporting guidelines](https://aka.ms/vscodeissuereporting) for more information.\n\nHappy Coding!"
278292
},
@@ -286,6 +300,7 @@
286300
"IllusionMH"
287301
],
288302
"action": "close",
303+
"reason": "not_planned",
289304
"addLabel": "*caused-by-extension",
290305
"comment": "It looks like this is caused by the C++ extension. Please file the issue to the [C++ extension repository](https://github.com/microsoft/vscode-cpptools). Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our [issue reporting guidelines](https://aka.ms/vscodeissuereporting) for more information.\n\nHappy Coding!"
291306
},
@@ -299,6 +314,7 @@
299314
"IllusionMH"
300315
],
301316
"action": "close",
317+
"reason": "not_planned",
302318
"addLabel": "*caused-by-extension",
303319
"comment": "It looks like this is caused by the TypeScript language service. Please file the issue to the [TypeScript repository](https://github.com/microsoft/TypeScript/). Make sure to check their [contributing guidelines](https://github.com/microsoft/TypeScript/blob/master/CONTRIBUTING.md) and provide relevant information such as the extension version you're using. See also our [issue reporting guidelines](https://aka.ms/vscodeissuereporting) for more information.\n\nHappy Coding!"
304320
},
@@ -312,6 +328,7 @@
312328
"IllusionMH"
313329
],
314330
"action": "close",
331+
"reason": "not_planned",
315332
"addLabel": "*caused-by-extension",
316333
"comment": "It looks like this is caused by the TypeScript/JavaScript language service. Please file the issue to the [TypeScript repository](https://github.com/microsoft/TypeScript/). Make sure to check their [contributing guidelines](https://github.com/microsoft/TypeScript/blob/master/CONTRIBUTING.md) and provide relevant information such as the extension version you're using. See also our [issue reporting guidelines](https://aka.ms/vscodeissuereporting) for more information.\n\nHappy Coding!"
317334
},
@@ -325,6 +342,7 @@
325342
"IllusionMH"
326343
],
327344
"action": "close",
345+
"reason": "not_planned",
328346
"addLabel": "*caused-by-extension",
329347
"comment": "It looks like this is caused by the C# extension. Please file the issue to the [C# extension repository](https://github.com/OmniSharp/omnisharp-vscode.git). Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our [issue reporting guidelines](https://aka.ms/vscodeissuereporting) for more information.\n\nHappy Coding!"
330348
},
@@ -351,6 +369,7 @@
351369
"IllusionMH"
352370
],
353371
"action": "close",
372+
"reason": "not_planned",
354373
"addLabel": "*caused-by-extension",
355374
"comment": "It looks like this is caused by the PowerShell extension. Please file the issue to the [PowerShell extension repository](https://github.com/PowerShell/vscode-powershell). Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our [issue reporting guidelines](https://aka.ms/vscodeissuereporting) for more information.\n\nHappy Coding!"
356375
},
@@ -364,6 +383,7 @@
364383
"IllusionMH"
365384
],
366385
"action": "close",
386+
"reason": "not_planned",
367387
"addLabel": "*caused-by-extension",
368388
"comment": "It looks like this is caused by the LiveShare extension. Please file the issue to the [LiveShare repository](https://github.com/MicrosoftDocs/live-share). Make sure to check their [contributing guidelines](https://github.com/MicrosoftDocs/live-share/blob/master/CONTRIBUTING.md) and provide relevant information such as the extension version you're using. See also our [issue reporting guidelines](https://aka.ms/vscodeissuereporting) for more information.\n\nHappy Coding!"
369389
},
@@ -377,6 +397,7 @@
377397
"IllusionMH"
378398
],
379399
"action": "close",
400+
"reason": "not_planned",
380401
"addLabel": "*caused-by-extension",
381402
"comment": "It looks like this is caused by the Docker extension. Please file the issue to the [Docker extension repository](https://github.com/microsoft/vscode-docker). Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our [issue reporting guidelines](https://aka.ms/vscodeissuereporting) for more information.\n\nHappy Coding!"
382403
},
@@ -390,6 +411,7 @@
390411
"IllusionMH"
391412
],
392413
"action": "close",
414+
"reason": "not_planned",
393415
"addLabel": "*caused-by-extension",
394416
"comment": "It looks like this is caused by the Java extension. Please file the issue to the [Java extension repository](https://github.com/redhat-developer/vscode-java). Make sure to check their [troubleshooting instructions](https://github.com/redhat-developer/vscode-java/wiki/Troubleshooting) and provide relevant information such as the extension version you're using. See also our [issue reporting guidelines](https://aka.ms/vscodeissuereporting) for more information.\n\nHappy Coding!"
395417
},
@@ -403,9 +425,24 @@
403425
"IllusionMH"
404426
],
405427
"action": "close",
428+
"reason": "not_planned",
406429
"addLabel": "*caused-by-extension",
407430
"comment": "It looks like this is caused by the Java Debugger extension. Please file the issue to the [Java Debugger repository](https://github.com/microsoft/vscode-java-debug). Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our [issue reporting guidelines](https://aka.ms/vscodeissuereporting) for more information.\n\nHappy Coding!"
408431
},
432+
{
433+
"type": "comment",
434+
"name": "extCodespaces",
435+
"allowUsers": [
436+
"cleidigh",
437+
"usernamehw",
438+
"gjsjohnmurray",
439+
"IllusionMH"
440+
],
441+
"action": "close",
442+
"reason": "not_planned",
443+
"addLabel": "*caused-by-extension",
444+
"comment": "It looks like this is caused by the Codespaces extension. Please file the issue in the [Codespaces Discussion Forum](http://aka.ms/ghcs-feedback). Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our [issue reporting guidelines](https://aka.ms/vscodeissuereporting) for more information.\n\nHappy Coding!"
445+
},
409446
{
410447
"type": "comment",
411448
"name": "gifPlease",
@@ -439,6 +476,7 @@
439476
"type": "label",
440477
"name": "*workspace-trust-docs",
441478
"action": "close",
479+
"reason": "not_planned",
442480
"comment": "This issue appears to be the result of the new workspace trust feature shipped in June 2021. This security-focused feature has major impact on the functionality of VS Code. Due to the volume of issues, we ask that you take some time to review our [comprehensive documentation](https://aka.ms/vscode-workspace-trust) on the feature. If your issue is still not resolved, please let us know."
443481
},
444482
{

build/lib/eslint/vscode-dts-provider-naming.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = new (_a = class ApiProviderNaming {
1717
const allowed = new Set(config.allowed);
1818
return {
1919
['TSInterfaceDeclaration[id.name=/.+Provider/] TSMethodSignature']: (node) => {
20-
const interfaceName = node.parent?.parent.id.name;
20+
const interfaceName = (node.parent?.parent).id.name;
2121
if (allowed.has(interfaceName)) {
2222
// allowed
2323
return;

build/monaco/monaco.d.ts.recipe

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export interface ICommandHandler {
7272
#include(vs/editor/common/core/editOperation): ISingleEditOperation
7373
#include(vs/editor/common/core/wordHelper): IWordAtPosition
7474
#includeAll(vs/editor/common/model): IScrollEvent
75-
#include(vs/editor/common/diff/diffComputer): IChange, ICharChange, ILineChange
75+
#include(vs/editor/common/diff/smartLinesDiffComputer): IChange, ICharChange, ILineChange
7676
#include(vs/editor/common/core/dimension): IDimension
7777
#includeAll(vs/editor/common/editorCommon): IScrollEvent
7878
#includeAll(vs/editor/common/textModelEvents):

extensions/git/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2716,7 +2716,7 @@
27162716
"@vscode/extension-telemetry": "0.6.2",
27172717
"@vscode/iconv-lite-umd": "0.7.0",
27182718
"byline": "^5.0.0",
2719-
"file-type": "^7.2.0",
2719+
"file-type": "16.5.4",
27202720
"jschardet": "3.0.0",
27212721
"picomatch": "2.3.1",
27222722
"vscode-nls": "^5.1.0",
@@ -2725,7 +2725,6 @@
27252725
},
27262726
"devDependencies": {
27272727
"@types/byline": "4.2.31",
2728-
"@types/file-type": "^5.2.1",
27292728
"@types/mocha": "^9.1.1",
27302729
"@types/node": "16.x",
27312730
"@types/picomatch": "2.3.0",

extensions/git/src/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ export class Repository {
10951095
}
10961096

10971097
if (!isText) {
1098-
const result = filetype(buffer);
1098+
const result = await filetype.fromBuffer(buffer);
10991099

11001100
if (!result) {
11011101
return { mimetype: 'application/octet-stream' };

extensions/git/src/repository.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,6 @@ export class Repository implements Disposable {
914914
const root = Uri.file(repository.root);
915915
this._sourceControl = scm.createSourceControl('git', 'Git', root);
916916

917-
this._sourceControl.acceptInputCommand = { command: 'git.commit', title: localize('commit', "Commit"), arguments: [this._sourceControl] };
918917
this._sourceControl.quickDiffProvider = this;
919918
this._sourceControl.inputBox.validateInput = this.validateInput.bind(this);
920919
this.disposables.push(this._sourceControl);
@@ -951,6 +950,17 @@ export class Repository implements Disposable {
951950
|| e.affectsConfiguration('git.showActionButton', root)
952951
)(this.updateModelState, this, this.disposables);
953952

953+
const updateInputBoxAcceptInputCommand = () => {
954+
const config = workspace.getConfiguration('git', root);
955+
const postCommitCommand = config.get<string>('postCommitCommand');
956+
const postCommitCommandArg = postCommitCommand === 'push' || postCommitCommand === 'sync' ? `git.${postCommitCommand}` : '';
957+
this._sourceControl.acceptInputCommand = { command: 'git.commit', title: localize('commit', "Commit"), arguments: [this._sourceControl, postCommitCommandArg] };
958+
};
959+
960+
const onConfigListenerForPostCommitCommand = filterEvent(workspace.onDidChangeConfiguration, e => e.affectsConfiguration('git.postCommitCommand', root));
961+
onConfigListenerForPostCommitCommand(updateInputBoxAcceptInputCommand, this, this.disposables);
962+
updateInputBoxAcceptInputCommand();
963+
954964
const updateInputBoxVisibility = () => {
955965
const config = workspace.getConfiguration('git', root);
956966
this._sourceControl.inputBox.visible = config.get<boolean>('showCommitInput', true);

0 commit comments

Comments
 (0)