Skip to content

Commit

Permalink
tc07 stability (#1219)
Browse files Browse the repository at this point in the history
Co-authored-by: Stephen Weatherford <[email protected]>
  • Loading branch information
StephenWeatherford and Stephen Weatherford authored Feb 28, 2021
1 parent 00b2cf7 commit 80dbadf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/AzureRMTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import { ExtractItem } from './documents/templates/ExtractItem';
import { getNormalizedDocumentKey } from './documents/templates/getNormalizedDocumentKey';
import { gotoResources } from './documents/templates/gotoResources';
import { getItemTypeQuickPicks, InsertItem } from "./documents/templates/insertItem";
import { LinkedFileLoadState } from './documents/templates/linkedTemplates/LinkedFileLoadState';
import { assignTemplateGraphToDeploymentTemplate, INotifyTemplateGraphArgs, openLinkedTemplateFileCommand, tryOpenNonLocalLinkedFile } from './documents/templates/linkedTemplates/linkedTemplates';
import { allSchemas, getPreferredSchema } from './documents/templates/schemas';
import { getQuickPickItems, sortTemplate } from "./documents/templates/sortTemplate";
Expand Down Expand Up @@ -1790,9 +1789,9 @@ export class AzureRMTools implements IProvideOpenedDocuments {
const rootTemplate = this.getOpenedDeploymentTemplate(rootTemplateUri);

// tslint:disable-next-line: no-console
console.log(`onTemplateGraphAvailable: ${path.basename(e.rootTemplateUri)}, isComplete=${e.isComplete}:`);
// console.log(`onTemplateGraphAvailable: ${path.basename(e.rootTemplateUri)}, isComplete=${e.isComplete}:`);
// tslint:disable-next-line: no-console
console.log(e.linkedTemplates.map(lt => ` ${path.basename(lt.fullUri)}: ${LinkedFileLoadState[lt.loadState]} ${lt.loadErrorMessage ?? ''}`).join('\n'));
// console.log(e.linkedTemplates.map(lt => ` ${path.basename(lt.fullUri)}: ${LinkedFileLoadState[lt.loadState]} ${lt.loadErrorMessage ?? ''}`).join('\n'));

// Cache the template graph results
const rootTemplateKey = getNormalizedDocumentKey(vscode.Uri.parse(e.rootTemplateUri, true));
Expand Down
3 changes: 2 additions & 1 deletion test/functional/linkedTemplates.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,8 @@ suite("Linked templates functional tests", () => {
expected: [
"Error: Template validation failed: Template parameter JToken type is not valid. Expected 'Integer'. Actual 'String'. Please see https://aka.ms/arm-deploy/#parameter-file for usage details. (arm-template (validation)) [14,27] [The error occurred in a linked template near here] [12,21]",
"Warning: The variable 'unusedVar' is never used. (arm-template (expressions)) [5,9]",
]
],
waitForDiagnosticSubstring: "Template validation failed"
}
]
}
Expand Down

0 comments on commit 80dbadf

Please sign in to comment.