Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
9aab28da
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9aab28da
编写于
9月 11, 2019
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
web - self fullfilling prophecy
上级
dd7daae7
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
9 addition
and
19 deletion
+9
-19
src/vs/code/browser/workbench/workbench-dev.html
src/vs/code/browser/workbench/workbench-dev.html
+2
-4
src/vs/code/browser/workbench/workbench.html
src/vs/code/browser/workbench/workbench.html
+1
-7
src/vs/code/browser/workbench/workbench.ts
src/vs/code/browser/workbench/workbench.ts
+6
-8
未找到文件。
src/vs/code/browser/workbench/workbench-dev.html
浏览文件 @
9aab28da
...
...
@@ -14,7 +14,7 @@
default-src 'self';
img-src 'self' https: data: blob:;
media-src 'none';
script-src 'self' https://az416426.vo.msecnd.net 'unsafe-eval' https: 'sha256-4DqvCTjCHj2KW4QxC/Yt6uBwMRyYiEg7kOoykSEkonQ=' 'sha256-
4i4ZKOTzR9VPdhew0hOqnhvy09L6eRM2iyzJlc5loi4
=';
script-src 'self' https://az416426.vo.msecnd.net 'unsafe-eval' https: 'sha256-4DqvCTjCHj2KW4QxC/Yt6uBwMRyYiEg7kOoykSEkonQ=' 'sha256-
meDZW3XhN5JmdjFUrWGhTouRKBiWYtXHltaKnqn/WMo
=';
child-src 'self';
frame-src 'self' {{WEBVIEW_ENDPOINT}} https://*.vscode-webview-test.com;
worker-src 'self';
...
...
@@ -57,8 +57,6 @@
<script
src=
"./static/out/vs/loader.js"
></script>
<script>
// NOTE: Changes to inline scripts require update of content security policy
require
([
'
vs/code/browser/workbench/workbench
'
],
function
(
web
)
{
web
.
main
();
});
require
([
'
vs/code/browser/workbench/workbench
'
],
function
()
{});
</script>
</html>
src/vs/code/browser/workbench/workbench.html
浏览文件 @
9aab28da
...
...
@@ -14,7 +14,7 @@
default-src 'self';
img-src 'self' https: data: blob:;
media-src 'none';
script-src 'self' https://az416426.vo.msecnd.net 'unsafe-eval' https: 'sha256-4DqvCTjCHj2KW4QxC/Yt6uBwMRyYiEg7kOoykSEkonQ='
'sha256-4i4ZKOTzR9VPdhew0hOqnhvy09L6eRM2iyzJlc5loi4='
;
script-src 'self' https://az416426.vo.msecnd.net 'unsafe-eval' https: 'sha256-4DqvCTjCHj2KW4QxC/Yt6uBwMRyYiEg7kOoykSEkonQ=';
child-src 'self';
frame-src 'self' {{WEBVIEW_ENDPOINT}} https://*.vscode-webview-test.com;
worker-src 'self';
...
...
@@ -63,10 +63,4 @@
<script
src=
"./static/out/vs/workbench/workbench.web.api.nls.js"
></script>
<script
src=
"./static/out/vs/workbench/workbench.web.api.js"
></script>
<script
src=
"./static/out/vs/code/browser/workbench/workbench.js"
></script>
<script>
// NOTE: Changes to inline scripts require update of content security policy
require
([
'
vs/code/browser/workbench/workbench
'
],
function
(
web
)
{
web
.
main
();
});
</script>
</html>
src/vs/code/browser/workbench/workbench.ts
浏览文件 @
9aab28da
...
...
@@ -14,14 +14,6 @@ import { Disposable } from 'vs/base/common/lifecycle';
import
{
request
}
from
'
vs/base/parts/request/browser/request
'
;
import
{
ICredentialsProvider
}
from
'
vs/workbench/services/credentials/browser/credentialsService
'
;
export
function
main
():
void
{
const
options
:
IWorkbenchConstructionOptions
=
JSON
.
parse
(
document
.
getElementById
(
'
vscode-workbench-web-configuration
'
)
!
.
getAttribute
(
'
data-settings
'
)
!
);
options
.
urlCallbackProvider
=
new
PollingURLCallbackProvider
();
options
.
credentialsProvider
=
new
LocalStorageCredentialsProvider
();
create
(
document
.
body
,
options
);
}
interface
ICredential
{
service
:
string
;
account
:
string
;
...
...
@@ -208,3 +200,9 @@ class PollingURLCallbackProvider extends Disposable implements IURLCallbackProvi
return
URI
.
parse
(
window
.
location
.
href
).
with
({
path
,
query
});
}
}
const
options
:
IWorkbenchConstructionOptions
=
JSON
.
parse
(
document
.
getElementById
(
'
vscode-workbench-web-configuration
'
)
!
.
getAttribute
(
'
data-settings
'
)
!
);
options
.
urlCallbackProvider
=
new
PollingURLCallbackProvider
();
options
.
credentialsProvider
=
new
LocalStorageCredentialsProvider
();
create
(
document
.
body
,
options
);
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录