mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Added change to locFunc and preinstall (#23680)
* Added change to locFunc and preinstall * added correct spacing and locations * Fixed locFunc
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -184,27 +184,21 @@ const textFields = {
|
||||
const VSCODEExtensions = [
|
||||
"bat",
|
||||
"configuration-editing",
|
||||
"csharp",
|
||||
"dart",
|
||||
"docker",
|
||||
"fsharp",
|
||||
"git",
|
||||
"git-base",
|
||||
"github",
|
||||
"github-authentication",
|
||||
"html",
|
||||
"image-preview",
|
||||
"ipynb",
|
||||
"javascript",
|
||||
"json",
|
||||
"json-language-features",
|
||||
"julia",
|
||||
"markdown-basics",
|
||||
"markdown-language-features",
|
||||
"markdown-math",
|
||||
"media-preview",
|
||||
"merge-conflict",
|
||||
"microsoft-authentication",
|
||||
"notebook-renderers",
|
||||
"powershell",
|
||||
"python",
|
||||
"r",
|
||||
@@ -218,7 +212,7 @@ const VSCODEExtensions = [
|
||||
"theme-monokai-dimmed",
|
||||
"theme-quietlight",
|
||||
"theme-red",
|
||||
"theme-seti",
|
||||
"vscode-theme-seti",
|
||||
"theme-solarized-dark",
|
||||
"theme-solarized-light",
|
||||
"theme-tomorrow-night-blue",
|
||||
@@ -324,10 +318,6 @@ export function refreshLangpacks(): Promise<void> {
|
||||
let nonExistantExtensions = [];
|
||||
for (let curr of localization.translations) {
|
||||
try {
|
||||
if (curr.id === 'vscode.theme-seti') {
|
||||
//handle edge case where 'theme-seti' has a different id.
|
||||
curr.id = 'vscode.vscode-theme-seti';
|
||||
}
|
||||
fs.statSync(path.join(translationDataFolder, curr.path.replace('./translations', '')));
|
||||
}
|
||||
catch {
|
||||
@@ -403,8 +393,9 @@ export function renameVscodeLangpacks(): Promise<void> {
|
||||
let totalExtensions = fs.readdirSync(path.join(translationDataFolder, 'extensions'));
|
||||
for (let extensionTag in totalExtensions) {
|
||||
let extensionFileName = totalExtensions[extensionTag];
|
||||
let xlfPath = path.join(xlfFolder, `${langId}`, extensionFileName.replace('.i18n.json', '.xlf'));
|
||||
if (!(fs.existsSync(xlfPath) || VSCODEExtensions.indexOf(extensionFileName.replace('.i18n.json', '')) !== -1)) {
|
||||
let shortExtensionFileName = extensionFileName.replace('ms-vscode.', 'vscode.').replace('vscode.', '');
|
||||
let xlfPath = path.join(xlfFolder, `${langId}`, shortExtensionFileName.replace('.i18n.json', '.xlf'));
|
||||
if (!(fs.existsSync(xlfPath) || VSCODEExtensions.indexOf(shortExtensionFileName.replace('.i18n.json', '')) !== -1)) {
|
||||
let filePath = path.join(translationDataFolder, 'extensions', extensionFileName);
|
||||
rimraf.sync(filePath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user