Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
b6a51701
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,发现更多精彩内容 >>
未验证
提交
b6a51701
编写于
4月 21, 2018
作者:
R
Rob Lourens
提交者:
GitHub
4月 21, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #47865 from mattacosta/mattacosta/regenerate-php-globals
Fix #33132: Regenerate php functions.
上级
ed7b0daa
d330c3f2
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
6020 addition
and
5441 deletion
+6020
-5441
extensions/php-language-features/src/features/completionItemProvider.ts
...-language-features/src/features/completionItemProvider.ts
+4
-3
extensions/php-language-features/src/features/hoverProvider.ts
...sions/php-language-features/src/features/hoverProvider.ts
+3
-2
extensions/php-language-features/src/features/phpGlobalFunctions.ts
.../php-language-features/src/features/phpGlobalFunctions.ts
+6011
-0
extensions/php-language-features/src/features/phpGlobals.ts
extensions/php-language-features/src/features/phpGlobals.ts
+0
-5435
extensions/php-language-features/src/features/signatureHelpProvider.ts
...p-language-features/src/features/signatureHelpProvider.ts
+2
-1
未找到文件。
extensions/php-language-features/src/features/completionItemProvider.ts
浏览文件 @
b6a51701
...
...
@@ -7,6 +7,7 @@
import
{
CompletionItemProvider
,
CompletionItem
,
CompletionItemKind
,
CancellationToken
,
TextDocument
,
Position
,
Range
,
TextEdit
,
workspace
,
CompletionContext
}
from
'
vscode
'
;
import
phpGlobals
=
require
(
'
./phpGlobals
'
);
import
phpGlobalFunctions
=
require
(
'
./phpGlobalFunctions
'
);
export
default
class
PHPCompletionItemProvider
implements
CompletionItemProvider
{
...
...
@@ -69,10 +70,10 @@ export default class PHPCompletionItemProvider implements CompletionItemProvider
result
.
push
(
createNewProposal
(
CompletionItemKind
.
Variable
,
globalvariables
,
phpGlobals
.
globalvariables
[
globalvariables
]));
}
}
for
(
var
globalfunctions
in
phpGlobals
.
globalfunctions
)
{
if
(
phpGlobals
.
globalfunctions
.
hasOwnProperty
(
globalfunctions
)
&&
matches
(
globalfunctions
))
{
for
(
var
globalfunctions
in
phpGlobal
Function
s
.
globalfunctions
)
{
if
(
phpGlobal
Function
s
.
globalfunctions
.
hasOwnProperty
(
globalfunctions
)
&&
matches
(
globalfunctions
))
{
added
[
globalfunctions
]
=
true
;
result
.
push
(
createNewProposal
(
CompletionItemKind
.
Function
,
globalfunctions
,
phpGlobals
.
globalfunctions
[
globalfunctions
]));
result
.
push
(
createNewProposal
(
CompletionItemKind
.
Function
,
globalfunctions
,
phpGlobal
Function
s
.
globalfunctions
[
globalfunctions
]));
}
}
for
(
var
compiletimeconstants
in
phpGlobals
.
compiletimeconstants
)
{
...
...
extensions/php-language-features/src/features/hoverProvider.ts
浏览文件 @
b6a51701
...
...
@@ -6,8 +6,9 @@
'
use strict
'
;
import
{
HoverProvider
,
Hover
,
MarkedString
,
TextDocument
,
CancellationToken
,
Position
,
workspace
}
from
'
vscode
'
;
import
phpGlobals
=
require
(
'
./phpGlobals
'
);
import
{
textToMarkedString
}
from
'
./utils/markedTextUtil
'
;
import
phpGlobals
=
require
(
'
./phpGlobals
'
);
import
phpGlobalFunctions
=
require
(
'
./phpGlobalFunctions
'
);
export
default
class
PHPHoverProvider
implements
HoverProvider
{
...
...
@@ -24,7 +25,7 @@ export default class PHPHoverProvider implements HoverProvider {
let
name
=
document
.
getText
(
wordRange
);
var
entry
=
phpGlobals
.
globalfunctions
[
name
]
||
phpGlobals
.
compiletimeconstants
[
name
]
||
phpGlobals
.
globalvariables
[
name
]
||
phpGlobals
.
keywords
[
name
];
var
entry
=
phpGlobal
Function
s
.
globalfunctions
[
name
]
||
phpGlobals
.
compiletimeconstants
[
name
]
||
phpGlobals
.
globalvariables
[
name
]
||
phpGlobals
.
keywords
[
name
];
if
(
entry
&&
entry
.
description
)
{
let
signature
=
name
+
(
entry
.
signature
||
''
);
let
contents
:
MarkedString
[]
=
[
textToMarkedString
(
entry
.
description
),
{
language
:
'
php
'
,
value
:
signature
}];
...
...
extensions/php-language-features/src/features/phpGlobalFunctions.ts
0 → 100644
浏览文件 @
b6a51701
此差异已折叠。
点击以展开。
extensions/php-language-features/src/features/phpGlobals.ts
浏览文件 @
b6a51701
此差异已折叠。
点击以展开。
extensions/php-language-features/src/features/signatureHelpProvider.ts
浏览文件 @
b6a51701
...
...
@@ -7,6 +7,7 @@
import
{
SignatureHelpProvider
,
SignatureHelp
,
SignatureInformation
,
CancellationToken
,
TextDocument
,
Position
,
workspace
}
from
'
vscode
'
;
import
phpGlobals
=
require
(
'
./phpGlobals
'
);
import
phpGlobalFunctions
=
require
(
'
./phpGlobalFunctions
'
);
var
_NL
=
'
\n
'
.
charCodeAt
(
0
);
var
_TAB
=
'
\t
'
.
charCodeAt
(
0
);
...
...
@@ -87,7 +88,7 @@ export default class PHPSignatureHelpProvider implements SignatureHelpProvider {
return
null
;
}
var
entry
=
phpGlobals
.
globalfunctions
[
ident
]
||
phpGlobals
.
keywords
[
ident
];
var
entry
=
phpGlobal
Function
s
.
globalfunctions
[
ident
]
||
phpGlobals
.
keywords
[
ident
];
if
(
!
entry
||
!
entry
.
signature
)
{
return
null
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录