import { homedir } from 'os' ; import { resolve } from 'path' ; export function getGlobalSnippetDir ( isInsiders ) { const appName = isInsiders ? 'Code - Insiders' : 'Code' ; if ( process . platform === 'win32' ) { return resolve ( process . env [ 'APPDATA' ] || '' , appName , 'User/snippets/vetur' ) ; } else if ( process . platform === 'darwin' ) { return resolve ( homedir ( ) , 'Library/Application Support' , appName , 'User/snippets/vetur' ) ; } else { return resolve ( homedir ( ) , '.config' , appName , 'User/snippets/vetur' ) ; } }