Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
彭彦祖
code-server
提交
4cf81d88
C
code-server
项目概览
彭彦祖
/
code-server
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
code-server
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
4cf81d88
编写于
6月 04, 2020
作者:
A
Anmol Sethi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Always create globalStorageHome
Closes #1693
上级
79d1e179
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
17 addition
and
13 deletion
+17
-13
ci/dev/vscode.patch
ci/dev/vscode.patch
+17
-13
未找到文件。
ci/dev/vscode.patch
浏览文件 @
4cf81d88
...
...
@@ -212,7 +212,7 @@ index 0000000000..0170b47241
+ common.minifyTask("out-vscode")
+));
diff --git a/package.json b/package.json
index
4c7342cbd8..4c287f6c1a
100644
index
d150d539ae..33078416d9
100644
--- a/package.json
+++ b/package.json
@@ -37,6 +37,9 @@
...
...
@@ -226,7 +226,7 @@ index 4c7342cbd8..4c287f6c1a 100644
"chokidar": "3.2.3",
"graceful-fs": "4.2.3",
diff --git a/product.json b/product.json
index
91b3b92678..f76f2c154
8 100644
index
335caa71f6..47607a3eb
8 100644
--- a/product.json
+++ b/product.json
@@ -18,7 +18,7 @@
...
...
@@ -2532,12 +2532,13 @@ index 0000000000..3c74512192
+}
diff --git a/src/vs/server/node/server.ts b/src/vs/server/node/server.ts
new file mode 100644
index 0000000000..8
abb9a8e31
index 0000000000..8
b82854426
--- /dev/null
+++ b/src/vs/server/node/server.ts
@@ -0,0 +1,27
3
@@
@@ -0,0 +1,27
7
@@
+import * as net from 'net';
+import * as path from 'path';
+import * as fs from 'fs';
+import { Emitter } from 'vs/base/common/event';
+import { Schemas } from 'vs/base/common/network';
+import { URI } from 'vs/base/common/uri';
...
...
@@ -2737,6 +2738,9 @@ index 0000000000..8abb9a8e31
+
+ private async initializeServices(args: ParsedArgs): Promise<void> {
+ const environmentService = new EnvironmentService(args, process.execPath);
+ // https://github.com/cdr/code-server/issues/1693
+ fs.mkdirSync(environmentService.globalStorageHome, { recursive: true });
+
+ const logService = new SpdLogService(RemoteExtensionLogFileName, environmentService.logsPath, getLogLevel(environmentService));
+ const fileService = new FileService(logService);
+ fileService.registerProvider(Schemas.file, new DiskFileSystemProvider(logService));
...
...
@@ -2841,7 +2845,7 @@ index 3f2de2c738..a967d8df69 100644
import './mainThreadAuthentication';
import './mainThreadTimeline';
diff --git a/src/vs/workbench/api/common/extHost.api.impl.ts b/src/vs/workbench/api/common/extHost.api.impl.ts
index
db72957372..4514a56754
100644
index
260b6468e9..882d3e442f
100644
--- a/src/vs/workbench/api/common/extHost.api.impl.ts
+++ b/src/vs/workbench/api/common/extHost.api.impl.ts
@@ -68,6 +68,7 @@
import { IURITransformerService } from 'vs/workbench/api/common/extHostUriTransf
...
...
@@ -2869,7 +2873,7 @@ index db72957372..4514a56754 100644
// automatically create and register addressable instances
diff --git a/src/vs/workbench/api/common/extHost.protocol.ts b/src/vs/workbench/api/common/extHost.protocol.ts
index
c6b3c31999..08e413e7d1
100644
index
7e1233484e..0f36de9496
100644
--- a/src/vs/workbench/api/common/extHost.protocol.ts
+++ b/src/vs/workbench/api/common/extHost.protocol.ts
@@ -748,6 +748,16 @@
export interface MainThreadLabelServiceShape extends IDisposable {
...
...
@@ -3184,10 +3188,10 @@ index 5ea3fd924b..de61b7fd17 100644
.scm-viewlet .monaco-list .monaco-list-row .resource-group > .actions,
.scm-viewlet .monaco-list .monaco-list-row .resource > .name > .monaco-icon-label > .actions {
diff --git a/src/vs/workbench/contrib/webview/browser/pre/main.js b/src/vs/workbench/contrib/webview/browser/pre/main.js
index
f2ca5011dd..4683e80a6
8 100644
index
e21d86575c..22aa99c0f
8 100644
--- a/src/vs/workbench/contrib/webview/browser/pre/main.js
+++ b/src/vs/workbench/contrib/webview/browser/pre/main.js
@@ -3
64,7 +364
,8 @@
@@ -3
51,7 +351
,8 @@
if (data.endpoint) {
try {
const endpointUrl = new URL(data.endpoint);
...
...
@@ -3478,7 +3482,7 @@ index 2fda5eddd8..721cfdfd3e 100644
import 'vs/workbench/services/credentials/browser/credentialsService';
import 'vs/workbench/services/url/browser/urlService';
diff --git a/yarn.lock b/yarn.lock
index
458909e2b2..68f1a7e609
100644
index
1bc94693ea..afd34e6b80
100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -140,6 +140,23 @@
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录