Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
0f84102b
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,发现更多精彩内容 >>
提交
0f84102b
编写于
12月 23, 2015
作者:
J
Johannes Rieken
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debt - remove last 'offical' use of IServicesContext
上级
58b5cd14
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
34 addition
and
42 deletion
+34
-42
src/vs/languages/typescript.workbench/common/projectResolver.ts
.../languages/typescript.workbench/common/projectResolver.ts
+32
-24
src/vs/languages/typescript/common/typescriptMode.ts
src/vs/languages/typescript/common/typescriptMode.ts
+2
-5
src/vs/platform/instantiation/test/common/instantiationService.test.ts
...rm/instantiation/test/common/instantiationService.test.ts
+0
-1
src/vs/platform/services.ts
src/vs/platform/services.ts
+0
-12
未找到文件。
src/vs/languages/typescript.workbench/common/projectResolver.ts
浏览文件 @
0f84102b
...
...
@@ -4,29 +4,27 @@
*--------------------------------------------------------------------------------------------*/
'
use strict
'
;
import
glob
=
require
(
'
vs/base/common/glob
'
)
;
import
nls
=
require
(
'
vs/nls
'
)
;
import
objects
=
require
(
'
vs/base/common/objects
'
)
;
import
typescript
=
require
(
'
vs/languages/typescript/common/typescript
'
)
;
import
lifecycle
=
require
(
'
vs/base/common/lifecycle
'
)
;
import
errors
=
require
(
'
vs/base/common/errors
'
)
;
import
collections
=
require
(
'
vs/base/common/collections
'
)
;
import
async
=
require
(
'
vs/base/common/async
'
)
;
import
winjs
=
require
(
'
vs/base/common/winjs.base
'
)
;
import
*
as
glob
from
'
vs/base/common/glob
'
;
import
*
as
nls
from
'
vs/nls
'
;
import
*
as
objects
from
'
vs/base/common/objects
'
;
import
*
as
typescript
from
'
vs/languages/typescript/common/typescript
'
;
import
*
as
lifecycle
from
'
vs/base/common/lifecycle
'
;
import
*
as
errors
from
'
vs/base/common/errors
'
;
import
*
as
collections
from
'
vs/base/common/collections
'
;
import
*
as
async
from
'
vs/base/common/async
'
;
import
*
as
winjs
from
'
vs/base/common/winjs.base
'
;
import
Severity
from
'
vs/base/common/severity
'
;
import
URI
from
'
vs/base/common/uri
'
;
import
paths
=
require
(
'
vs/base/common/paths
'
);
import
services
=
require
(
'
vs/platform/services
'
);
import
ts
=
require
(
'
vs/languages/typescript/common/lib/typescriptServices
'
);
import
editorCommon
=
require
(
'
vs/editor/common/editorCommon
'
);
import
*
as
paths
from
'
vs/base/common/paths
'
;
import
*
as
ts
from
'
vs/languages/typescript/common/lib/typescriptServices
'
;
import
{
IModelService
}
from
'
vs/editor/common/services/modelService
'
;
import
{
IEventService
}
from
'
vs/platform/event/common/event
'
;
import
Files
=
require
(
'
vs/platform/files/common/files
'
)
;
import
*
as
Files
from
'
vs/platform/files/common/files
'
;
import
{
IMarkerService
}
from
'
vs/platform/markers/common/markers
'
;
import
{
IMessageService
}
from
'
vs/platform/message/common/message
'
;
import
{
ISearchService
,
QueryType
}
from
'
vs/platform/search/common/search
'
;
import
{
ITelemetryService
}
from
'
vs/platform/telemetry/common/telemetry
'
;
import
{
IWorkspace
}
from
'
vs/platform/workspace/common/workspace
'
;
import
{
IWorkspace
ContextService
}
from
'
vs/platform/workspace/common/workspace
'
;
interface
$ProjectPerf
{
start
:
number
;
...
...
@@ -131,15 +129,25 @@ class ProjectResolver implements typescript.IProjectResolver2 {
private
_pendingFiles
:
{
[
r
:
string
]:
{
resource
:
URI
;
kind
:
typescript
.
ChangeKind
}
}
=
Object
.
create
(
null
);
private
_unbindListener
:
Function
;
constructor
(
ctx
:
services
.
IServicesContext
,
configuration
:
{
files
:
string
;
projects
:
string
;
maxFilesPerProject
:
number
;},
consumer
:
typescript
.
IProjectConsumer
)
{
this
.
_fileService
=
ctx
[
'
fileService
'
];
this
.
_searchService
=
ctx
[
'
searchService
'
];
this
.
_eventService
=
ctx
[
'
eventService
'
];
this
.
_markerService
=
ctx
[
'
markerService
'
];
this
.
_messageService
=
ctx
[
'
messageService
'
];
this
.
_modelService
=
ctx
[
'
modelService
'
];
this
.
_telemetryService
=
ctx
[
'
telemetryService
'
];
this
.
_workspace
=
ctx
[
'
contextService
'
].
getWorkspace
()
&&
(
<
IWorkspace
>
ctx
[
'
contextService
'
].
getWorkspace
()).
resource
;
constructor
(
configuration
:
{
files
:
string
;
projects
:
string
;
maxFilesPerProject
:
number
;
},
consumer
:
typescript
.
IProjectConsumer
,
@
Files
.
IFileService
fileService
:
Files
.
IFileService
,
@
ISearchService
searchService
:
ISearchService
,
@
IEventService
eventService
:
IEventService
,
@
IMarkerService
markerService
:
IMarkerService
,
@
IMessageService
messageService
:
IMessageService
,
@
IModelService
modelService
:
IModelService
,
@
ITelemetryService
telemetryService
:
ITelemetryService
,
@
IWorkspaceContextService
contextService
:
IWorkspaceContextService
)
{
this
.
_fileService
=
fileService
;
this
.
_searchService
=
searchService
;
this
.
_eventService
=
eventService
;
this
.
_markerService
=
markerService
;
this
.
_messageService
=
messageService
;
this
.
_modelService
=
modelService
;
this
.
_telemetryService
=
telemetryService
;
this
.
_workspace
=
contextService
.
getWorkspace
()
&&
contextService
.
getWorkspace
().
resource
;
this
.
_consumer
=
consumer
;
this
.
_configuration
=
configuration
;
...
...
src/vs/languages/typescript/common/typescriptMode.ts
浏览文件 @
0f84102b
...
...
@@ -10,11 +10,8 @@ import URI from 'vs/base/common/uri';
import
EditorCommon
=
require
(
'
vs/editor/common/editorCommon
'
);
import
Modes
=
require
(
'
vs/editor/common/modes
'
);
import
lifecycle
=
require
(
'
vs/base/common/lifecycle
'
);
import
objects
=
require
(
'
vs/base/common/objects
'
);
import
types
=
require
(
'
vs/base/common/types
'
);
import
async
=
require
(
'
vs/base/common/async
'
);
import
supports
=
require
(
'
vs/editor/common/modes/supports
'
);
import
services
=
require
(
'
vs/platform/services
'
);
import
tokenization
=
require
(
'
vs/languages/typescript/common/features/tokenization
'
);
import
quickFixMainActions
=
require
(
'
vs/languages/typescript/common/features/quickFixMainActions
'
);
import
typescriptWorker
=
require
(
'
vs/languages/typescript/common/typescriptWorker2
'
);
...
...
@@ -38,8 +35,8 @@ class SemanticValidator {
private
_lastChangedResource
:
URI
;
private
_listener
:
{
[
r
:
string
]:
Function
}
=
Object
.
create
(
null
);
constructor
(
ctx
:
services
.
IServicesContext
,
mode
:
TypeScriptMode
<
any
>
)
{
this
.
_modelService
=
ctx
[
'
modelService
'
]
;
constructor
(
mode
:
TypeScriptMode
<
any
>
,
@
IModelService
modelService
:
IModelService
)
{
this
.
_modelService
=
modelService
;
this
.
_mode
=
mode
;
this
.
_validation
=
new
async
.
RunOnceScheduler
(
this
.
_doValidate
.
bind
(
this
),
750
);
if
(
this
.
_modelService
)
{
...
...
src/vs/platform/instantiation/test/common/instantiationService.test.ts
浏览文件 @
0f84102b
...
...
@@ -6,7 +6,6 @@
import
assert
=
require
(
'
assert
'
);
import
services
=
require
(
'
vs/platform/services
'
);
import
instantiation
=
require
(
'
vs/platform/instantiation/common/instantiation
'
);
import
instantiationService
=
require
(
'
vs/platform/instantiation/common/instantiationService
'
);
...
...
src/vs/platform/services.ts
已删除
100644 → 0
浏览文件 @
58b5cd14
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'
use strict
'
;
import
{
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
export
interface
IServicesContext
{
[
serviceName
:
string
]:
any
;
instantiationService
:
IInstantiationService
;
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录