Revert "feat(@angular/cli): Add VsCode recommendation for Angular Console"

This reverts commit 3d6ae631788b600a1b80132ae407f15ad3dc65aa.
This commit is contained in:
Alex Eagle 2019-02-28 10:24:46 -08:00
parent 242ebd932f
commit 71428bd9cb
3 changed files with 9 additions and 20 deletions

View File

@ -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);

View File

@ -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'],
}); });
}); });
}); });

View File

@ -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"
] ]
} }