mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 19:13:34 +08:00
Revert "feat(@angular/cli): Add VsCode recommendation for Angular Console"
This reverts commit 3d6ae631788b600a1b80132ae407f15ad3dc65aa.
This commit is contained in:
parent
242ebd932f
commit
71428bd9cb
@ -15,10 +15,7 @@ export default function (): Rule {
|
|||||||
const addExtensionRecommendations = updateJsonInTree(
|
const addExtensionRecommendations = updateJsonInTree(
|
||||||
'.vscode/extensions.json',
|
'.vscode/extensions.json',
|
||||||
(json: { recommendations?: string[] }) => {
|
(json: { recommendations?: string[] }) => {
|
||||||
[
|
['angular.ng-template', 'ms-vscode.vscode-typescript-tslint-plugin'].forEach(extension => {
|
||||||
'angular.ng-template',
|
|
||||||
'nrwl.angular-console',
|
|
||||||
'ms-vscode.vscode-typescript-tslint-plugin'].forEach(extension => {
|
|
||||||
json.recommendations = json.recommendations || [];
|
json.recommendations = json.recommendations || [];
|
||||||
if (!json.recommendations.includes(extension)) {
|
if (!json.recommendations.includes(extension)) {
|
||||||
json.recommendations.push(extension);
|
json.recommendations.push(extension);
|
||||||
|
@ -35,8 +35,7 @@ describe('Update 8.0.0', () => {
|
|||||||
.toPromise();
|
.toPromise();
|
||||||
|
|
||||||
expect(readJsonInTree(result, '.vscode/extensions.json')).toEqual({
|
expect(readJsonInTree(result, '.vscode/extensions.json')).toEqual({
|
||||||
recommendations: [
|
recommendations: ['angular.ng-template', 'ms-vscode.vscode-typescript-tslint-plugin'],
|
||||||
'angular.ng-template', 'nrwl.angular-console', 'ms-vscode.vscode-typescript-tslint-plugin'],
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -45,10 +44,7 @@ describe('Update 8.0.0', () => {
|
|||||||
.callRule(
|
.callRule(
|
||||||
updateJsonInTree('.vscode/extensions.json', () => ({
|
updateJsonInTree('.vscode/extensions.json', () => ({
|
||||||
recommendations: [
|
recommendations: [
|
||||||
'eamodio.gitlens',
|
'eamodio.gitlens', 'angular.ng-template', 'ms-vscode.vscode-typescript-tslint-plugin'],
|
||||||
'angular.ng-template',
|
|
||||||
'nrwl.angular-console',
|
|
||||||
'ms-vscode.vscode-typescript-tslint-plugin'],
|
|
||||||
})),
|
})),
|
||||||
initialTree,
|
initialTree,
|
||||||
)
|
)
|
||||||
@ -60,10 +56,7 @@ describe('Update 8.0.0', () => {
|
|||||||
|
|
||||||
expect(readJsonInTree(result, '.vscode/extensions.json')).toEqual({
|
expect(readJsonInTree(result, '.vscode/extensions.json')).toEqual({
|
||||||
recommendations: [
|
recommendations: [
|
||||||
'eamodio.gitlens',
|
'eamodio.gitlens', 'angular.ng-template', 'ms-vscode.vscode-typescript-tslint-plugin'],
|
||||||
'angular.ng-template',
|
|
||||||
'nrwl.angular-console',
|
|
||||||
'ms-vscode.vscode-typescript-tslint-plugin'],
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"angular.ng-template",
|
"angular.ng-template",
|
||||||
"nrwl.angular-console",
|
|
||||||
"ms-vscode.vscode-typescript-tslint-plugin"
|
"ms-vscode.vscode-typescript-tslint-plugin"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user