@@ -35,12 +35,12 @@ export class VSCodeSetting
3535 /**
3636 * Suffix of remote mac files.
3737 */
38- private static readonly MAC_SUFFIX : string = "-mac" ;
38+ private static readonly _MAC_SUFFIX : string = "-mac" ;
3939
4040 /**
4141 * Prefix of remote snippet files.
4242 */
43- private static readonly SNIPPET_PREFIX : string = "snippet-" ;
43+ private static readonly _SNIPPET_PREFIX : string = "snippet-" ;
4444
4545 private _env : Environment ;
4646 private _ext : Extension ;
@@ -120,7 +120,7 @@ export class VSCodeSetting
120120 ) ;
121121 if ( separateKeybindings && this . _env . isMac )
122122 {
123- remoteFilename = `${ settingType } ${ VSCodeSetting . MAC_SUFFIX } .json` ;
123+ remoteFilename = `${ settingType } ${ VSCodeSetting . _MAC_SUFFIX } .json` ;
124124 }
125125 }
126126
@@ -248,13 +248,13 @@ export class VSCodeSetting
248248 let filename : string ;
249249 for ( const key of Object . keys ( files ) )
250250 {
251- if ( existsFileKeys . indexOf ( key ) === - 1 )
251+ if ( ! existsFileKeys . includes ( key ) )
252252 {
253253 gistFile = files [ key ] ;
254- if ( gistFile . filename . startsWith ( VSCodeSetting . SNIPPET_PREFIX ) )
254+ if ( gistFile . filename . startsWith ( VSCodeSetting . _SNIPPET_PREFIX ) )
255255 {
256256 // Snippets.
257- filename = gistFile . filename . slice ( VSCodeSetting . SNIPPET_PREFIX . length ) ;
257+ filename = gistFile . filename . slice ( VSCodeSetting . _SNIPPET_PREFIX . length ) ;
258258 if ( filename )
259259 {
260260 settingsToSave . push ( {
@@ -370,7 +370,7 @@ export class VSCodeSetting
370370 // Add prefix to all snippets.
371371 results . push ( {
372372 localFilePath : path . join ( snippetsDir , filename ) ,
373- remoteFilename : `${ VSCodeSetting . SNIPPET_PREFIX } ${ filename } ` ,
373+ remoteFilename : `${ VSCodeSetting . _SNIPPET_PREFIX } ${ filename } ` ,
374374 type : SettingType . Snippets
375375 } ) ;
376376 } ) ;
0 commit comments