@@ -9,7 +9,7 @@ import * as path from "path";
99import testAssetWorkspace from "./testAssets/testAssetWorkspace" ;
1010import { expect } from "chai" ;
1111import { activateCSharpExtension , isRazorWorkspace , isSlnWithCsproj , restartOmniSharpServer } from './integrationHelpers' ;
12- import { assertWithPoll , sleep } from "./poll" ;
12+ import { assertWithPoll } from "./poll" ;
1313
1414suite ( `${ CSharpDefinitionProvider . name } : ${ testAssetWorkspace . description } ` , ( ) => {
1515 let fileUri : vscode . Uri ;
@@ -70,14 +70,14 @@ suite(`${CSharpDefinitionProvider.name}: ${testAssetWorkspace.description}`, ()
7070 const textStart = new vscode . Position ( 11 , 41 ) ;
7171 await vscode . commands . executeCommand ( 'vscode.open' , generatorTriggerUri ) ;
7272
73- // We need to do a full build in order to get the source generator built and ready to run, or tests will fail
74- await vscode . commands . executeCommand ( "dotnet.generateAssets" , 0 ) ;
75- await sleep ( 100 ) ;
76- const tasks = await vscode . tasks . fetchTasks ( ) ;
77- const task = ( tasks ) . filter ( task => task . name === 'build' ) [ 0 ] ;
78- expect ( task ) . to . not . be . undefined ;
79- await vscode . tasks . executeTask ( task ) ;
80- await restartOmniSharpServer ( ) ;
73+ // // We need to do a full build in order to get the source generator built and ready to run, or tests will fail
74+ // await vscode.commands.executeCommand("dotnet.generateAssets", 0);
75+ // await sleep(100);
76+ // const tasks = await vscode.tasks.fetchTasks();
77+ // const task = (tasks).filter(task => task.name === 'build')[0];
78+ // expect(task).to.not.be.undefined;
79+ // await vscode.tasks.executeTask(task);
80+ // await restartOmniSharpServer();
8181
8282 const definitionList = < vscode . Location [ ] > ( await vscode . commands . executeCommand ( "vscode.executeDefinitionProvider" , generatorTriggerUri , textStart ) ) ;
8383 expect ( definitionList . length ) . to . be . equal ( 1 ) ;
0 commit comments