chore:修改软件二进制名称为kylin-code.

This commit is contained in:
chriswang521 2024-05-10 15:40:21 +08:00 committed by wangpenglong
parent e2de66fd31
commit d5ae22072d
39 changed files with 382 additions and 197 deletions

View File

@ -1,5 +1,5 @@
{ {
"name": "Code - OSS", "name": "Kylin-Code",
"build": { "build": {
"dockerfile": "Dockerfile" "dockerfile": "Dockerfile"
}, },

60
.vscode/launch.json vendored
View File

@ -78,7 +78,7 @@
{ {
"type": "extensionHost", "type": "extensionHost",
"request": "launch", "request": "launch",
"name": "VS Code Emmet Tests", "name": "Kylin Code Emmet Tests",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": [ "args": [
"${workspaceFolder}/extensions/emmet/test-workspace", "${workspaceFolder}/extensions/emmet/test-workspace",
@ -96,7 +96,7 @@
{ {
"type": "extensionHost", "type": "extensionHost",
"request": "launch", "request": "launch",
"name": "VS Code Configuration Editing Tests", "name": "Kylin Code Configuration Editing Tests",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": [ "args": [
"--extensionDevelopmentPath=${workspaceFolder}/extensions/configuration-editing", "--extensionDevelopmentPath=${workspaceFolder}/extensions/configuration-editing",
@ -113,7 +113,7 @@
{ {
"type": "extensionHost", "type": "extensionHost",
"request": "launch", "request": "launch",
"name": "VS Code Git Tests", "name": "Kylin Code Git Tests",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": [ "args": [
"/tmp/my4g9l", "/tmp/my4g9l",
@ -131,7 +131,7 @@
{ {
"type": "extensionHost", "type": "extensionHost",
"request": "launch", "request": "launch",
"name": "VS Code Github Tests", "name": "Kylin Code Github Tests",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": [ "args": [
"${workspaceFolder}/extensions/github/testWorkspace", "${workspaceFolder}/extensions/github/testWorkspace",
@ -149,7 +149,7 @@
{ {
"type": "extensionHost", "type": "extensionHost",
"request": "launch", "request": "launch",
"name": "VS Code API Tests (single folder)", "name": "Kylin Code API Tests (single folder)",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": [ "args": [
// "${workspaceFolder}", // Uncomment for running out of sources. // "${workspaceFolder}", // Uncomment for running out of sources.
@ -169,7 +169,7 @@
{ {
"type": "extensionHost", "type": "extensionHost",
"request": "launch", "request": "launch",
"name": "VS Code API Tests (workspace)", "name": "Kylin Code API Tests (workspace)",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": [ "args": [
"${workspaceFolder}/extensions/vscode-api-tests/testworkspace.code-workspace", "${workspaceFolder}/extensions/vscode-api-tests/testworkspace.code-workspace",
@ -187,7 +187,7 @@
{ {
"type": "extensionHost", "type": "extensionHost",
"request": "launch", "request": "launch",
"name": "VS Code Tokenizer Tests", "name": "Kylin Code Tokenizer Tests",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": [ "args": [
"${workspaceFolder}/extensions/vscode-colorize-tests/test", "${workspaceFolder}/extensions/vscode-colorize-tests/test",
@ -205,7 +205,7 @@
{ {
"type": "chrome", "type": "chrome",
"request": "attach", "request": "attach",
"name": "Attach to VS Code", "name": "Attach to Kylin Code",
"browserAttachLocation": "workspace", "browserAttachLocation": "workspace",
"port": 9222, "port": 9222,
"outFiles": [ "outFiles": [
@ -219,7 +219,7 @@
{ {
"type": "chrome", "type": "chrome",
"request": "launch", "request": "launch",
"name": "Launch VS Code Internal", "name": "Launch Kylin Code Internal",
"windows": { "windows": {
"runtimeExecutable": "${workspaceFolder}/scripts/code.bat" "runtimeExecutable": "${workspaceFolder}/scripts/code.bat"
}, },
@ -265,7 +265,7 @@
{ {
"type": "node", "type": "node",
"request": "launch", "request": "launch",
"name": "VS Code Server (Web)", "name": "Kylin Code Server (Web)",
"runtimeExecutable": "${workspaceFolder}/scripts/code-server.sh", "runtimeExecutable": "${workspaceFolder}/scripts/code-server.sh",
"windows": { "windows": {
"runtimeExecutable": "${workspaceFolder}/scripts/code-server.bat", "runtimeExecutable": "${workspaceFolder}/scripts/code-server.bat",
@ -305,7 +305,7 @@
"request": "launch", "request": "launch",
"outFiles": [], "outFiles": [],
"perScriptSourcemaps": "yes", "perScriptSourcemaps": "yes",
"name": "VS Code Server (Web, Chrome)", "name": "Kylin Code Server (Web, Chrome)",
"url": "http://localhost:8080?tkn=dev-token", "url": "http://localhost:8080?tkn=dev-token",
"preLaunchTask": "Run code server", "preLaunchTask": "Run code server",
"presentation": { "presentation": {
@ -318,7 +318,7 @@
"request": "launch", "request": "launch",
"outFiles": [], "outFiles": [],
"perScriptSourcemaps": "yes", "perScriptSourcemaps": "yes",
"name": "VS Code Server (Web, Edge)", "name": "Kylin Code Server (Web, Edge)",
"url": "http://localhost:8080?tkn=dev-token", "url": "http://localhost:8080?tkn=dev-token",
"pauseForSourceMap": false, "pauseForSourceMap": false,
"preLaunchTask": "Run code server", "preLaunchTask": "Run code server",
@ -332,7 +332,7 @@
"request": "launch", "request": "launch",
"outFiles": [], "outFiles": [],
"perScriptSourcemaps": "yes", "perScriptSourcemaps": "yes",
"name": "VS Code Web (Chrome)", "name": "Kylin Code Web (Chrome)",
"url": "http://localhost:8080", "url": "http://localhost:8080",
"preLaunchTask": "Run code web", "preLaunchTask": "Run code web",
"presentation": { "presentation": {
@ -345,7 +345,7 @@
"request": "launch", "request": "launch",
"outFiles": [], "outFiles": [],
"perScriptSourcemaps": "yes", "perScriptSourcemaps": "yes",
"name": "VS Code Web (Edge)", "name": "Kylin Code Web (Edge)",
"url": "http://localhost:8080", "url": "http://localhost:8080",
"pauseForSourceMap": false, "pauseForSourceMap": false,
"preLaunchTask": "Run code web", "preLaunchTask": "Run code web",
@ -440,12 +440,12 @@
"request": "launch", "request": "launch",
"name": "Run Unit Tests", "name": "Run Unit Tests",
"program": "${workspaceFolder}/test/unit/electron/index.js", "program": "${workspaceFolder}/test/unit/electron/index.js",
"runtimeExecutable": "${workspaceFolder}/.build/electron/Code - OSS.app/Contents/MacOS/Electron", "runtimeExecutable": "${workspaceFolder}/.build/electron/Kylin-Code.app/Contents/MacOS/Electron",
"windows": { "windows": {
"runtimeExecutable": "${workspaceFolder}/.build/electron/Code - OSS.exe" "runtimeExecutable": "${workspaceFolder}/.build/electron/Kylin-Code.exe"
}, },
"linux": { "linux": {
"runtimeExecutable": "${workspaceFolder}/.build/electron/code-oss" "runtimeExecutable": "${workspaceFolder}/.build/electron/kylin-code"
}, },
"outputCapture": "std", "outputCapture": "std",
"args": [ "args": [
@ -456,7 +456,7 @@
"${workspaceFolder}/out/**/*.js" "${workspaceFolder}/out/**/*.js"
], ],
"cascadeTerminateToConfigurations": [ "cascadeTerminateToConfigurations": [
"Attach to VS Code" "Attach to Kylin Code"
], ],
"env": { "env": {
"MOCHA_COLORS": "true" "MOCHA_COLORS": "true"
@ -470,15 +470,15 @@
"request": "launch", "request": "launch",
"name": "Run Unit Tests For Current File", "name": "Run Unit Tests For Current File",
"program": "${workspaceFolder}/test/unit/electron/index.js", "program": "${workspaceFolder}/test/unit/electron/index.js",
"runtimeExecutable": "${workspaceFolder}/.build/electron/Code - OSS.app/Contents/MacOS/Electron", "runtimeExecutable": "${workspaceFolder}/.build/electron/Kylin-Code.app/Contents/MacOS/Electron",
"windows": { "windows": {
"runtimeExecutable": "${workspaceFolder}/.build/electron/Code - OSS.exe" "runtimeExecutable": "${workspaceFolder}/.build/electron/Kylin-Code.exe"
}, },
"linux": { "linux": {
"runtimeExecutable": "${workspaceFolder}/.build/electron/code-oss" "runtimeExecutable": "${workspaceFolder}/.build/electron/kylin-code"
}, },
"cascadeTerminateToConfigurations": [ "cascadeTerminateToConfigurations": [
"Attach to VS Code" "Attach to Kylin Code"
], ],
"outputCapture": "std", "outputCapture": "std",
"args": [ "args": [
@ -506,7 +506,7 @@
"timeout": 240000, "timeout": 240000,
"args": [ "args": [
"-l", "-l",
"${workspaceFolder}/.build/electron/Code - OSS.app/Contents/MacOS/Electron" "${workspaceFolder}/.build/electron/Kylin-Code.app/Contents/MacOS/Electron"
], ],
"outFiles": [ "outFiles": [
"${cwd}/out/**/*.js" "${cwd}/out/**/*.js"
@ -540,10 +540,10 @@
], ],
"compounds": [ "compounds": [
{ {
"name": "VS Code", "name": "Kylin Code",
"stopAll": true, "stopAll": true,
"configurations": [ "configurations": [
"Launch VS Code Internal", "Launch Kylin Code Internal",
"Attach to Main Process", "Attach to Main Process",
"Attach to Extension Host", "Attach to Extension Host",
"Attach to Shared Process", "Attach to Shared Process",
@ -557,7 +557,7 @@
{ {
"name": "Search, Renderer, and Main processes", "name": "Search, Renderer, and Main processes",
"configurations": [ "configurations": [
"Launch VS Code Internal", "Launch Kylin Code Internal",
"Attach to Main Process", "Attach to Main Process",
"Attach to Search Process" "Attach to Search Process"
], ],
@ -569,7 +569,7 @@
{ {
"name": "Renderer, Extension Host, and Main processes", "name": "Renderer, Extension Host, and Main processes",
"configurations": [ "configurations": [
"Launch VS Code Internal", "Launch Kylin Code Internal",
"Attach to Main Process", "Attach to Main Process",
"Attach to Extension Host" "Attach to Extension Host"
], ],
@ -581,7 +581,7 @@
{ {
"name": "Debug Unit Tests", "name": "Debug Unit Tests",
"configurations": [ "configurations": [
"Attach to VS Code", "Attach to Kylin Code",
"Run Unit Tests" "Run Unit Tests"
], ],
"presentation": { "presentation": {
@ -592,7 +592,7 @@
{ {
"name": "Debug Unit Tests (Current File)", "name": "Debug Unit Tests (Current File)",
"configurations": [ "configurations": [
"Attach to VS Code", "Attach to Kylin Code",
"Run Unit Tests For Current File" "Run Unit Tests For Current File"
], ],
"presentation": { "presentation": {
@ -604,7 +604,7 @@
"name": "Renderer and Main processes", "name": "Renderer and Main processes",
"stopAll": true, "stopAll": true,
"configurations": [ "configurations": [
"Launch VS Code Internal", "Launch Kylin Code Internal",
"Attach to Main Process" "Attach to Main Process"
], ],
"preLaunchTask": "Ensure Prelaunch Dependencies" "preLaunchTask": "Ensure Prelaunch Dependencies"

View File

@ -10,7 +10,7 @@ const os = require('os');
const { ipcRenderer } = require('electron'); const { ipcRenderer } = require('electron');
const builtInExtensionsPath = path.join(__dirname, '..', '..', 'product.json'); const builtInExtensionsPath = path.join(__dirname, '..', '..', 'product.json');
const controlFilePath = path.join(os.homedir(), '.vscode-oss-dev', 'extensions', 'control.json'); const controlFilePath = path.join(os.homedir(), '.kylin-code-dev', 'extensions', 'control.json');
/** /**
* @param {string} filePath * @param {string} filePath

View File

@ -331,7 +331,7 @@ function packageTask(platform, arch, sourceFolderName, destinationFolderName, op
} else if (platform === 'darwin') { } else if (platform === 'darwin') {
const shortcut = gulp.src('resources/darwin/bin/code.sh') const shortcut = gulp.src('resources/darwin/bin/code.sh')
.pipe(replace('@@APPNAME@@', product.applicationName)) .pipe(replace('@@APPNAME@@', product.applicationName))
.pipe(rename('bin/code')); .pipe(rename('bin/' + product.applicationName));
all = es.merge(all, shortcut); all = es.merge(all, shortcut);
} }

View File

@ -48,7 +48,7 @@ function prepareDebPackage(arch) {
.pipe(replace('@@NAME_LONG@@', product.nameLong)) .pipe(replace('@@NAME_LONG@@', product.nameLong))
.pipe(replace('@@NAME_SHORT@@', product.nameShort)) .pipe(replace('@@NAME_SHORT@@', product.nameShort))
.pipe(replace('@@NAME@@', product.applicationName)) .pipe(replace('@@NAME@@', product.applicationName))
.pipe(replace('@@EXEC@@', `/usr/share/${product.applicationName}/${product.applicationName}`)) .pipe(replace('@@EXEC@@', `/opt/apps/${product.applicationName}/${product.applicationName}`))
.pipe(replace('@@ICON@@', product.linuxIconName)) .pipe(replace('@@ICON@@', product.linuxIconName))
.pipe(replace('@@URLPROTOCOL@@', product.urlProtocol)); .pipe(replace('@@URLPROTOCOL@@', product.urlProtocol));
@ -75,7 +75,7 @@ function prepareDebPackage(arch) {
.pipe(rename('usr/share/zsh/vendor-completions/_' + product.applicationName)); .pipe(rename('usr/share/zsh/vendor-completions/_' + product.applicationName));
const code = gulp.src(binaryDir + '/**/*', { base: binaryDir }) const code = gulp.src(binaryDir + '/**/*', { base: binaryDir })
.pipe(rename(function (p) { p.dirname = 'usr/share/' + product.applicationName + '/' + p.dirname; })); .pipe(rename(function (p) { p.dirname = 'opt/apps/' + product.applicationName + '/' + p.dirname; }));
let size = 0; let size = 0;
const control = code.pipe(es.through( const control = code.pipe(es.through(

View File

@ -20,7 +20,7 @@ const root = path.dirname(path.dirname(__dirname));
const productjson = JSON.parse(fs.readFileSync(path.join(__dirname, '../../product.json'), 'utf8')); const productjson = JSON.parse(fs.readFileSync(path.join(__dirname, '../../product.json'), 'utf8'));
const builtInExtensions = productjson.builtInExtensions || []; const builtInExtensions = productjson.builtInExtensions || [];
const webBuiltInExtensions = productjson.webBuiltInExtensions || []; const webBuiltInExtensions = productjson.webBuiltInExtensions || [];
const controlFilePath = path.join(os.homedir(), '.vscode-oss-dev', 'extensions', 'control.json'); const controlFilePath = path.join(os.homedir(), '.kylin-ide-dev', 'extensions', 'control.json');
const ENABLE_LOGGING = !process.env['VSCODE_BUILD_BUILTIN_EXTENSIONS_SILENCE_PLEASE']; const ENABLE_LOGGING = !process.env['VSCODE_BUILD_BUILTIN_EXTENSIONS_SILENCE_PLEASE'];
function log(...messages) { function log(...messages) {
if (ENABLE_LOGGING) { if (ENABLE_LOGGING) {
@ -134,4 +134,4 @@ if (require.main === module) {
process.exit(1); process.exit(1);
}); });
} }
//# sourceMappingURL=builtInExtensions.js.map //# sourceMappingURL=builtInExtensions.js.map

View File

@ -39,7 +39,7 @@ const root = path.dirname(path.dirname(__dirname));
const productjson = JSON.parse(fs.readFileSync(path.join(__dirname, '../../product.json'), 'utf8')); const productjson = JSON.parse(fs.readFileSync(path.join(__dirname, '../../product.json'), 'utf8'));
const builtInExtensions = <IExtensionDefinition[]>productjson.builtInExtensions || []; const builtInExtensions = <IExtensionDefinition[]>productjson.builtInExtensions || [];
const webBuiltInExtensions = <IExtensionDefinition[]>productjson.webBuiltInExtensions || []; const webBuiltInExtensions = <IExtensionDefinition[]>productjson.webBuiltInExtensions || [];
const controlFilePath = path.join(os.homedir(), '.vscode-oss-dev', 'extensions', 'control.json'); const controlFilePath = path.join(os.homedir(), '.kylin-code-dev', 'extensions', 'control.json');
const ENABLE_LOGGING = !process.env['VSCODE_BUILD_BUILTIN_EXTENSIONS_SILENCE_PLEASE']; const ENABLE_LOGGING = !process.env['VSCODE_BUILD_BUILTIN_EXTENSIONS_SILENCE_PLEASE'];
function log(...messages: string[]): void { function log(...messages: string[]): void {

View File

@ -86,8 +86,8 @@ exports.config = {
version: electronVersion, version: electronVersion,
tag: product.electronRepository ? `v${electronVersion}-${msBuildId}` : undefined, tag: product.electronRepository ? `v${electronVersion}-${msBuildId}` : undefined,
productAppName: product.nameLong, productAppName: product.nameLong,
companyName: 'Microsoft Corporation', companyName: 'KylinIdeTeam',
copyright: 'Copyright (C) 2023 Microsoft. All rights reserved', copyright: 'Copyright (C) 2023 KylinIdeTeam. All rights reserved',
darwinIcon: 'resources/darwin/code.icns', darwinIcon: 'resources/darwin/code.icns',
darwinBundleIdentifier: product.darwinBundleIdentifier, darwinBundleIdentifier: product.darwinBundleIdentifier,
darwinApplicationCategoryType: 'public.app-category.developer-tools', darwinApplicationCategoryType: 'public.app-category.developer-tools',
@ -172,10 +172,10 @@ exports.config = {
darwinBundleDocumentType([], 'default', 'Folder', ['public.folder']) darwinBundleDocumentType([], 'default', 'Folder', ['public.folder'])
], ],
darwinBundleURLTypes: [{ darwinBundleURLTypes: [{
role: 'Viewer', role: 'Viewer',
name: product.nameLong, name: product.nameLong,
urlSchemes: [product.urlProtocol] urlSchemes: [product.urlProtocol]
}], }],
darwinForceDarkModeSupport: true, darwinForceDarkModeSupport: true,
darwinCredits: darwinCreditsTemplate ? Buffer.from(darwinCreditsTemplate({ commit: commit, date: new Date().toISOString() })) : undefined, darwinCredits: darwinCreditsTemplate ? Buffer.from(darwinCreditsTemplate({ commit: commit, date: new Date().toISOString() })) : undefined,
linuxExecutableName: product.applicationName, linuxExecutableName: product.applicationName,
@ -219,4 +219,4 @@ if (require.main === module) {
process.exit(1); process.exit(1);
}); });
} }
//# sourceMappingURL=electron.js.map //# sourceMappingURL=electron.js.map

View File

@ -103,8 +103,8 @@ export const config = {
version: electronVersion, version: electronVersion,
tag: product.electronRepository ? `v${electronVersion}-${msBuildId}` : undefined, tag: product.electronRepository ? `v${electronVersion}-${msBuildId}` : undefined,
productAppName: product.nameLong, productAppName: product.nameLong,
companyName: 'Microsoft Corporation', companyName: 'KylinIdeTeam',
copyright: 'Copyright (C) 2023 Microsoft. All rights reserved', copyright: 'Copyright (C) 2023 KylinIdeTeam. All rights reserved',
darwinIcon: 'resources/darwin/code.icns', darwinIcon: 'resources/darwin/code.icns',
darwinBundleIdentifier: product.darwinBundleIdentifier, darwinBundleIdentifier: product.darwinBundleIdentifier,
darwinApplicationCategoryType: 'public.app-category.developer-tools', darwinApplicationCategoryType: 'public.app-category.developer-tools',

View File

@ -1,5 +1,5 @@
{ {
"name": "code-oss-dev-build", "name": "kylin-code-dev-build",
"version": "1.0.0", "version": "1.0.0",
"private": true, "private": true,
"license": "MIT", "license": "MIT",

View File

@ -1,5 +1,5 @@
{ {
"name": "code-oss-dev-build", "name": "kylin-code-dev-build",
"version": "1.0.0", "version": "1.0.0",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {

View File

@ -8,10 +8,10 @@
AppId={#AppId} AppId={#AppId}
AppName={#NameLong} AppName={#NameLong}
AppVerName={#NameVersion} AppVerName={#NameVersion}
AppPublisher=Microsoft Corporation AppPublisher=KylinIdeTeam
AppPublisherURL=https://code.visualstudio.com/ AppPublisherURL=https://gitee.com/openkylin/kylin-code
AppSupportURL=https://code.visualstudio.com/ AppSupportURL=https://gitee.com/openkylin/kylin-code
AppUpdatesURL=https://code.visualstudio.com/ AppUpdatesURL=https://gitee.com/openkylin/kylin-code
DefaultGroupName={#NameLong} DefaultGroupName={#NameLong}
AllowNoIcons=yes AllowNoIcons=yes
OutputDir={#OutputDir} OutputDir={#OutputDir}
@ -26,7 +26,7 @@ SetupIconFile={#RepoDir}\resources\win32\code.ico
UninstallDisplayIcon={app}\{#ExeBasename}.exe UninstallDisplayIcon={app}\{#ExeBasename}.exe
ChangesEnvironment=true ChangesEnvironment=true
ChangesAssociations=true ChangesAssociations=true
MinVersion=10.0 MinVersion=6.1.7600
SourceDir={#SourceDir} SourceDir={#SourceDir}
AppVersion={#Version} AppVersion={#Version}
VersionInfoVersion={#RawVersion} VersionInfoVersion={#RawVersion}

View File

@ -7,6 +7,7 @@ import { AuthProviderType } from '../github';
const VALID_DESKTOP_CALLBACK_SCHEMES = [ const VALID_DESKTOP_CALLBACK_SCHEMES = [
'vscode', 'vscode',
'kylin-code',
'vscode-insiders', 'vscode-insiders',
// On Windows, some browsers don't seem to redirect back to OSS properly. // On Windows, some browsers don't seem to redirect back to OSS properly.
// As a result, you get stuck in the auth flow. We exclude this from the // As a result, you get stuck in the auth flow. We exclude this from the

View File

@ -17,6 +17,7 @@ export class ExperimentationTelemetry implements IExperimentationTelemetry {
let targetPopulation: TargetPopulation; let targetPopulation: TargetPopulation;
switch (vscode.env.uriScheme) { switch (vscode.env.uriScheme) {
case 'vscode': case 'vscode':
case 'kylin-code':
targetPopulation = TargetPopulation.Public; targetPopulation = TargetPopulation.Public;
break; break;
case 'vscode-insiders': case 'vscode-insiders':

View File

@ -647,7 +647,7 @@ export default class TypeScriptServiceClient extends Disposable implements IType
} }
} }
} }
} else if (['vscode-insiders', 'code-oss'].includes(vscode.env.uriScheme)) { } else if (['kylin-code-insiders', 'kylin-code'].includes(vscode.env.uriScheme)) {
// Prompt after a single restart // Prompt after a single restart
this.numberRestarts = 0; this.numberRestarts = 0;
if (!this._isPromptingAfterCrash) { if (!this._isPromptingAfterCrash) {

View File

@ -1,9 +1,9 @@
{ {
"name": "code-oss-dev", "name": "kylin-code-dev",
"version": "1.85.2", "version": "1.85.2",
"distro": "2da261a80a39be375a7a51cf9382b9c7e8e83166", "distro": "2a9156d789cce5d8227e05edd507270b4053c0b5",
"author": { "author": {
"name": "Microsoft Corporation" "name": "KylinIdeTeam"
}, },
"license": "MIT", "license": "MIT",
"main": "./out/main", "main": "./out/main",
@ -220,10 +220,10 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/microsoft/vscode.git" "url": "https://gitee.com/openkylin/kylin-code.git"
}, },
"bugs": { "bugs": {
"url": "https://github.com/microsoft/vscode/issues" "url": "https://gitee.com/openkylin/kylin-code/issues"
}, },
"optionalDependencies": { "optionalDependencies": {
"windows-foreground-love": "0.5.0" "windows-foreground-love": "0.5.0"

View File

@ -1,36 +1,132 @@
{ {
"nameShort": "Code - OSS", "nameShort": "Kylin-Code",
"nameLong": "Code - OSS", "nameLong": "Kylin-Code",
"applicationName": "code-oss", "applicationName": "kylin-code",
"dataFolderName": ".vscode-oss", "dataFolderName": ".kylin-code",
"win32MutexName": "vscodeoss", "win32MutexName": "kylincode",
"licenseName": "MIT", "licenseName": "MIT",
"licenseUrl": "https://github.com/microsoft/vscode/blob/main/LICENSE.txt", "licenseUrl": "https://gitee.com/openkylin/kylin-code/blob/master/LICENSE.txt",
"serverLicenseUrl": "https://github.com/microsoft/vscode/blob/main/LICENSE.txt",
"serverGreeting": [], "serverGreeting": [],
"serverLicense": [], "serverLicense": [],
"serverLicensePrompt": "", "serverLicensePrompt": "",
"serverApplicationName": "code-server-oss", "serverApplicationName": "kylin-code-server",
"serverDataFolderName": ".vscode-server-oss", "serverDataFolderName": ".kylin-code-server",
"tunnelApplicationName": "code-tunnel-oss", "tunnelApplicationName": "kylin-tunnel-code",
"win32DirName": "Microsoft Code OSS", "win32DirName": "KylinIdeTeam Kylin Code",
"win32NameVersion": "Microsoft Code OSS", "win32NameVersion": "KylinIdeTeam Kylin Code",
"win32RegValueName": "CodeOSS", "win32RegValueName": "KylinCode",
"win32x64AppId": "{{D77B7E06-80BA-4137-BCF4-654B95CCEBC5}", "win32x64AppId": "{{D77B7E06-80BA-4137-BCF4-654B95CCEBC5}",
"win32arm64AppId": "{{D1ACE434-89C5-48D1-88D3-E2991DF85475}", "win32arm64AppId": "{{D1ACE434-89C5-48D1-88D3-E2991DF85475}",
"win32x64UserAppId": "{{CC6B787D-37A0-49E8-AE24-8559A032BE0C}", "win32x64UserAppId": "{{CC6B787D-37A0-49E8-AE24-8559A032BE0C}",
"win32arm64UserAppId": "{{3AEBF0C8-F733-4AD4-BADE-FDB816D53D7B}", "win32arm64UserAppId": "{{3AEBF0C8-F733-4AD4-BADE-FDB816D53D7B}",
"win32AppUserModelId": "Microsoft.CodeOSS", "win32AppUserModelId": "KylinIdeTeam.KylinCode",
"win32ShellNameShort": "C&ode - OSS", "win32ShellNameShort": "K&ylin-Code",
"win32TunnelServiceMutex": "vscodeoss-tunnelservice", "win32TunnelServiceMutex": "kylincode-tunnelservice",
"win32TunnelMutex": "vscodeoss-tunnel", "win32TunnelMutex": "kylincode-tunnel",
"darwinBundleIdentifier": "com.visualstudio.code.oss", "darwinBundleIdentifier": "KylinIdeTeam.KylinCode",
"linuxIconName": "code-oss", "linuxIconName": "KylinIdeTeam.KylinCode",
"licenseFileName": "LICENSE.txt", "licenseFileName": "LICENSE.txt",
"reportIssueUrl": "https://github.com/microsoft/vscode/issues/new",
"nodejsRepository": "https://nodejs.org", "nodejsRepository": "https://nodejs.org",
"urlProtocol": "code-oss", "urlProtocol": "kylin-code",
"webviewContentExternalBaseUrlTemplate": "https://{{uuid}}.vscode-cdn.net/insider/ef65ac1ba57f57f2a3961bfe94aa20481caca4c6/out/vs/workbench/contrib/webview/browser/pre/", "webviewContentExternalBaseUrlTemplate": "https://{{uuid}}.vscode-cdn.net/insider/ef65ac1ba57f57f2a3961bfe94aa20481caca4c6/out/vs/workbench/contrib/webview/browser/pre/",
"extensionEnabledApiProposals": {
"ms-vscode.vscode-selfhost-test-provider": [
"testObserver",
"testCoverage"
],
"ms-vscode.extension-test-runner": [
"testCoverage"
],
"VisualStudioExptTeam.vscodeintellicode-completions": [
"inlineCompletionsAdditions"
],
"ms-vsliveshare.vsliveshare": [
"contribMenuBarHome",
"contribShareMenu",
"contribStatusBarItems",
"diffCommand",
"documentFiltersExclusive",
"fileSearchProvider",
"findTextInFiles",
"notebookCellExecutionState",
"notebookLiveShare",
"terminalDimensions",
"terminalDataWriteEvent",
"textSearchProvider"
],
"ms-vscode.js-debug": [
"portsAttributes",
"findTextInFiles",
"workspaceTrust",
"tunnels"
],
"vscjava.vscode-java-test": [
"testCoverage"
],
"ms-python.python": [
"contribEditorContentMenu",
"quickPickSortByLabel",
"portsAttributes",
"handleIssueUri",
"testObserver",
"quickPickItemTooltip",
"terminalDataWriteEvent",
"terminalExecuteCommandEvent"
],
"ms-vscode.js-debug-nightly": [
"portsAttributes",
"findTextInFiles",
"workspaceTrust",
"tunnels"
],
"ms-vscode.lsif-browser": [
"documentFiltersExclusive"
],
"ms-vscode.vscode-speech": [
"speech"
],
"ms-python.gather": [
"notebookCellExecutionState"
],
"ms-python.vscode-pylance": [
"notebookCellExecutionState"
],
"ms-python.debugpy": [
"portsAttributes"
],
"ms-toolsai.jupyter-renderers": [
"contribNotebookStaticPreloads"
],
"ms-toolsai.jupyter": [
"notebookDeprecated",
"notebookMessaging",
"notebookMime",
"notebookCellExecutionState",
"portsAttributes",
"quickPickSortByLabel",
"notebookKernelSource",
"interactiveWindow",
"notebookControllerAffinityHidden",
"contribNotebookStaticPreloads",
"quickPickItemTooltip",
"notebookExecution",
"notebookVariableProvider"
],
"dbaeumer.vscode-eslint": [
"notebookCellExecutionState"
],
"ms-vscode.anycode": [
"extensionsAny"
],
"ms-vscode.cpptools": [
"terminalDataWriteEvent"
],
"redhat.java": [
"documentPaste"
],
"KylinIDETeam.js-debug": ["portsAttributes", "findTextInFiles", "workspaceTrust", "resolvers"],
"KylinIDETeam.python": ["quickPickSortByLabel", "testObserver", "notebookEditor"]
},
"builtInExtensions": [ "builtInExtensions": [
{ {
"name": "ms-vscode.js-debug-companion", "name": "ms-vscode.js-debug-companion",
@ -80,5 +176,135 @@
"publisherDisplayName": "Microsoft" "publisherDisplayName": "Microsoft"
} }
} }
] ],
"quality": "stable",
"extensionsGallery": {
"serviceUrl": "https://open-vsx.org/vscode/gallery",
"itemUrl": "https://open-vsx.org/vscode/item"
},
"linkProtectionTrustedDomains": [
"https://open-vsx.org"
],
"helpDocUrl":"https://gitee.com/openkylin/extensions-repo/blob/master/user-guide/%E7%9B%AE%E5%BD%95.md",
"updateCheckUrl":"https://kylinhorn.cn/updateCheck/kylincode",
"extensionsControlManifest":{
"malicious": [],
"deprecated": {
"ms-ceintl.vscode-language-pack-zh-hans": {
"disallowInstall": true,
"extension": {
"id": "KylinIdeTeam.vscode-language-pack-zh-hans",
"displayName": "Chinese (Simplified) (简体中文) Language Pack for Kylin-Code"
}
},
"zhanghua.vscodium-language-pack-zh-cn": {
"disallowInstall": true,
"extension": {
"id": "KylinIdeTeam.vscode-language-pack-zh-hans",
"displayName": "Chinese (Simplified) (简体中文) Language Pack for Kylin-Code"
}
},
"eamodio.gitlens": {
"disallowInstall": true,
"extension": {
"id": "KylinIdeTeam.gitlens",
"displayName": "Gitlens lower version for friendly licence"
}
}
},
"search": [
{
"query": "c",
"preferredResults": [
"KylinIdeTeam.vscode-clangd",
"KylinIdeTeam.deadlock-detect"
]
},
{
"query": "c++",
"preferredResults": [
"KylinIdeTeam.vscode-clangd",
"KylinIdeTeam.deadlock-detect"
]
},
{
"query": "java",
"preferredResults": [
"KylinIdeTeam.vscode-java-pack",
"KylinIdeTeam.java",
"KylinIdeTeam.vscode-maven",
"KylinIdeTeam.vscode-gradle",
"KylinIdeTeam.vscode-java-dependency",
"KylinIdeTeam.vscode-java-debug",
"KylinIdeTeam.vscode-java-test"
]
},
{
"query": "go",
"preferredResults": [
"KylinIdeTeam.go"
]
},
{
"query": "python",
"preferredResults": [
"KylinIdeTeam.python"
]
},
{
"query": "js",
"preferredResults": [
"KylinIDETeam.js-debug"
]
},
{
"query": "cmake",
"preferredResults": [
"KylinIdeTeam.cmake-intellisence"
]
},
{
"query": "project",
"preferredResults": [
"KylinIdeTeam.project-manager",
"KylinIdeTeam.vscode-java-dependency",
"KylinIdeTeam.vscode-maven"
]
},
{
"query": "debug",
"preferredResults": [
"KylinIdeTeam.debug",
"KylinIDETeam.js-debug",
"KylinIdeTeam.vscode-java-debug",
"KylinIdeTeam.historydebug"
]
},
{
"query": "remote",
"preferredResults": [
"xhafei.remote-dev"
]
},
{
"query": "depend",
"preferredResults": [
"KylinIdeTeam.extension-dependency",
"KylinIdeTeam.vscode-java-dependency"
]
},
{
"query": "extension",
"preferredResults": [
"KylinIdeTeam.extension-dependency"
]
},
{
"query": "extensions",
"preferredResults": [
"KylinIdeTeam.offline-extensions-manager"
]
}
]
}
} }

View File

@ -53,7 +53,7 @@ else
VSCODE_PATH="$(dirname "$(readlink -f "$0")")/.." VSCODE_PATH="$(dirname "$(readlink -f "$0")")/.."
else else
# else use the standard install location # else use the standard install location
VSCODE_PATH="/usr/share/@@APPNAME@@" VSCODE_PATH="/opt/apps/@@APPNAME@@"
fi fi
fi fi

View File

@ -1,5 +1,6 @@
[Desktop Entry] [Desktop Entry]
Name=@@NAME_LONG@@ - URL Handler Name=@@NAME_LONG@@ - URL Handler
Name[zh_CN]=@@NAME_LONG@@ - URL Handler
Comment=Code Editing. Redefined. Comment=Code Editing. Redefined.
GenericName=Text Editor GenericName=Text Editor
Exec=@@EXEC@@ --open-url %U Exec=@@EXEC@@ --open-url %U
@ -9,4 +10,4 @@ NoDisplay=true
StartupNotify=true StartupNotify=true
Categories=Utility;TextEditor;Development;IDE; Categories=Utility;TextEditor;Development;IDE;
MimeType=x-scheme-handler/@@URLPROTOCOL@@; MimeType=x-scheme-handler/@@URLPROTOCOL@@;
Keywords=vscode; Keywords=@@NAME_LONG@@;

View File

@ -4,15 +4,15 @@
<metadata_license>@@LICENSE@@</metadata_license> <metadata_license>@@LICENSE@@</metadata_license>
<project_license>@@LICENSE@@</project_license> <project_license>@@LICENSE@@</project_license>
<name>@@NAME_LONG@@</name> <name>@@NAME_LONG@@</name>
<url type="homepage">https://code.visualstudio.com</url> <url type="homepage">https://gitee.com/openkylin/kylin-code</url>
<summary>Visual Studio Code. Code editing. Redefined.</summary> <summary>Kylin Code. Code editing. Redefined.</summary>
<description> <description>
<p>Visual Studio Code is a new choice of tool that combines the simplicity of a code editor with what developers need for the core edit-build-debug cycle. See https://code.visualstudio.com/docs/setup/linux for installation instructions and FAQ.</p> <p>Kylin Code is a new choice of tool that combines the simplicity of a code editor with what developers need for the core edit-build-debug cycle. See https://gitee.com/openkylin/kylin-code/releases for installation instructions and FAQ.</p>
</description> </description>
<screenshots> <screenshots>
<screenshot type="default"> <screenshot type="default">
<image>https://code.visualstudio.com/home/home-screenshot-linux-lg.png</image> <image>https://gitee.com/openkylin/kylin-code/raw/master/imgs/home/home-screenshot-linux-lg.png</image>
<caption>Editing TypeScript and searching for extensions</caption> <caption>Editing C++, TypeScript and searching for extensions</caption>
</screenshot> </screenshot>
</screenshots> </screenshots>
</component> </component>

View File

@ -1,5 +1,6 @@
[Desktop Entry] [Desktop Entry]
Name=@@NAME_LONG@@ Name=@@NAME_LONG@@
Name[zh_CN]=@@NAME_LONG@@
Comment=Code Editing. Redefined. Comment=Code Editing. Redefined.
GenericName=Text Editor GenericName=Text Editor
Exec=@@EXEC@@ --unity-launch %F Exec=@@EXEC@@ --unity-launch %F
@ -10,7 +11,7 @@ StartupWMClass=@@NAME_SHORT@@
Categories=TextEditor;Development;IDE; Categories=TextEditor;Development;IDE;
MimeType=text/plain;inode/directory;application/x-@@NAME@@-workspace; MimeType=text/plain;inode/directory;application/x-@@NAME@@-workspace;
Actions=new-empty-window; Actions=new-empty-window;
Keywords=vscode; Keywords=@@NAME_LONG@@;
[Desktop Action new-empty-window] [Desktop Action new-empty-window]
Name=New Empty Window Name=New Empty Window

View File

@ -5,14 +5,14 @@ Depends: @@DEPENDS@@
Recommends: @@RECOMMENDS@@ Recommends: @@RECOMMENDS@@
Priority: optional Priority: optional
Architecture: @@ARCHITECTURE@@ Architecture: @@ARCHITECTURE@@
Maintainer: Microsoft Corporation <vscode-linux@microsoft.com> Maintainer: KylinIDETeam https://gitee.com/openkylin/kylin-code/contributors?ref=master
Homepage: https://code.visualstudio.com/ Homepage: https://gitee.com/openkylin/kylin-code
Installed-Size: @@INSTALLEDSIZE@@ Installed-Size: @@INSTALLEDSIZE@@
Provides: visual-studio-@@NAME@@ Provides: kylinideteam-@@NAME@@
Conflicts: visual-studio-@@NAME@@ Conflicts: kylinideteam-@@NAME@@
Replaces: visual-studio-@@NAME@@ Replaces: kylinideteam-@@NAME@@
Description: Code editing. Redefined. Description: Code editing. Redefined.
Visual Studio Code is a new choice of tool that combines the simplicity of Kylin Code is a new choice of tool that combines the simplicity of
a code editor with what developers need for the core edit-build-debug cycle. a code editor with what developers need for the core edit-build-debug cycle.
See https://code.visualstudio.com/docs/setup/linux for installation See https://gitee.com/openkylin/kylin-code/releases for installation
instructions and FAQ. instructions and FAQ.

View File

@ -5,7 +5,7 @@
# Symlink bin command to /usr/bin # Symlink bin command to /usr/bin
rm -f /usr/bin/@@NAME@@ rm -f /usr/bin/@@NAME@@
ln -s /usr/share/@@NAME@@/bin/@@NAME@@ /usr/bin/@@NAME@@ ln -s /opt/apps/@@NAME@@/bin/@@NAME@@ /usr/bin/@@NAME@@
# Register code in the alternatives system # Register code in the alternatives system
# Priority of 0 should never make code the default editor in auto mode as most # Priority of 0 should never make code the default editor in auto mode as most
@ -21,60 +21,3 @@ fi
if hash update-mime-database 2>/dev/null; then if hash update-mime-database 2>/dev/null; then
update-mime-database /usr/share/mime update-mime-database /usr/share/mime
fi fi
if [ "@@NAME@@" != "code-oss" ]; then
# Remove the legacy bin command if this is the stable build
if [ "@@NAME@@" = "code" ]; then
rm -f /usr/local/bin/code
fi
# Register apt repository
eval $(apt-config shell APT_SOURCE_PARTS Dir::Etc::sourceparts/d)
CODE_SOURCE_PART=${APT_SOURCE_PARTS}vscode.list
eval $(apt-config shell APT_TRUSTED_PARTS Dir::Etc::trustedparts/d)
CODE_TRUSTED_PART=${APT_TRUSTED_PARTS}microsoft.gpg
# Install repository source list
WRITE_SOURCE=0
if [ ! -f $CODE_SOURCE_PART ] && [ ! -f /etc/rpi-issue ]; then
# Write source list if it does not exist and we're not running on Raspberry Pi OS
WRITE_SOURCE=1
elif grep -Eq "http:\/\/packages\.microsoft\.com\/repos\/vscode" $CODE_SOURCE_PART; then
# Migrate from old repository
WRITE_SOURCE=1
elif grep -q "# disabled on upgrade to" $CODE_SOURCE_PART; then
# Write source list if it was disabled by OS upgrade
WRITE_SOURCE=1
fi
if [ "$WRITE_SOURCE" -eq "1" ]; then
echo "### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main" > $CODE_SOURCE_PART
# Sourced from https://packages.microsoft.com/keys/microsoft.asc
if [ ! -f $CODE_TRUSTED_PART ]; then
echo "-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.7 (GNU/Linux)
mQENBFYxWIwBCADAKoZhZlJxGNGWzqV+1OG1xiQeoowKhssGAKvd+buXCGISZJwT
LXZqIcIiLP7pqdcZWtE9bSc7yBY2MalDp9Liu0KekywQ6VVX1T72NPf5Ev6x6DLV
7aVWsCzUAF+eb7DC9fPuFLEdxmOEYoPjzrQ7cCnSV4JQxAqhU4T6OjbvRazGl3ag
OeizPXmRljMtUUttHQZnRhtlzkmwIrUivbfFPD+fEoHJ1+uIdfOzZX8/oKHKLe2j
H632kvsNzJFlROVvGLYAk2WRcLu+RjjggixhwiB+Mu/A8Tf4V6b+YppS44q8EvVr
M+QvY7LNSOffSO6Slsy9oisGTdfE39nC7pVRABEBAAG0N01pY3Jvc29mdCAoUmVs
ZWFzZSBzaWduaW5nKSA8Z3Bnc2VjdXJpdHlAbWljcm9zb2Z0LmNvbT6JATUEEwEC
AB8FAlYxWIwCGwMGCwkIBwMCBBUCCAMDFgIBAh4BAheAAAoJEOs+lK2+EinPGpsH
/32vKy29Hg51H9dfFJMx0/a/F+5vKeCeVqimvyTM04C+XENNuSbYZ3eRPHGHFLqe
MNGxsfb7C7ZxEeW7J/vSzRgHxm7ZvESisUYRFq2sgkJ+HFERNrqfci45bdhmrUsy
7SWw9ybxdFOkuQoyKD3tBmiGfONQMlBaOMWdAsic965rvJsd5zYaZZFI1UwTkFXV
KJt3bp3Ngn1vEYXwijGTa+FXz6GLHueJwF0I7ug34DgUkAFvAs8Hacr2DRYxL5RJ
XdNgj4Jd2/g6T9InmWT0hASljur+dJnzNiNCkbn9KbX7J/qK1IbR8y560yRmFsU+
NdCFTW7wY0Fb1fWJ+/KTsC4=
=J6gs
-----END PGP PUBLIC KEY BLOCK-----
" | gpg --dearmor > $CODE_TRUSTED_PART
fi
fi
fi

View File

@ -14,3 +14,10 @@ fi
if hash update-mime-database 2>/dev/null; then if hash update-mime-database 2>/dev/null; then
update-mime-database /usr/share/mime update-mime-database /usr/share/mime
fi fi
case "$1" in
purge|P)
rm -rf /home/${SUDO_USER}/.config/Kylin-Code
rm -rf /home/${SUDO_USER}/.kylin-code
;;
esac

View File

@ -3,10 +3,10 @@ Version: @@VERSION@@
Release: @@RELEASE@@.el7 Release: @@RELEASE@@.el7
Summary: Code editing. Redefined. Summary: Code editing. Redefined.
Group: Development/Tools Group: Development/Tools
Vendor: Microsoft Corporation Vendor: KylinIdeTeam
Packager: Visual Studio Code Team <vscode-linux@microsoft.com> Packager: KylinIDETeam https://gitee.com/openkylin/kylin-code/contributors?ref=master
License: @@LICENSE@@ License: @@LICENSE@@
URL: https://code.visualstudio.com/ URL: https://gitee.com/openkylin/kylin-code
Icon: @@NAME@@.xpm Icon: @@NAME@@.xpm
Requires: @@DEPENDENCIES@@ Requires: @@DEPENDENCIES@@
AutoReq: 0 AutoReq: 0
@ -14,7 +14,7 @@ AutoReq: 0
%global __provides_exclude_from ^%{_datadir}/%{name}/.*\\.so.*$ %global __provides_exclude_from ^%{_datadir}/%{name}/.*\\.so.*$
%description %description
Visual Studio Code is a new choice of tool that combines the simplicity of a code editor with what developers need for the core edit-build-debug cycle. See https://code.visualstudio.com/docs/setup/linux for installation instructions and FAQ. Kylin Code is a new choice of tool that combines the simplicity of a code editor with what developers need for the core edit-build-debug cycle. See https://code.visualstudio.com/docs/setup/linux for installation instructions and FAQ.
# Don't generate build_id links to prevent conflicts when installing multiple # Don't generate build_id links to prevent conflicts when installing multiple
# versions of VS Code alongside each other (e.g. `code` and `code-insiders`) # versions of VS Code alongside each other (e.g. `code` and `code-insiders`)
@ -45,8 +45,8 @@ cp usr/share/zsh/site-functions/_%{name} %{buildroot}%{_datadir}/zsh/site-functi
%post %post
# Remove the legacy bin command if this is the stable build # Remove the legacy bin command if this is the stable build
if [ "%{name}" = "code" ]; then if [ "%{name}" = "Kylin-Code" ]; then
rm -f /usr/local/bin/code rm -f /usr/local/bin/kylin-code
fi fi
# Register yum repository # Register yum repository
@ -68,6 +68,11 @@ update-mime-database %{_datadir}/mime &> /dev/null || :
%postun %postun
# Uninstall the desktop entry # Uninstall the desktop entry
update-desktop-database &> /dev/null || : update-desktop-database &> /dev/null || :
if [ $1 = 0 ]; then
rm -f /usr/bin/@@NAME@@
rm -rf /home/${SUDO_USER}/.config/Kylin-Code
rm -rf /home/${SUDO_USER}/.kylin-code
fi
# Update mimetype database for removed workspace mimetype # Update mimetype database for removed workspace mimetype
update-mime-database %{_datadir}/mime &> /dev/null || : update-mime-database %{_datadir}/mime &> /dev/null || :

View File

@ -2,7 +2,7 @@ name: @@NAME@@
version: '@@VERSION@@' version: '@@VERSION@@'
summary: Code editing. Redefined. summary: Code editing. Redefined.
description: | description: |
Visual Studio Code is a new choice of tool that combines the Kylin-Code is a new choice of tool that combines the
simplicity of a code editor with what developers need for the core simplicity of a code editor with what developers need for the core
edit-build-debug cycle. edit-build-debug cycle.

View File

@ -1,6 +1,6 @@
{ {
"name": "Code - OSS", "name": "Kylin-Code",
"short_name": "Code- OSS", "short_name": "Kylin-Code",
"start_url": "/", "start_url": "/",
"lang": "en-US", "lang": "en-US",
"display_override": [ "display_override": [

View File

@ -4,6 +4,6 @@
ShowNameOnSquare150x150Logo="on" ShowNameOnSquare150x150Logo="on"
Square150x150Logo="resources\app\resources\win32\code_150x150.png" Square150x150Logo="resources\app\resources\win32\code_150x150.png"
Square70x70Logo="resources\app\resources\win32\code_70x70.png" Square70x70Logo="resources\app\resources\win32\code_70x70.png"
ForegroundText="light" ForegroundText="light"
ShortDisplayName="Code - OSS" /> ShortDisplayName="Kylin-Code" />
</Application> </Application>

View File

@ -52,13 +52,13 @@ function code-wsl()
export DISPLAY="$HOST_IP:0" export DISPLAY="$HOST_IP:0"
# in a wsl shell # in a wsl shell
ELECTRON="$ROOT/.build/electron/Code - OSS.exe" ELECTRON="$ROOT/.build/electron/Kylin-Code.exe"
if [ -f "$ELECTRON" ]; then if [ -f "$ELECTRON" ]; then
local CWD=$(pwd) local CWD=$(pwd)
cd $ROOT cd $ROOT
export WSLENV=ELECTRON_RUN_AS_NODE/w:VSCODE_DEV/w:$WSLENV export WSLENV=ELECTRON_RUN_AS_NODE/w:VSCODE_DEV/w:$WSLENV
local WSL_EXT_ID="ms-vscode-remote.remote-wsl" local WSL_EXT_ID="ms-vscode-remote.remote-wsl"
local WSL_EXT_WLOC=$(echo "" | VSCODE_DEV=1 ELECTRON_RUN_AS_NODE=1 "$ROOT/.build/electron/Code - OSS.exe" "out/cli.js" --ms-enable-electron-run-as-node --locate-extension $WSL_EXT_ID) local WSL_EXT_WLOC=$(echo "" | VSCODE_DEV=1 ELECTRON_RUN_AS_NODE=1 "$ROOT/.build/electron/Kylin-Code.exe" "out/cli.js" --locate-extension $WSL_EXT_ID)
cd $CWD cd $CWD
if [ -n "$WSL_EXT_WLOC" ]; then if [ -n "$WSL_EXT_WLOC" ]; then
# replace \r\n with \n in WSL_EXT_WLOC # replace \r\n with \n in WSL_EXT_WLOC

View File

@ -986,7 +986,7 @@ export class NativeExtensionsScannerService extends AbstractExtensionsScannerSer
super( super(
systemExtensionsLocation, systemExtensionsLocation,
userExtensionsLocation, userExtensionsLocation,
joinPath(userHome, '.vscode-oss-dev', 'extensions', 'control.json'), joinPath(userHome, '.kylin-code-dev', 'extensions', 'control.json'),
currentProfile, currentProfile,
userDataProfilesService, extensionsProfileScannerService, fileService, logService, environmentService, productService, uriIdentityService, instantiationService); userDataProfilesService, extensionsProfileScannerService, fileService, logService, environmentService, productService, uriIdentityService, instantiationService);
this.translationsPromise = (async () => { this.translationsPromise = (async () => {

View File

@ -42,7 +42,7 @@ class ExtensionsScannerService extends AbstractExtensionsScannerService implemen
super( super(
URI.file(nativeEnvironmentService.builtinExtensionsPath), URI.file(nativeEnvironmentService.builtinExtensionsPath),
URI.file(nativeEnvironmentService.extensionsPath), URI.file(nativeEnvironmentService.extensionsPath),
joinPath(nativeEnvironmentService.userHome, '.vscode-oss-dev', 'extensions', 'control.json'), joinPath(nativeEnvironmentService.userHome, '.kylin-code-dev', 'extensions', 'control.json'),
userDataProfilesService.defaultProfile, userDataProfilesService.defaultProfile,
userDataProfilesService, extensionsProfileScannerService, fileService, logService, nativeEnvironmentService, productService, uriIdentityService, instantiationService); userDataProfilesService, extensionsProfileScannerService, fileService, logService, nativeEnvironmentService, productService, uriIdentityService, instantiationService);
} }
@ -272,7 +272,7 @@ suite('NativeExtensionsScanerService Test', () => {
await anExtension(anExtensionManifest({ 'name': 'name2', 'publisher': 'pub' }), joinPath(ROOT, 'additional')); await anExtension(anExtensionManifest({ 'name': 'name2', 'publisher': 'pub' }), joinPath(ROOT, 'additional'));
const extensionLocation = await anExtension(anExtensionManifest({ 'name': 'name', 'publisher': 'pub' }), joinPath(ROOT, 'additional')); const extensionLocation = await anExtension(anExtensionManifest({ 'name': 'name', 'publisher': 'pub' }), joinPath(ROOT, 'additional'));
await aSystemExtension(anExtensionManifest({ 'name': 'name', 'publisher': 'pub', version: '1.0.1' })); await aSystemExtension(anExtensionManifest({ 'name': 'name', 'publisher': 'pub', version: '1.0.1' }));
await instantiationService.get(IFileService).writeFile(joinPath(instantiationService.get(INativeEnvironmentService).userHome, '.vscode-oss-dev', 'extensions', 'control.json'), VSBuffer.fromString(JSON.stringify({ 'pub.name2': 'disabled', 'pub.name': extensionLocation.fsPath }))); await instantiationService.get(IFileService).writeFile(joinPath(instantiationService.get(INativeEnvironmentService).userHome, '.kylin-code-dev', 'extensions', 'control.json'), VSBuffer.fromString(JSON.stringify({ 'pub.name2': 'disabled', 'pub.name': extensionLocation.fsPath })));
const testObject: IExtensionsScannerService = disposables.add(instantiationService.createInstance(ExtensionsScannerService)); const testObject: IExtensionsScannerService = disposables.add(instantiationService.createInstance(ExtensionsScannerService));
const actual = await testObject.scanSystemExtensions({ checkControlFile: true }); const actual = await testObject.scanSystemExtensions({ checkControlFile: true });

View File

@ -382,7 +382,7 @@ export class NativeHostMainService extends Disposable implements INativeHostMain
} }
private async getShellCommandLink(): Promise<{ readonly source: string; readonly target: string }> { private async getShellCommandLink(): Promise<{ readonly source: string; readonly target: string }> {
const target = resolve(this.environmentMainService.appRoot, 'bin', 'code'); const target = resolve(this.environmentMainService.appRoot, 'bin', this.productService.applicationName);
const source = `/usr/local/bin/${this.productService.applicationName}`; const source = `/usr/local/bin/${this.productService.applicationName}`;
// Ensure source exists // Ensure source exists
@ -562,7 +562,7 @@ export class NativeHostMainService extends Disposable implements INativeHostMain
// macOS // macOS
if (this.environmentMainService.isBuilt) { if (this.environmentMainService.isBuilt) {
return join(this.environmentMainService.appRoot, 'bin', 'code'); return join(this.environmentMainService.appRoot, 'bin', `${this.productService.applicationName}`);
} }
return join(this.environmentMainService.appRoot, 'scripts', 'code-cli.sh'); return join(this.environmentMainService.appRoot, 'scripts', 'code-cli.sh');

View File

@ -59,15 +59,15 @@ else {
if (Object.keys(product).length === 0) { if (Object.keys(product).length === 0) {
Object.assign(product, { Object.assign(product, {
version: '1.82.0-dev', version: '1.82.0-dev',
nameShort: 'Code - OSS Dev', nameShort: 'Kylin-Code Dev',
nameLong: 'Code - OSS Dev', nameLong: 'Kylin-Code Dev',
applicationName: 'code-oss', applicationName: 'kylin-code',
dataFolderName: '.vscode-oss', dataFolderName: '.kylin-code',
urlProtocol: 'code-oss', urlProtocol: 'kylin-code',
reportIssueUrl: 'https://github.com/microsoft/vscode/issues/new', reportIssueUrl: 'https://gitee.com/openkylin/kylin-code/issues',
licenseName: 'MIT', licenseName: 'MIT',
licenseUrl: 'https://github.com/microsoft/vscode/blob/main/LICENSE.txt', licenseUrl: 'https://gitee.com/openkylin/kylin-code/blob/master/LICENSE.txt',
serverLicenseUrl: 'https://github.com/microsoft/vscode/blob/main/LICENSE.txt' serverLicenseUrl: 'https://gitee.com/openkylin/kylin-code/blob/master/LICENSE.txt'
}); });
} }
} }

View File

@ -125,7 +125,7 @@ suite('Windows State Storing', () => {
"id": "53b714b46ef1a2d4346568b4f591028c", "id": "53b714b46ef1a2d4346568b4f591028c",
"configURIPath": "file:///home/user/workspaces/testing/custom.code-workspace" "configURIPath": "file:///home/user/workspaces/testing/custom.code-workspace"
}, },
"backupPath": "/home/user/.config/code-oss-dev/Backups/53b714b46ef1a2d4346568b4f591028c", "backupPath": "/home/user/.config/kylin-code-dev/Backups/53b714b46ef1a2d4346568b4f591028c",
"uiState": { "uiState": {
"mode": 0, "mode": 0,
"x": 0, "x": 0,
@ -140,7 +140,7 @@ suite('Windows State Storing', () => {
let expected: IWindowsState = { let expected: IWindowsState = {
openedWindows: [], openedWindows: [],
lastActiveWindow: { lastActiveWindow: {
backupPath: '/home/user/.config/code-oss-dev/Backups/53b714b46ef1a2d4346568b4f591028c', backupPath: '/home/user/.config/kylin-code-dev/Backups/53b714b46ef1a2d4346568b4f591028c',
uiState: { mode: WindowMode.Maximized, x: 0, y: 27, width: 2560, height: 1364 }, uiState: { mode: WindowMode.Maximized, x: 0, y: 27, width: 2560, height: 1364 },
workspace: { id: '53b714b46ef1a2d4346568b4f591028c', configPath: URI.parse('file:///home/user/workspaces/testing/custom.code-workspace') } workspace: { id: '53b714b46ef1a2d4346568b4f591028c', configPath: URI.parse('file:///home/user/workspaces/testing/custom.code-workspace') }
} }
@ -152,7 +152,7 @@ suite('Windows State Storing', () => {
"openedWindows": [], "openedWindows": [],
"lastActiveWindow": { "lastActiveWindow": {
"folder": "file:///home/user/workspaces/testing/folding", "folder": "file:///home/user/workspaces/testing/folding",
"backupPath": "/home/user/.config/code-oss-dev/Backups/1daac1621c6c06f9e916ac8062e5a1b5", "backupPath": "/home/user/.config/kylin-code-dev/Backups/1daac1621c6c06f9e916ac8062e5a1b5",
"uiState": { "uiState": {
"mode": 1, "mode": 1,
"x": 625, "x": 625,
@ -167,7 +167,7 @@ suite('Windows State Storing', () => {
expected = { expected = {
openedWindows: [], openedWindows: [],
lastActiveWindow: { lastActiveWindow: {
backupPath: '/home/user/.config/code-oss-dev/Backups/1daac1621c6c06f9e916ac8062e5a1b5', backupPath: '/home/user/.config/kylin-code-dev/Backups/1daac1621c6c06f9e916ac8062e5a1b5',
uiState: { mode: WindowMode.Normal, x: 625, y: 263, width: 1718, height: 953 }, uiState: { mode: WindowMode.Normal, x: 625, y: 263, width: 1718, height: 953 },
folderUri: URI.parse('file:///home/user/workspaces/testing/folding') folderUri: URI.parse('file:///home/user/workspaces/testing/folding')
} }
@ -178,7 +178,7 @@ suite('Windows State Storing', () => {
"openedWindows": [ "openedWindows": [
], ],
"lastActiveWindow": { "lastActiveWindow": {
"backupPath": "/home/user/.config/code-oss-dev/Backups/1549539668998", "backupPath": "/home/user/.config/kylin-code-dev/Backups/1549539668998",
"uiState": { "uiState": {
"mode": 1, "mode": 1,
"x": 768, "x": 768,
@ -193,7 +193,7 @@ suite('Windows State Storing', () => {
expected = { expected = {
openedWindows: [], openedWindows: [],
lastActiveWindow: { lastActiveWindow: {
backupPath: '/home/user/.config/code-oss-dev/Backups/1549539668998', backupPath: '/home/user/.config/kylin-code-dev/Backups/1549539668998',
uiState: { mode: WindowMode.Normal, x: 768, y: 336, width: 1024, height: 768 } uiState: { mode: WindowMode.Normal, x: 768, y: 336, width: 1024, height: 768 }
} }
}; };

View File

@ -126,7 +126,7 @@ suite('History Storage', () => {
"label": "abc" "label": "abc"
}, },
{ {
"fileUri": "file:///home/user/.config/code-oss-dev/storage.json", "fileUri": "file:///home/user/.config/kylin-code-dev/storage.json",
"label": "def" "label": "def"
} }
] ]
@ -134,7 +134,7 @@ suite('History Storage', () => {
const windowsState = restoreRecentlyOpened(JSON.parse(v1_55), new NullLogService()); const windowsState = restoreRecentlyOpened(JSON.parse(v1_55), new NullLogService());
const expected: IRecentlyOpened = { const expected: IRecentlyOpened = {
files: [{ label: 'def', fileUri: URI.parse('file:///home/user/.config/code-oss-dev/storage.json') }], files: [{ label: 'def', fileUri: URI.parse('file:///home/user/.config/kylin-code-dev/storage.json') }],
workspaces: [ workspaces: [
{ folderUri: URI.parse('foo://bar/23/43'), remoteAuthority: 'test+test' }, { folderUri: URI.parse('foo://bar/23/43'), remoteAuthority: 'test+test' },
{ workspace: { id: '53b714b46ef1a2d4346568b4f591028c', configPath: URI.parse('file:///home/user/workspaces/testing/custom.code-workspace') } }, { workspace: { id: '53b714b46ef1a2d4346568b4f591028c', configPath: URI.parse('file:///home/user/workspaces/testing/custom.code-workspace') } },

View File

@ -31,7 +31,7 @@ export class ExtensionsScannerService extends AbstractExtensionsScannerService i
super( super(
URI.file(nativeEnvironmentService.builtinExtensionsPath), URI.file(nativeEnvironmentService.builtinExtensionsPath),
URI.file(nativeEnvironmentService.extensionsPath), URI.file(nativeEnvironmentService.extensionsPath),
joinPath(nativeEnvironmentService.userHome, '.vscode-oss-dev', 'extensions', 'control.json'), joinPath(nativeEnvironmentService.userHome, '.kylin-code-dev', 'extensions', 'control.json'),
userDataProfilesService.defaultProfile, userDataProfilesService.defaultProfile,
userDataProfilesService, extensionsProfileScannerService, fileService, logService, nativeEnvironmentService, productService, uriIdentityService, instantiationService); userDataProfilesService, extensionsProfileScannerService, fileService, logService, nativeEnvironmentService, productService, uriIdentityService, instantiationService);
} }

View File

@ -1,5 +1,5 @@
{ {
"name": "code-oss-dev-integration-test", "name": "kylin-code-dev-integration-test",
"version": "0.1.0", "version": "0.1.0",
"license": "MIT", "license": "MIT",
"main": "./index.js", "main": "./index.js",

View File

@ -1,5 +1,5 @@
{ {
"name": "code-oss-dev-smoke-test", "name": "kylin-code-dev-smoke-test",
"version": "0.1.0", "version": "0.1.0",
"license": "MIT", "license": "MIT",
"main": "./src/main.js", "main": "./src/main.js",

View File

@ -200,11 +200,11 @@ app.on('ready', () => {
return { return {
product: { product: {
version: '1.x.y', version: '1.x.y',
nameShort: 'Code - OSS Dev', nameShort: 'Kylin-Code Dev',
nameLong: 'Code - OSS Dev', nameLong: 'Kylin-Code Dev',
applicationName: 'code-oss', applicationName: 'kylin-code',
dataFolderName: '.vscode-oss', dataFolderName: '.kylin-code',
urlProtocol: 'code-oss', urlProtocol: 'kylin-code',
} }
}; };
}); });