Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
71ed221b
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,发现更多精彩内容 >>
提交
71ed221b
编写于
1月 15, 2020
作者:
M
Maira Wenzel
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix typo
上级
b80e8133
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
4 addition
and
4 deletion
+4
-4
extensions/emmet/src/abbreviationActions.ts
extensions/emmet/src/abbreviationActions.ts
+2
-2
extensions/typescript-language-features/src/features/completions.ts
.../typescript-language-features/src/features/completions.ts
+1
-1
src/vs/workbench/services/search/node/ripgrepTextSearchEngine.ts
...workbench/services/search/node/ripgrepTextSearchEngine.ts
+1
-1
未找到文件。
extensions/emmet/src/abbreviationActions.ts
浏览文件 @
71ed221b
...
@@ -94,8 +94,8 @@ function doWrapping(individualLines: boolean, args: any) {
...
@@ -94,8 +94,8 @@ function doWrapping(individualLines: boolean, args: any) {
}
else
{
}
else
{
const
wholeFirstLine
=
editor
.
document
.
lineAt
(
rangeToReplace
.
start
).
text
;
const
wholeFirstLine
=
editor
.
document
.
lineAt
(
rangeToReplace
.
start
).
text
;
const
otherMatches
=
wholeFirstLine
.
match
(
/^
(\s
*
)
/
);
const
otherMatches
=
wholeFirstLine
.
match
(
/^
(\s
*
)
/
);
const
prece
e
dingWhitespace
=
otherMatches
?
otherMatches
[
1
]
:
''
;
const
precedingWhitespace
=
otherMatches
?
otherMatches
[
1
]
:
''
;
textToWrapInPreview
=
rangeToReplace
.
isSingleLine
?
[
textToReplace
]
:
[
'
\n\t
'
+
textToReplace
.
split
(
'
\n
'
+
prece
e
dingWhitespace
).
join
(
'
\n\t
'
)
+
'
\n
'
];
textToWrapInPreview
=
rangeToReplace
.
isSingleLine
?
[
textToReplace
]
:
[
'
\n\t
'
+
textToReplace
.
split
(
'
\n
'
+
precedingWhitespace
).
join
(
'
\n\t
'
)
+
'
\n
'
];
}
}
textToWrapInPreview
=
textToWrapInPreview
.
map
(
e
=>
e
.
replace
(
/
(\$\d)
/g
,
'
\\
$1
'
));
textToWrapInPreview
=
textToWrapInPreview
.
map
(
e
=>
e
.
replace
(
/
(\$\d)
/g
,
'
\\
$1
'
));
...
...
extensions/typescript-language-features/src/features/completions.ts
浏览文件 @
71ed221b
...
@@ -594,7 +594,7 @@ class TypeScriptCompletionItemProvider implements vscode.CompletionItemProvider
...
@@ -594,7 +594,7 @@ class TypeScriptCompletionItemProvider implements vscode.CompletionItemProvider
):
boolean
{
):
boolean
{
if
(
this
.
client
.
apiVersion
.
lt
(
API
.
v320
))
{
if
(
this
.
client
.
apiVersion
.
lt
(
API
.
v320
))
{
// Workaround for https://github.com/Microsoft/TypeScript/issues/27742
// Workaround for https://github.com/Microsoft/TypeScript/issues/27742
// Only enable dot completions when previous character not a dot prece
e
ded by whitespace.
// Only enable dot completions when previous character not a dot preceded by whitespace.
// Prevents incorrectly completing while typing spread operators.
// Prevents incorrectly completing while typing spread operators.
if
(
position
.
character
>
1
)
{
if
(
position
.
character
>
1
)
{
const
preText
=
document
.
getText
(
new
vscode
.
Range
(
const
preText
=
document
.
getText
(
new
vscode
.
Range
(
...
...
src/vs/workbench/services/search/node/ripgrepTextSearchEngine.ts
浏览文件 @
71ed221b
...
@@ -532,7 +532,7 @@ export type IRgBytesOrText = { bytes: string } | { text: string };
...
@@ -532,7 +532,7 @@ export type IRgBytesOrText = { bytes: string } | { text: string };
export
function
fixRegexNewline
(
pattern
:
string
):
string
{
export
function
fixRegexNewline
(
pattern
:
string
):
string
{
// Replace an unescaped $ at the end of the pattern with \r?$
// Replace an unescaped $ at the end of the pattern with \r?$
// Match $ prece
e
ded by none or even number of literal \
// Match $ preceded by none or even number of literal \
return
pattern
.
replace
(
/
(?<
=
[^\\]
|^
)(\\\\)
*
\\
n/g
,
'
$1
\\
r?
\\
n
'
);
return
pattern
.
replace
(
/
(?<
=
[^\\]
|^
)(\\\\)
*
\\
n/g
,
'
$1
\\
r?
\\
n
'
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录