Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
徽霖
Vscode
提交
7c1c26a3
V
Vscode
项目概览
徽霖
/
Vscode
通知
9
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
Vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7c1c26a3
编写于
4月 08, 2016
作者:
A
Alex Dima
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixes #4942: Tweak typescript bundling definitions
上级
2395a89a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
27 addition
and
31 deletion
+27
-31
build/gulpfile.editor.js
build/gulpfile.editor.js
+0
-1
src/vs/languages/buildfile-editor-languages.js
src/vs/languages/buildfile-editor-languages.js
+13
-9
src/vs/languages/typescript/common/mode.ts
src/vs/languages/typescript/common/mode.ts
+14
-21
未找到文件。
build/gulpfile.editor.js
浏览文件 @
7c1c26a3
...
...
@@ -28,7 +28,6 @@ var editorResources = [
'
out-build/vs/{base,editor}/**/*.{svg,png}
'
,
'
out-build/vs/base/worker/workerMainCompatibility.html
'
,
'
out-build/vs/base/worker/workerMain.{js,js.map}
'
,
'
out-build/vs/languages/typescript/common/lib/lib.{d.ts,es6.d.ts}
'
,
'
!out-build/vs/workbench/**
'
,
'
!**/test/**
'
];
...
...
src/vs/languages/buildfile-editor-languages.js
浏览文件 @
7c1c26a3
...
...
@@ -32,6 +32,7 @@ var EntryPoint = (function() {
};
return
EntryPoint
;
})();
exports
.
collectModules
=
function
(
args
)
{
var
result
=
[];
...
...
@@ -45,17 +46,20 @@ exports.collectModules = function(args) {
// ---- typescript & javascript -----------------
common
.
define
(
'
vs/languages/typescript/common/lib/typescriptServices
'
);
common
.
define
(
'
vs/languages/typescript/common/typescript
'
,
'
vs/languages/typescript/common/lib/typescriptServices
'
);
result
.
push
({
name
:
'
vs/languages/typescript/common/lib/typescriptServices
'
,
exclude
:
[
'
vs/css
'
,
'
vs/nls
'
,
'
vs/text
'
]
});
var
EXCLUDES
=
[
'
vs/languages/typescript/common/lib/typescriptServices
'
,
'
vs/languages/typescript/common/typescript
'
];
common
.
define
(
'
vs/languages/typescript/common/mode
'
,
EXCLUDES
)
.
combine
(
worker
)
.
define
(
'
vs/languages/typescript/common/worker
'
,
EXCLUDES
);
result
.
push
({
name
:
'
vs/languages/typescript/common/worker
'
,
exclude
:
[
'
vs/base/common/worker/simpleWorker
'
,
'
vs/languages/typescript/common/lib/typescriptServices
'
,
'
vs/css
'
,
'
vs/nls
'
,
'
vs/text
'
]
});
common
.
define
(
'
vs/languages/typescript/common/workerManager
'
,
EXCLUDES
);
result
.
push
({
name
:
'
vs/languages/typescript/common/mode
'
,
exclude
:
[
'
vs/editor/editor.main
'
,
'
vs/languages/typescript/common/lib/typescriptServices
'
,
'
vs/css
'
,
'
vs/nls
'
,
'
vs/text
'
]
});
return
result
;
};
\ No newline at end of file
src/vs/languages/typescript/common/mode.ts
浏览文件 @
7c1c26a3
...
...
@@ -15,36 +15,29 @@ import {IMarkerService} from 'vs/platform/markers/common/markers';
import
{
LanguageServiceDefaults
,
typeScriptDefaults
,
javaScriptDefaults
,
LanguageServiceMode
}
from
'
./typescript
'
;
import
{
register
}
from
'
./languageFeatures
'
;
import
{
ServicesAccessor
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
*
as
workerManager
from
'
vs/languages/typescript/common/workerManager
'
;
function
setupMode
(
modelService
:
IModelService
,
markerService
:
IMarkerService
,
modeService
:
IModeService
,
defaults
:
LanguageServiceDefaults
,
modeId
:
string
,
language
:
Language
):
void
{
let
disposables
:
lifecycle
.
IDisposable
[]
=
[];
let
languageServiceMode
:
LanguageServiceMode
;
require
([
'
vs/languages/typescript/common/workerManager
'
],
workerManager
=>
{
const
client
=
<
LanguageServiceMode
&
lifecycle
.
IDisposable
>
workerManager
.
create
(
defaults
,
modelService
);
disposables
.
push
(
client
);
const
client
=
<
LanguageServiceMode
&
lifecycle
.
IDisposable
>
workerManager
.
create
(
defaults
,
modelService
);
languageServiceMode
=
client
;
disposables
.
push
(
client
);
const
registration
=
register
(
modelService
,
markerService
,
modeId
,
defaults
,
(
first
,
...
more
)
=>
client
.
getLanguageServiceWorker
(...[
first
].
concat
(
more
))
);
disposables
.
push
(
registration
);
const
registration
=
register
(
modelService
,
markerService
,
modeId
,
defaults
,
(
first
,
...
more
)
=>
client
.
getLanguageServiceWorker
(...[
first
].
concat
(
more
))
);
disposables
.
push
(
registration
);
},
err
=>
{
console
.
error
(
err
);
});
disposables
.
push
(
modeService
.
registerRichEditSupport
(
modeId
,
richEditConfiguration
));
modeService
.
registerRichEditSupport
(
modeId
,
richEditConfiguration
);
modeService
.
registerTokenizationSupport
(
modeId
,
(
mode
)
=>
{
disposables
.
push
(
modeService
.
registerTokenizationSupport
(
modeId
,
(
mode
)
=>
{
return
createTokenizationSupport
(
mode
,
language
);
});
})
)
;
}
const
richEditConfiguration
:
IRichEditConfiguration
=
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录