Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
fa413ff0
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,发现更多精彩内容 >>
提交
fa413ff0
编写于
8月 12, 2017
作者:
R
Ramya Achutha Rao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move the checks on abbreviations to helper module
上级
747310ab
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
5 addition
and
16 deletion
+5
-16
extensions/emmet/npm-shrinkwrap.json
extensions/emmet/npm-shrinkwrap.json
+3
-3
extensions/emmet/package.json
extensions/emmet/package.json
+1
-1
extensions/emmet/src/abbreviationActions.ts
extensions/emmet/src/abbreviationActions.ts
+0
-11
extensions/emmet/src/defaultCompletionProvider.ts
extensions/emmet/src/defaultCompletionProvider.ts
+1
-1
未找到文件。
extensions/emmet/npm-shrinkwrap.json
浏览文件 @
fa413ff0
...
...
@@ -38,9 +38,9 @@
"resolved"
:
"https://registry.npmjs.org/image-size/-/image-size-0.5.5.tgz"
},
"vscode-emmet-helper"
:
{
"version"
:
"1.0.1
2
"
,
"from"
:
"vscode-emmet-helper@>=1.0.1
2
<2.0.0"
,
"resolved"
:
"https://registry.npmjs.org/vscode-emmet-helper/-/vscode-emmet-helper-1.0.1
2
.tgz"
"version"
:
"1.0.1
3
"
,
"from"
:
"vscode-emmet-helper@>=1.0.1
3
<2.0.0"
,
"resolved"
:
"https://registry.npmjs.org/vscode-emmet-helper/-/vscode-emmet-helper-1.0.1
3
.tgz"
},
"vscode-languageserver-types"
:
{
"version"
:
"3.3.0"
,
...
...
extensions/emmet/package.json
浏览文件 @
fa413ff0
...
...
@@ -212,7 +212,7 @@
"@emmetio/html-matcher"
:
"^0.3.1"
,
"@emmetio/css-parser"
:
"^0.4.0"
,
"@emmetio/math-expression"
:
"^0.1.1"
,
"vscode-emmet-helper"
:
"^1.0.1
2
"
,
"vscode-emmet-helper"
:
"^1.0.1
3
"
,
"vscode-languageserver-types"
:
"^3.0.3"
,
"image-size"
:
"^0.5.2"
,
"vscode-nls"
:
"2.0.2"
...
...
extensions/emmet/src/abbreviationActions.ts
浏览文件 @
fa413ff0
...
...
@@ -134,17 +134,6 @@ export function expandEmmetAbbreviation(args): Thenable<boolean> {
}
}
// Dont try to expand abbreviations when cursor is before/after ; or : or in the middle of a word
// Fix for https://github.com/Microsoft/vscode/issues/1623 in new emmet
if
(
isStyleSheet
(
syntax
)
&&
!
/
\s
!$/
.
test
(
textTillPosition
))
{
const
charAtPosition
=
currentLine
.
substr
(
position
.
character
,
1
);
if
(
textTillPosition
.
endsWith
(
'
:
'
)
||
textTillPosition
.
endsWith
(
'
;
'
)
||
(
charAtPosition
&&
!
/
\s
/
.
test
(
charAtPosition
)))
{
return
[
null
,
''
,
[]];
}
}
let
extractedResults
=
extractAbbreviation
(
editor
.
document
,
position
);
if
(
!
extractedResults
)
{
return
[
null
,
''
,
[]];
...
...
extensions/emmet/src/defaultCompletionProvider.ts
浏览文件 @
fa413ff0
...
...
@@ -33,7 +33,7 @@ export class DefaultCompletionItemProvider implements vscode.CompletionItemProvi
let
result
:
vscode
.
CompletionList
=
doComplete
(
document
,
position
,
syntax
,
getEmmetConfiguration
());
let
newItems
:
vscode
.
CompletionItem
[]
=
[];
if
(
result
.
items
)
{
if
(
result
&&
result
.
items
)
{
result
.
items
.
forEach
(
item
=>
{
let
newItem
=
new
vscode
.
CompletionItem
(
item
.
label
);
newItem
.
documentation
=
item
.
documentation
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录