@@ -50,11 +50,13 @@ import { TestStorageService } from '../../../../test/common/workbenchTestService
50
50
import { IUriIdentityService } from '../../../../../platform/uriIdentity/common/uriIdentity.js' ;
51
51
import { UriIdentityService } from '../../../../../platform/uriIdentity/common/uriIdentityService.js' ;
52
52
import { IWorkspaceIdentityService , WorkspaceIdentityService } from '../../../../services/workspaces/common/workspaceIdentityService.js' ;
53
+ import { ensureNoDisposablesAreLeakedInTestSuite } from '../../../../../base/test/common/utils.js' ;
53
54
54
55
const folderName = 'test-folder' ;
55
56
const folderUri = URI . file ( `/${ folderName } ` ) ;
56
57
57
58
suite ( 'Edit session sync' , ( ) => {
59
+
58
60
let instantiationService : TestInstantiationService ;
59
61
let editSessionsContribution : EditSessionsContribution ;
60
62
let fileService : FileService ;
@@ -63,6 +65,7 @@ suite('Edit session sync', () => {
63
65
const disposables = new DisposableStore ( ) ;
64
66
65
67
suiteSetup ( ( ) => {
68
+
66
69
sandbox = sinon . createSandbox ( ) ;
67
70
68
71
instantiationService = new TestInstantiationService ( ) ;
@@ -172,6 +175,10 @@ suite('Edit session sync', () => {
172
175
disposables . clear ( ) ;
173
176
} ) ;
174
177
178
+ suiteTeardown ( ( ) => {
179
+ disposables . dispose ( ) ;
180
+ } ) ;
181
+
175
182
test ( 'Can apply edit session' , async function ( ) {
176
183
const fileUri = joinPath ( folderUri , 'dir1' , 'README.md' ) ;
177
184
const fileContents = '# readme' ;
@@ -218,4 +225,6 @@ suite('Edit session sync', () => {
218
225
// Verify that we did not attempt to write the edit session
219
226
assert . equal ( writeStub . called , false ) ;
220
227
} ) ;
228
+
229
+ ensureNoDisposablesAreLeakedInTestSuite ( ) ;
221
230
} ) ;
0 commit comments