Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
73dfd92e
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,发现更多精彩内容 >>
提交
73dfd92e
编写于
1月 22, 2019
作者:
M
Matt Bierner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix spelling
上级
c800831f
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
12 addition
and
12 deletion
+12
-12
extensions/typescript-language-features/src/features/completions.ts
.../typescript-language-features/src/features/completions.ts
+4
-4
extensions/typescript-language-features/src/features/hover.ts
...nsions/typescript-language-features/src/features/hover.ts
+1
-1
extensions/typescript-language-features/src/features/organizeImports.ts
...escript-language-features/src/features/organizeImports.ts
+1
-1
extensions/typescript-language-features/src/features/refactor.ts
...ons/typescript-language-features/src/features/refactor.ts
+1
-1
extensions/typescript-language-features/src/features/rename.ts
...sions/typescript-language-features/src/features/rename.ts
+1
-1
extensions/typescript-language-features/src/features/signatureHelp.ts
...ypescript-language-features/src/features/signatureHelp.ts
+1
-1
extensions/typescript-language-features/src/features/updatePathsOnRename.ts
...ipt-language-features/src/features/updatePathsOnRename.ts
+1
-1
extensions/typescript-language-features/src/typescriptService.ts
...ons/typescript-language-features/src/typescriptService.ts
+1
-1
extensions/typescript-language-features/src/typescriptServiceClient.ts
...pescript-language-features/src/typescriptServiceClient.ts
+1
-1
未找到文件。
extensions/typescript-language-features/src/features/completions.ts
浏览文件 @
73dfd92e
...
...
@@ -369,7 +369,7 @@ class TypeScriptCompletionItemProvider implements vscode.CompletionItemProvider
return
null
;
}
await
this
.
client
.
interuptGetErr
(()
=>
this
.
fileConfigurationManager
.
ensureConfigurationForDocument
(
document
,
token
));
await
this
.
client
.
inter
r
uptGetErr
(()
=>
this
.
fileConfigurationManager
.
ensureConfigurationForDocument
(
document
,
token
));
const
args
:
Proto
.
CompletionsRequestArgs
=
{
...
typeConverters
.
Position
.
toFileLocationRequestArgs
(
file
,
position
),
...
...
@@ -385,7 +385,7 @@ class TypeScriptCompletionItemProvider implements vscode.CompletionItemProvider
let
entries
:
ReadonlyArray
<
Proto
.
CompletionEntry
>
;
let
metadata
:
any
|
undefined
;
if
(
this
.
client
.
apiVersion
.
gte
(
API
.
v300
))
{
const
response
=
await
this
.
client
.
interuptGetErr
(()
=>
this
.
client
.
execute
(
'
completionInfo
'
,
args
,
token
));
const
response
=
await
this
.
client
.
inter
r
uptGetErr
(()
=>
this
.
client
.
execute
(
'
completionInfo
'
,
args
,
token
));
if
(
response
.
type
!==
'
response
'
||
!
response
.
body
)
{
return
null
;
}
...
...
@@ -403,7 +403,7 @@ class TypeScriptCompletionItemProvider implements vscode.CompletionItemProvider
entries
=
response
.
body
.
entries
;
metadata
=
response
.
metadata
;
}
else
{
const
response
=
await
this
.
client
.
interuptGetErr
(()
=>
this
.
client
.
execute
(
'
completions
'
,
args
,
token
));
const
response
=
await
this
.
client
.
inter
r
uptGetErr
(()
=>
this
.
client
.
execute
(
'
completions
'
,
args
,
token
));
if
(
response
.
type
!==
'
response
'
||
!
response
.
body
)
{
return
null
;
}
...
...
@@ -456,7 +456,7 @@ class TypeScriptCompletionItemProvider implements vscode.CompletionItemProvider
]
};
const
response
=
await
this
.
client
.
interuptGetErr
(()
=>
this
.
client
.
execute
(
'
completionEntryDetails
'
,
args
,
token
));
const
response
=
await
this
.
client
.
inter
r
uptGetErr
(()
=>
this
.
client
.
execute
(
'
completionEntryDetails
'
,
args
,
token
));
if
(
response
.
type
!==
'
response
'
||
!
response
.
body
)
{
return
item
;
}
...
...
extensions/typescript-language-features/src/features/hover.ts
浏览文件 @
73dfd92e
...
...
@@ -27,7 +27,7 @@ class TypeScriptHoverProvider implements vscode.HoverProvider {
}
const
args
=
typeConverters
.
Position
.
toFileLocationRequestArgs
(
filepath
,
position
);
const
response
=
await
this
.
client
.
interuptGetErr
(()
=>
this
.
client
.
execute
(
'
quickinfo
'
,
args
,
token
));
const
response
=
await
this
.
client
.
inter
r
uptGetErr
(()
=>
this
.
client
.
execute
(
'
quickinfo
'
,
args
,
token
));
if
(
response
.
type
!==
'
response
'
||
!
response
.
body
)
{
return
undefined
;
}
...
...
extensions/typescript-language-features/src/features/organizeImports.ts
浏览文件 @
73dfd92e
...
...
@@ -82,7 +82,7 @@ export class OrganizeImportsCodeActionProvider implements vscode.CodeActionProvi
return
[];
}
if
(
!
context
.
only
||
!
vscode
.
CodeActionKind
.
SourceOrganizeImports
.
intersects
(
context
.
only
))
{
if
(
!
context
.
only
||
!
context
.
only
.
contains
(
vscode
.
CodeActionKind
.
SourceOrganizeImports
))
{
return
[];
}
...
...
extensions/typescript-language-features/src/features/refactor.ts
浏览文件 @
73dfd92e
...
...
@@ -138,7 +138,7 @@ class TypeScriptRefactorProvider implements vscode.CodeActionProvider {
}
const
args
:
Proto
.
GetApplicableRefactorsRequestArgs
=
typeConverters
.
Range
.
toFileRangeRequestArgs
(
file
,
rangeOrSelection
);
const
response
=
await
this
.
client
.
interuptGetErr
(()
=>
{
const
response
=
await
this
.
client
.
inter
r
uptGetErr
(()
=>
{
this
.
formattingOptionsManager
.
ensureConfigurationForDocument
(
document
,
token
);
return
this
.
client
.
execute
(
'
getApplicableRefactors
'
,
args
,
token
);
...
...
extensions/typescript-language-features/src/features/rename.ts
浏览文件 @
73dfd92e
...
...
@@ -91,7 +91,7 @@ class TypeScriptRenameProvider implements vscode.RenameProvider {
findInComments
:
false
};
return
this
.
client
.
interuptGetErr
(()
=>
{
return
this
.
client
.
inter
r
uptGetErr
(()
=>
{
this
.
fileConfigurationManager
.
ensureConfigurationForDocument
(
document
,
token
);
return
this
.
client
.
execute
(
'
rename
'
,
args
,
token
);
});
...
...
extensions/typescript-language-features/src/features/signatureHelp.ts
浏览文件 @
73dfd92e
...
...
@@ -33,7 +33,7 @@ class TypeScriptSignatureHelpProvider implements vscode.SignatureHelpProvider {
...
typeConverters
.
Position
.
toFileLocationRequestArgs
(
filepath
,
position
),
triggerReason
:
toTsTriggerReason
(
context
)
};
const
response
=
await
this
.
client
.
interuptGetErr
(()
=>
this
.
client
.
execute
(
'
signatureHelp
'
,
args
,
token
));
const
response
=
await
this
.
client
.
inter
r
uptGetErr
(()
=>
this
.
client
.
execute
(
'
signatureHelp
'
,
args
,
token
));
if
(
response
.
type
!==
'
response
'
||
!
response
.
body
)
{
return
undefined
;
}
...
...
extensions/typescript-language-features/src/features/updatePathsOnRename.ts
浏览文件 @
73dfd92e
...
...
@@ -233,7 +233,7 @@ class UpdateImportsOnFileRenameHandler extends Disposable {
):
Promise
<
vscode
.
WorkspaceEdit
|
undefined
>
{
const
isDirectoryRename
=
fs
.
lstatSync
(
newFile
).
isDirectory
();
const
response
=
await
this
.
client
.
interuptGetErr
(()
=>
{
const
response
=
await
this
.
client
.
inter
r
uptGetErr
(()
=>
{
this
.
fileConfigurationManager
.
setGlobalConfigurationFromDocument
(
document
,
nulToken
);
const
args
:
Proto
.
GetEditsForFileRenameRequestArgs
&
{
file
:
string
}
=
{
file
:
targetResource
,
...
...
extensions/typescript-language-features/src/typescriptService.ts
浏览文件 @
73dfd92e
...
...
@@ -116,5 +116,5 @@ export interface ITypeScriptServiceClient {
/**
* Cancel on going geterr requests and re-queue them after `f` has been evaluated.
*/
interuptGetErr
<
R
>
(
f
:
()
=>
R
):
R
;
inter
r
uptGetErr
<
R
>
(
f
:
()
=>
R
):
R
;
}
\ No newline at end of file
extensions/typescript-language-features/src/typescriptServiceClient.ts
浏览文件 @
73dfd92e
...
...
@@ -641,7 +641,7 @@ export default class TypeScriptServiceClient extends Disposable implements IType
return
runningServerState
.
server
.
executeImpl
(
command
,
args
,
executeInfo
);
}
public
interuptGetErr
<
R
>
(
f
:
()
=>
R
):
R
{
public
inter
r
uptGetErr
<
R
>
(
f
:
()
=>
R
):
R
{
return
this
.
bufferSyncSupport
.
interuptGetErr
(
f
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录