-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CM-40894 - Fix scan on save for individual files
- Loading branch information
Showing
3 changed files
with
29 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
## [v1.10.0] | ||
|
||
- Add sync flow for Secrets and IaC | ||
- Fix scan on save for individual files | ||
|
||
## [v1.9.4] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import * as os from 'os'; | ||
import * as path from 'path'; | ||
|
||
export const getVsCodeRootPathPrefix = (): string => { | ||
// Get the path to the global VS Code app folder based on OS | ||
// Ref: https://github.com/microsoft/vscode/issues/3884#issue-139391403 | ||
|
||
const homeDir = os.homedir(); | ||
let globalConfigPath: string; | ||
if (process.platform === 'win32') { | ||
// Windows | ||
globalConfigPath = path.join(homeDir, 'AppData', 'Roaming', 'Code'); | ||
} else if (process.platform === 'darwin') { | ||
// macOS | ||
globalConfigPath = path.join(homeDir, 'Library', 'Application Support', 'Code'); | ||
} else { | ||
// Linux | ||
globalConfigPath = path.join(homeDir, '.config', 'Code'); | ||
} | ||
|
||
return globalConfigPath; | ||
}; | ||
|