mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
parent
a18f1c39ea
commit
fac2283bf3
|
@ -116,7 +116,7 @@ const createVSCodeWebBuiltinExtensionsPatcher = (extensionsRoot) => {
|
|||
// (2) Patch builtin extensions
|
||||
if (path.endsWith('vs/workbench/services/extensionManagement/browser/builtinExtensionsScannerService.js')) {
|
||||
const builtinExtensions = JSON.stringify(extensions.scanBuiltinExtensions(extensionsRoot));
|
||||
return content.replace('/*BUILD->INSERT_BUILTIN_EXTENSIONS*/', builtinExtensions.substr(1, builtinExtensions.length - 2) /* without [ and ]*/);
|
||||
return content.replace('/*BUILD->INSERT_BUILTIN_EXTENSIONS*/', () => builtinExtensions.substr(1, builtinExtensions.length - 2) /* without [ and ]*/);
|
||||
}
|
||||
|
||||
return content;
|
||||
|
|
|
@ -298,11 +298,11 @@ export class ExtensionTipsService extends BaseExtensionTipsService {
|
|||
const exePaths: string[] = [];
|
||||
if (isWindows) {
|
||||
if (extensionTip.windowsPath) {
|
||||
exePaths.push(extensionTip.windowsPath.replace('%USERPROFILE%', env['USERPROFILE']!)
|
||||
.replace('%ProgramFiles(x86)%', env['ProgramFiles(x86)']!)
|
||||
.replace('%ProgramFiles%', env['ProgramFiles']!)
|
||||
.replace('%APPDATA%', env['APPDATA']!)
|
||||
.replace('%WINDIR%', env['WINDIR']!));
|
||||
exePaths.push(extensionTip.windowsPath.replace('%USERPROFILE%', () => env['USERPROFILE']!)
|
||||
.replace('%ProgramFiles(x86)%', () => env['ProgramFiles(x86)']!)
|
||||
.replace('%ProgramFiles%', () => env['ProgramFiles']!)
|
||||
.replace('%APPDATA%', () => env['APPDATA']!)
|
||||
.replace('%WINDIR%', () => env['WINDIR']!));
|
||||
}
|
||||
} else {
|
||||
exePaths.push(join('/usr/local/bin', exeName));
|
||||
|
|
|
@ -275,7 +275,7 @@ export class FileBasedRecommendations extends ExtensionRecommendations {
|
|||
}
|
||||
|
||||
const treatmentMessage = await this.tasExperimentService.getTreatment<string>('languageRecommendationMessage');
|
||||
const message = treatmentMessage ? treatmentMessage.replace('{0}', name) : localize('reallyRecommended', "Do you want to install the recommended extensions for {0}?", name);
|
||||
const message = treatmentMessage ? treatmentMessage.replace('{0}', () => name) : localize('reallyRecommended', "Do you want to install the recommended extensions for {0}?", name);
|
||||
|
||||
this.extensionRecommendationNotificationService.promptImportantExtensionsInstallNotification([extensionId], message, `@id:${extensionId}`, RecommendationSource.FILE)
|
||||
.then(result => {
|
||||
|
|
Loading…
Reference in a new issue