@@ -172,7 +172,7 @@ suite('Files - TextFileService i/o', () => {
172172 assert . equal ( await exists ( resource . fsPath ) , true ) ;
173173
174174 const detectedEncoding = await detectEncodingByBOM ( resource . fsPath ) ;
175- assert . equal ( detectedEncoding , UTF8 ) ;
175+ assert . equal ( detectedEncoding , UTF8_with_bom ) ;
176176 } ) ;
177177
178178 test ( 'create - UTF 8 BOM - content provided' , async ( ) => {
@@ -183,7 +183,7 @@ suite('Files - TextFileService i/o', () => {
183183 assert . equal ( await exists ( resource . fsPath ) , true ) ;
184184
185185 const detectedEncoding = await detectEncodingByBOM ( resource . fsPath ) ;
186- assert . equal ( detectedEncoding , UTF8 ) ;
186+ assert . equal ( detectedEncoding , UTF8_with_bom ) ;
187187 } ) ;
188188
189189 test ( 'create - UTF 8 BOM - empty content - snapshot' , async ( ) => {
@@ -194,7 +194,7 @@ suite('Files - TextFileService i/o', () => {
194194 assert . equal ( await exists ( resource . fsPath ) , true ) ;
195195
196196 const detectedEncoding = await detectEncodingByBOM ( resource . fsPath ) ;
197- assert . equal ( detectedEncoding , UTF8 ) ;
197+ assert . equal ( detectedEncoding , UTF8_with_bom ) ;
198198 } ) ;
199199
200200 test ( 'create - UTF 8 BOM - content provided - snapshot' , async ( ) => {
@@ -205,7 +205,7 @@ suite('Files - TextFileService i/o', () => {
205205 assert . equal ( await exists ( resource . fsPath ) , true ) ;
206206
207207 const detectedEncoding = await detectEncodingByBOM ( resource . fsPath ) ;
208- assert . equal ( detectedEncoding , UTF8 ) ;
208+ assert . equal ( detectedEncoding , UTF8_with_bom ) ;
209209 } ) ;
210210
211211 test ( 'write - use encoding (UTF 16 BE) - small content as string' , async ( ) => {
@@ -325,12 +325,12 @@ suite('Files - TextFileService i/o', () => {
325325 await service . write ( resource , content , { encoding : UTF8_with_bom } ) ;
326326
327327 detectedEncoding = await detectEncodingByBOM ( resource . fsPath ) ;
328- assert . equal ( detectedEncoding , UTF8 ) ;
328+ assert . equal ( detectedEncoding , UTF8_with_bom ) ;
329329
330330 // ensure BOM preserved
331331 await service . write ( resource , content , { encoding : UTF8 } ) ;
332332 detectedEncoding = await detectEncodingByBOM ( resource . fsPath ) ;
333- assert . equal ( detectedEncoding , UTF8 ) ;
333+ assert . equal ( detectedEncoding , UTF8_with_bom ) ;
334334
335335 // allow to remove BOM
336336 await service . write ( resource , content , { encoding : UTF8 , overwriteEncoding : true } ) ;
@@ -353,12 +353,12 @@ suite('Files - TextFileService i/o', () => {
353353 await service . write ( resource , model . createSnapshot ( ) , { encoding : UTF8_with_bom } ) ;
354354
355355 detectedEncoding = await detectEncodingByBOM ( resource . fsPath ) ;
356- assert . equal ( detectedEncoding , UTF8 ) ;
356+ assert . equal ( detectedEncoding , UTF8_with_bom ) ;
357357
358358 // ensure BOM preserved
359359 await service . write ( resource , model . createSnapshot ( ) , { encoding : UTF8 } ) ;
360360 detectedEncoding = await detectEncodingByBOM ( resource . fsPath ) ;
361- assert . equal ( detectedEncoding , UTF8 ) ;
361+ assert . equal ( detectedEncoding , UTF8_with_bom ) ;
362362
363363 // allow to remove BOM
364364 await service . write ( resource , model . createSnapshot ( ) , { encoding : UTF8 , overwriteEncoding : true } ) ;
@@ -375,11 +375,11 @@ suite('Files - TextFileService i/o', () => {
375375 const resource = URI . file ( join ( testDir , 'some_utf8_bom.txt' ) ) ;
376376
377377 let detectedEncoding = await detectEncodingByBOM ( resource . fsPath ) ;
378- assert . equal ( detectedEncoding , UTF8 ) ;
378+ assert . equal ( detectedEncoding , UTF8_with_bom ) ;
379379
380380 await service . write ( resource , 'Hello World' ) ;
381381 detectedEncoding = await detectEncodingByBOM ( resource . fsPath ) ;
382- assert . equal ( detectedEncoding , UTF8 ) ;
382+ assert . equal ( detectedEncoding , UTF8_with_bom ) ;
383383 } ) ;
384384
385385 test ( 'write - ensure BOM in empty file - content as string' , async ( ) => {
@@ -388,7 +388,7 @@ suite('Files - TextFileService i/o', () => {
388388 await service . write ( resource , '' , { encoding : UTF8_with_bom } ) ;
389389
390390 let detectedEncoding = await detectEncodingByBOM ( resource . fsPath ) ;
391- assert . equal ( detectedEncoding , UTF8 ) ;
391+ assert . equal ( detectedEncoding , UTF8_with_bom ) ;
392392 } ) ;
393393
394394 test ( 'write - ensure BOM in empty file - content as snapshot' , async ( ) => {
@@ -397,7 +397,7 @@ suite('Files - TextFileService i/o', () => {
397397 await service . write ( resource , TextModel . createFromString ( '' ) . createSnapshot ( ) , { encoding : UTF8_with_bom } ) ;
398398
399399 let detectedEncoding = await detectEncodingByBOM ( resource . fsPath ) ;
400- assert . equal ( detectedEncoding , UTF8 ) ;
400+ assert . equal ( detectedEncoding , UTF8_with_bom ) ;
401401 } ) ;
402402
403403 test ( 'readStream - small text' , async ( ) => {
0 commit comments