Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
3ea1e53b
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,发现更多精彩内容 >>
提交
3ea1e53b
编写于
7月 06, 2018
作者:
M
Matt Bierner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update to TS 3.0 insiders
上级
b6902fd6
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
19 addition
and
20 deletion
+19
-20
extensions/html-language-features/server/src/modes/javascriptMode.ts
...html-language-features/server/src/modes/javascriptMode.ts
+1
-1
extensions/package.json
extensions/package.json
+1
-1
extensions/typescript-language-features/src/features/baseCodeLensProvider.ts
...pt-language-features/src/features/baseCodeLensProvider.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/typeScriptServiceClientHost.ts
...ript-language-features/src/typeScriptServiceClientHost.ts
+1
-2
extensions/typescript-language-features/src/typescriptService.ts
...ons/typescript-language-features/src/typescriptService.ts
+0
-5
extensions/typescript-language-features/src/utils/previewer.ts
...sions/typescript-language-features/src/utils/previewer.ts
+11
-6
extensions/yarn.lock
extensions/yarn.lock
+3
-3
未找到文件。
extensions/html-language-features/server/src/modes/javascriptMode.ts
浏览文件 @
3ea1e53b
...
...
@@ -131,7 +131,7 @@ export function getJavaScriptMode(documentRegions: LanguageModelCache<HTMLDocume
},
doSignatureHelp
(
document
:
TextDocument
,
position
:
Position
):
SignatureHelp
|
null
{
updateCurrentTextDocument
(
document
);
let
signHelp
=
jsLanguageService
.
getSignatureHelpItems
(
FILE_NAME
,
currentTextDocument
.
offsetAt
(
position
));
let
signHelp
=
jsLanguageService
.
getSignatureHelpItems
(
FILE_NAME
,
currentTextDocument
.
offsetAt
(
position
)
,
undefined
);
if
(
signHelp
)
{
let
ret
:
SignatureHelp
=
{
activeSignature
:
signHelp
.
selectedItemIndex
,
...
...
extensions/package.json
浏览文件 @
3ea1e53b
...
...
@@ -3,7 +3,7 @@
"version"
:
"0.0.1"
,
"description"
:
"Dependencies shared by all extensions"
,
"dependencies"
:
{
"typescript"
:
"
2.9.2
"
"typescript"
:
"
3.0.0-insiders.20180706
"
},
"scripts"
:
{
"postinstall"
:
"node ./postinstall"
...
...
extensions/typescript-language-features/src/features/baseCodeLensProvider.ts
浏览文件 @
3ea1e53b
...
...
@@ -115,7 +115,7 @@ export abstract class TypeScriptBaseCodeLensProvider implements CodeLensProvider
}
// TS 3.0+ provides a span for just the symbol
if
(
(
item
as
any
)
.
nameSpan
)
{
if
(
item
.
nameSpan
)
{
return
typeConverters
.
Range
.
fromTextSpan
((
item
as
any
).
nameSpan
);
}
...
...
extensions/typescript-language-features/src/features/updatePathsOnRename.ts
浏览文件 @
3ea1e53b
...
...
@@ -223,7 +223,7 @@ export class UpdateImportsOnFileRenameHandler {
const
isDirectoryRename
=
fs
.
lstatSync
(
newFile
).
isDirectory
();
await
this
.
fileConfigurationManager
.
ensureConfigurationForDocument
(
document
,
undefined
);
const
args
:
Proto
.
GetEditsForFileRenameRequestArgs
=
{
const
args
:
Proto
.
GetEditsForFileRenameRequestArgs
&
{
file
:
string
}
=
{
file
:
targetResource
,
oldFilePath
:
oldFile
,
newFilePath
:
newFile
,
...
...
extensions/typescript-language-features/src/typeScriptServiceClientHost.ts
浏览文件 @
3ea1e53b
...
...
@@ -286,8 +286,7 @@ export default class TypeScriptServiceClientHost {
if
(
diagnostic
.
code
)
{
converted
.
code
=
diagnostic
.
code
;
}
// TODO: requires TS 3.0
const
relatedInformation
=
(
diagnostic
as
any
).
relatedInformation
;
const
relatedInformation
=
diagnostic
.
relatedInformation
;
if
(
relatedInformation
)
{
converted
.
relatedInformation
=
relatedInformation
.
map
((
info
:
any
)
=>
{
let
span
=
info
.
span
;
...
...
extensions/typescript-language-features/src/typescriptService.ts
浏览文件 @
3ea1e53b
...
...
@@ -11,11 +11,6 @@ import { TypeScriptServiceConfiguration } from './utils/configuration';
import
Logger
from
'
./utils/logger
'
;
import
BufferSyncSupport
from
'
./features/bufferSyncSupport
'
;
declare
module
'
./protocol
'
{
export
type
JsxClosingTagRequestArgs
=
any
;
export
type
JsxClosingTagResponse
=
any
;
}
export
interface
ITypeScriptServiceClient
{
/**
* Convert a resource (VS Code) to a normalized path (TypeScript).
...
...
extensions/typescript-language-features/src/utils/previewer.ts
浏览文件 @
3ea1e53b
...
...
@@ -72,13 +72,18 @@ export function markdownDocumentation(
export
function
addMarkdownDocumentation
(
out
:
MarkdownString
,
documentation
:
Proto
.
SymbolDisplayPart
[],
tags
:
Proto
.
JSDocTagInfo
[]
documentation
:
Proto
.
SymbolDisplayPart
[]
|
undefined
,
tags
:
Proto
.
JSDocTagInfo
[]
|
undefined
):
MarkdownString
{
out
.
appendMarkdown
(
plain
(
documentation
));
const
tagsPreview
=
tagsMarkdownPreview
(
tags
);
if
(
tagsPreview
)
{
out
.
appendMarkdown
(
'
\n\n
'
+
tagsPreview
);
if
(
documentation
)
{
out
.
appendMarkdown
(
plain
(
documentation
));
}
if
(
tags
)
{
const
tagsPreview
=
tagsMarkdownPreview
(
tags
);
if
(
tagsPreview
)
{
out
.
appendMarkdown
(
'
\n\n
'
+
tagsPreview
);
}
}
return
out
;
}
extensions/yarn.lock
浏览文件 @
3ea1e53b
...
...
@@ -2,6 +2,6 @@
# yarn lockfile v1
typescript@
2.9.2
:
version "
2.9.2
"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-
2.9.2.tgz#1cbf61d05d6b96269244eb6a3bce4bd914e0f00c
"
typescript@
3.0.0-insiders.20180706
:
version "
3.0.0-insiders.20180706
"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-
3.0.0-insiders.20180706.tgz#684c6c8ca1eefb11e79b6c072a92046ffd75184e
"
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录