@@ -12,10 +12,8 @@ import vscode, {
1212import path from "path" ;
1313import fse from "fs-extra" ;
1414import {
15- executeAcceptSelectedSuggestion ,
1615 executeCloseAllEditors ,
1716 executeCompletionItemProvider ,
18- executeSelectNextSuggestion ,
1917} from "./commands" ;
2018import { } from "fs" ;
2119import { createUniqueTempFolder } from "../utils/createUniqueTempFolder" ;
@@ -74,18 +72,20 @@ describe("empty config file snippets", (): void => {
7472 normalizeLineEndings ( expectedAfterInsertion )
7573 ) ;
7674
77- // Verify that the snippet placed VS Code into an "insertion" state with the dropdown for the first rule open to show
78- // the available diagnostic levels (the current one should be "warning").
79- // Verify this by moving down to the next suggestion ("off") and selecting it
80- const expectedAfterSelectingOffInsteadOfWarning =
81- expectedAfterInsertion . replace ( / w a r n i n g / , "off" ) ;
82- await executeSelectNextSuggestion ( ) ;
83- await executeAcceptSelectedSuggestion ( ) ;
84- const textAfterSelectingOffInsteadOfWarningtext =
85- editor . document . getText ( ) ;
86- expect (
87- normalizeLineEndings ( textAfterSelectingOffInsteadOfWarningtext )
88- ) . toBe ( normalizeLineEndings ( expectedAfterSelectingOffInsteadOfWarning ) ) ;
75+ // TODO: DISABLED (FLAKY) - see https://github.com/Azure/bicep/issues/6766
76+ //
77+ // // Verify that the snippet placed VS Code into an "insertion" state with the dropdown for the first rule open to show
78+ // // the available diagnostic levels (the current one should be "warning").
79+ // // Verify this by moving down to the next suggestion ("off") and selecting it
80+ // const expectedAfterSelectingOffInsteadOfWarning =
81+ // expectedAfterInsertion.replace(/warning/, "off");
82+ // await executeSelectNextSuggestion();
83+ // await executeAcceptSelectedSuggestion();
84+ // const textAfterSelectingOffInsteadOfWarningtext =
85+ // editor.document.getText();
86+ // expect(
87+ // normalizeLineEndings(textAfterSelectingOffInsteadOfWarningtext)
88+ // ).toBe(normalizeLineEndings(expectedAfterSelectingOffInsteadOfWarning));
8989 } finally {
9090 fse . rmdirSync ( tempFolder , {
9191 recursive : true ,
0 commit comments