From fdd58ce3ff27144f1c3862b2a94d1cdf0a085b9f Mon Sep 17 00:00:00 2001 From: Alex Fang Date: Mon, 28 Feb 2022 05:40:16 +0800 Subject: [PATCH] fix: update sublime folder finder to support SublimeText from 4.x --- src/sublimeFolderFinder.ts | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/sublimeFolderFinder.ts b/src/sublimeFolderFinder.ts index c2b280a..99ea694 100644 --- a/src/sublimeFolderFinder.ts +++ b/src/sublimeFolderFinder.ts @@ -6,9 +6,21 @@ import * as fileSystem from './fsWrapper'; export const sublimeSettingsFilename = 'Preferences.sublime-settings'; const defaultSublimeSettingsPaths: Map = new Map([ - ['win32', [path.join(os.homedir(), 'AppData', 'Roaming', 'Sublime Text 3')]], - ['darwin', [path.join(os.homedir(), 'Library', 'Application Support', 'Sublime Text 3')]], - ['linux', [path.join(os.homedir(), '.config', 'sublime-text-3')]], + ['win32', [ + path.join(os.homedir(), 'AppData', 'Roaming', 'Sublime Text 3'), + path.join(os.homedir(), 'AppData', 'Roaming', 'Sublime Text') + ] + ], + ['darwin', [ + path.join(os.homedir(), 'Library', 'Application Support', 'Sublime Text 3'), + path.join(os.homedir(), 'Library', 'Application Support', 'Sublime Text') + ] + ], + ['linux', [ + path.join(os.homedir(), '.config', 'sublime-text-3'), + path.join(os.homedir(), '.config', 'sublime-text') + ] + ], ]); const settingsSubfoldersPath = path.join('Packages', 'User', 'Preferences.sublime-settings');