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
|
// (2) Patch builtin extensions
|
||||||
if (path.endsWith('vs/workbench/services/extensionManagement/browser/builtinExtensionsScannerService.js')) {
|
if (path.endsWith('vs/workbench/services/extensionManagement/browser/builtinExtensionsScannerService.js')) {
|
||||||
const builtinExtensions = JSON.stringify(extensions.scanBuiltinExtensions(extensionsRoot));
|
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;
|
return content;
|
||||||
|
|
|
@ -298,11 +298,11 @@ export class ExtensionTipsService extends BaseExtensionTipsService {
|
||||||
const exePaths: string[] = [];
|
const exePaths: string[] = [];
|
||||||
if (isWindows) {
|
if (isWindows) {
|
||||||
if (extensionTip.windowsPath) {
|
if (extensionTip.windowsPath) {
|
||||||
exePaths.push(extensionTip.windowsPath.replace('%USERPROFILE%', env['USERPROFILE']!)
|
exePaths.push(extensionTip.windowsPath.replace('%USERPROFILE%', () => env['USERPROFILE']!)
|
||||||
.replace('%ProgramFiles(x86)%', env['ProgramFiles(x86)']!)
|
.replace('%ProgramFiles(x86)%', () => env['ProgramFiles(x86)']!)
|
||||||
.replace('%ProgramFiles%', env['ProgramFiles']!)
|
.replace('%ProgramFiles%', () => env['ProgramFiles']!)
|
||||||
.replace('%APPDATA%', env['APPDATA']!)
|
.replace('%APPDATA%', () => env['APPDATA']!)
|
||||||
.replace('%WINDIR%', env['WINDIR']!));
|
.replace('%WINDIR%', () => env['WINDIR']!));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
exePaths.push(join('/usr/local/bin', exeName));
|
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 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)
|
this.extensionRecommendationNotificationService.promptImportantExtensionsInstallNotification([extensionId], message, `@id:${extensionId}`, RecommendationSource.FILE)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
|
|
Loading…
Reference in a new issue