Skip to content

Commit

Permalink
Merge branch 'microsoft:main' into fix_minimap_slider
Browse files Browse the repository at this point in the history
  • Loading branch information
Dromantor committed Apr 28, 2023
2 parents 7cc5981 + a68448f commit acd43e0
Show file tree
Hide file tree
Showing 190 changed files with 3,731 additions and 2,488 deletions.
34 changes: 34 additions & 0 deletions .eslintplugin/vscode-dts-string-type-literals.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import * as eslint from 'eslint';
import { TSESTree } from '@typescript-eslint/experimental-utils';

export = new class ApiTypeDiscrimination implements eslint.Rule.RuleModule {

readonly meta: eslint.Rule.RuleMetaData = {
docs: { url: 'https://github.com/microsoft/vscode/wiki/Extension-API-guidelines' },
messages: {
noTypeDiscrimination: 'Do not use type descrimination properties'
}
};

create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
return {
['TSPropertySignature[optional=undefined] TSTypeAnnotation TSLiteralType Literal']: (node: any) => {

const raw = String((<TSESTree.Literal>node).raw)

if (/^('|").*\1$/.test(raw)) {

context.report({
node: node,
messageId: 'noTypeDiscrimination'
});
}
}
}
}
};
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
"rules": {
"local/vscode-dts-create-func": "warn",
"local/vscode-dts-literal-or-types": "warn",
"local/vscode-dts-string-type-literals": "warn",
"local/vscode-dts-interface-naming": "warn",
"local/vscode-dts-cancellation": "warn",
"local/vscode-dts-use-thenable": "warn",
Expand Down
2 changes: 1 addition & 1 deletion .vscode/notebooks/my-endgame.github-issues
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
{
"kind": 2,
"language": "github-issues",
"value": "$REPOS $MILESTONE -$MINE is:issue is:closed reason:completed sort:updated-asc label:bug -label:unreleased -label:verified -label:z-author-verified -label:on-testplan -label:*duplicate -label:duplicate -label:invalid -label:*as-designed -label:error-telemetry -label:verification-steps-needed -label:verification-found -author:aeschli -author:alexdima -author:alexr00 -author:AmandaSilver -author:andreamah -author:bamurtaugh -author:bpasero -author:chrisdias -author:chrmarti -author:Chuxel -author:claudiaregio -author:connor4312 -author:dbaeumer -author:deepak1556 -author:devinvalenciano -author:digitarald -author:DonJayamanne -author:egamma -author:fiveisprime -author:gregvanl -author:hediet -author:isidorn -author:joaomoreno -author:joyceerhl -author:jrieken -author:karrtikr -author:kieferrm -author:lramos15 -author:lszomoru -author:meganrogge -author:misolori -author:mjbvz -author:rebornix -author:roblourens -author:rzhao271 -author:sandy081 -author:sbatten -author:stevencl -author:tanhakabir -author:TylerLeonhardt -author:Tyriar -author:weinand -author:amunger"
"value": "$REPOS $MILESTONE -$MINE is:issue is:closed reason:completed sort:updated-asc label:bug -label:unreleased -label:verified -label:z-author-verified -label:on-testplan -label:*duplicate -label:duplicate -label:invalid -label:*as-designed -label:error-telemetry -label:verification-steps-needed -label:verification-found -author:aeschli -author:alexdima -author:alexr00 -author:AmandaSilver -author:andreamah -author:bamurtaugh -author:bpasero -author:chrisdias -author:chrmarti -author:Chuxel -author:claudiaregio -author:connor4312 -author:dbaeumer -author:deepak1556 -author:devinvalenciano -author:digitarald -author:DonJayamanne -author:egamma -author:fiveisprime -author:gregvanl -author:hediet -author:isidorn -author:joaomoreno -author:joyceerhl -author:jrieken -author:karrtikr -author:kieferrm -author:lramos15 -author:lszomoru -author:meganrogge -author:misolori -author:mjbvz -author:rebornix -author:roblourens -author:rzhao271 -author:sandy081 -author:sbatten -author:stevencl -author:tanhakabir -author:TylerLeonhardt -author:Tyriar -author:weinand -author:amunger -author:karthiknadig -author:eleanorjboyd -author:Yoyokrazy -author:paulacamargo25"
},
{
"kind": 1,
Expand Down
4 changes: 2 additions & 2 deletions ThirdPartyNotices.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,7 @@ SOFTWARE.

---------------------------------------------------------

jeff-hykin/better-shell-syntax 1.5.0 - MIT
jeff-hykin/better-shell-syntax 1.5.4 - MIT
https://github.com/jeff-hykin/better-shell-syntax

MIT License
Expand Down Expand Up @@ -2278,7 +2278,7 @@ SOFTWARE.

---------------------------------------------------------

microsoft/vscode-mssql 1.17.0 - MIT
microsoft/vscode-mssql 1.19.0 - MIT
https://github.com/microsoft/vscode-mssql

------------------------------------------ START OF LICENSE -----------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions build/azure-pipelines/alpine/product-build-alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ steps:
cacheHitVar: NODE_MODULES_RESTORED
displayName: Restore node_modules cache

- script: tar -xvzf .build/node_modules_cache/cache.tgz
- script: tar -xzf .build/node_modules_cache/cache.tgz
condition: and(succeeded(), eq(variables.NODE_MODULES_RESTORED, 'true'))
displayName: Extract node_modules cache

Expand Down Expand Up @@ -93,7 +93,7 @@ steps:
set -e
node build/azure-pipelines/common/listNodeModules.js .build/node_modules_list.txt
mkdir -p .build/node_modules_cache
tar -cvzf .build/node_modules_cache/cache.tgz --files-from .build/node_modules_list.txt
tar -czf .build/node_modules_cache/cache.tgz --files-from .build/node_modules_list.txt
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
displayName: Create node_modules archive
Expand Down
4 changes: 2 additions & 2 deletions build/azure-pipelines/darwin/product-build-darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ steps:
cacheHitVar: NODE_MODULES_RESTORED
displayName: Restore node_modules cache

- script: tar -xvzf .build/node_modules_cache/cache.tgz
- script: tar -xzf .build/node_modules_cache/cache.tgz
condition: and(succeeded(), eq(variables.NODE_MODULES_RESTORED, 'true'))
displayName: Extract node_modules cache

Expand Down Expand Up @@ -100,7 +100,7 @@ steps:
set -e
node build/azure-pipelines/common/listNodeModules.js .build/node_modules_list.txt
mkdir -p .build/node_modules_cache
tar -cvzf .build/node_modules_cache/cache.tgz --files-from .build/node_modules_list.txt
tar -czf .build/node_modules_cache/cache.tgz --files-from .build/node_modules_list.txt
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
displayName: Create node_modules archive
Expand Down
4 changes: 2 additions & 2 deletions build/azure-pipelines/linux/product-build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ steps:
cacheHitVar: NODE_MODULES_RESTORED
displayName: Restore node_modules cache

- script: tar -xvzf .build/node_modules_cache/cache.tgz
- script: tar -xzf .build/node_modules_cache/cache.tgz
condition: and(succeeded(), eq(variables.NODE_MODULES_RESTORED, 'true'))
displayName: Extract node_modules cache

Expand Down Expand Up @@ -178,7 +178,7 @@ steps:
set -e
node build/azure-pipelines/common/listNodeModules.js .build/node_modules_list.txt
mkdir -p .build/node_modules_cache
tar -cvzf .build/node_modules_cache/cache.tgz --files-from .build/node_modules_list.txt
tar -czf .build/node_modules_cache/cache.tgz --files-from .build/node_modules_list.txt
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
displayName: Create node_modules archive
Expand Down
4 changes: 2 additions & 2 deletions build/azure-pipelines/oss/product-build-pr-cache-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ steps:
cacheHitVar: NODE_MODULES_RESTORED
displayName: Restore node_modules cache

- script: tar -xvzf .build/node_modules_cache/cache.tgz
- script: tar -xzf .build/node_modules_cache/cache.tgz
condition: and(succeeded(), eq(variables.NODE_MODULES_RESTORED, 'true'))
displayName: Extract node_modules cache

Expand Down Expand Up @@ -60,6 +60,6 @@ steps:
set -e
node build/azure-pipelines/common/listNodeModules.js .build/node_modules_list.txt
mkdir -p .build/node_modules_cache
tar -cvzf .build/node_modules_cache/cache.tgz --files-from .build/node_modules_list.txt
tar -czf .build/node_modules_cache/cache.tgz --files-from .build/node_modules_list.txt
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
displayName: Create node_modules archive
4 changes: 2 additions & 2 deletions build/azure-pipelines/oss/product-build-pr-cache-win32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ steps:
cacheHitVar: NODE_MODULES_RESTORED
displayName: Restore node_modules cache

- powershell: 7z.exe x .build/node_modules_cache/cache.7z -aoa -bb
- powershell: 7z.exe x .build/node_modules_cache/cache.7z -aoa
condition: and(succeeded(), eq(variables.NODE_MODULES_RESTORED, 'true'))
displayName: Extract node_modules cache

Expand Down Expand Up @@ -61,6 +61,6 @@ steps:
$ErrorActionPreference = "Stop"
exec { node build/azure-pipelines/common/listNodeModules.js .build/node_modules_list.txt }
exec { mkdir -Force .build/node_modules_cache }
exec { 7z.exe a .build/node_modules_cache/cache.7z -mx3 -bb `@.build/node_modules_list.txt }
exec { 7z.exe a .build/node_modules_cache/cache.7z -mx3 `@.build/node_modules_list.txt }
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
displayName: Create node_modules archive
4 changes: 2 additions & 2 deletions build/azure-pipelines/product-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ steps:
cacheHitVar: NODE_MODULES_RESTORED
displayName: Restore node_modules cache

- script: tar -xvzf .build/node_modules_cache/cache.tgz
- script: tar -xzf .build/node_modules_cache/cache.tgz
condition: and(succeeded(), eq(variables.NODE_MODULES_RESTORED, 'true'))
displayName: Extract node_modules cache

Expand Down Expand Up @@ -79,7 +79,7 @@ steps:
set -e
node build/azure-pipelines/common/listNodeModules.js .build/node_modules_list.txt
mkdir -p .build/node_modules_cache
tar -cvzf .build/node_modules_cache/cache.tgz --files-from .build/node_modules_list.txt
tar -czf .build/node_modules_cache/cache.tgz --files-from .build/node_modules_list.txt
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
displayName: Create node_modules archive
Expand Down
4 changes: 2 additions & 2 deletions build/azure-pipelines/web/product-build-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ steps:
cacheHitVar: NODE_MODULES_RESTORED
displayName: Restore node_modules cache

- script: tar -xvzf .build/node_modules_cache/cache.tgz
- script: tar -xzf .build/node_modules_cache/cache.tgz
condition: and(succeeded(), eq(variables.NODE_MODULES_RESTORED, 'true'))
displayName: Extract node_modules cache

Expand Down Expand Up @@ -78,7 +78,7 @@ steps:
set -e
node build/azure-pipelines/common/listNodeModules.js .build/node_modules_list.txt
mkdir -p .build/node_modules_cache
tar -cvzf .build/node_modules_cache/cache.tgz --files-from .build/node_modules_list.txt
tar -czf .build/node_modules_cache/cache.tgz --files-from .build/node_modules_list.txt
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
displayName: Create node_modules archive
Expand Down
4 changes: 2 additions & 2 deletions build/azure-pipelines/win32/product-build-win32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ steps:
cacheHitVar: NODE_MODULES_RESTORED
displayName: Restore node_modules cache

- powershell: 7z.exe x .build/node_modules_cache/cache.7z -aoa -bb
- powershell: 7z.exe x .build/node_modules_cache/cache.7z -aoa
condition: and(succeeded(), eq(variables.NODE_MODULES_RESTORED, 'true'))
displayName: Extract node_modules cache

Expand Down Expand Up @@ -124,7 +124,7 @@ steps:
$ErrorActionPreference = "Stop"
exec { node build/azure-pipelines/common/listNodeModules.js .build/node_modules_list.txt }
exec { mkdir -Force .build/node_modules_cache }
exec { 7z.exe a .build/node_modules_cache/cache.7z -mx3 -bb `@.build/node_modules_list.txt }
exec { 7z.exe a .build/node_modules_cache/cache.7z -mx3 `@.build/node_modules_list.txt }
condition: and(succeeded(), ne(variables.NODE_MODULES_RESTORED, 'true'))
displayName: Create node_modules archive
Expand Down
2 changes: 1 addition & 1 deletion build/lib/i18n.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions build/lib/i18n.resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,10 @@
{
"name": "vs/workbench/services/localization",
"project": "vscode-workbench"
},
{
"name": "vs/workbench/contrib/accessibility",
"project": "vscode-workbench"
}
]
}
4 changes: 2 additions & 2 deletions build/lib/treeshaking.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/lib/tsb/builder.js

Large diffs are not rendered by default.

Loading

0 comments on commit acd43e0

Please sign in to comment.