Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
510d90d1
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
510d90d1
编写于
11月 26, 2018
作者:
V
vim88
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixes typo and occurrences of double words in comments.
上级
16a0994c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
7 addition
and
7 deletion
+7
-7
extensions/emmet/src/test/toggleComment.test.ts
extensions/emmet/src/test/toggleComment.test.ts
+4
-4
extensions/typescript-language-features/src/features/rename.ts
...sions/typescript-language-features/src/features/rename.ts
+1
-1
src/vs/editor/common/modes.ts
src/vs/editor/common/modes.ts
+1
-1
src/vs/workbench/browser/parts/editor/editorGroupView.ts
src/vs/workbench/browser/parts/editor/editorGroupView.ts
+1
-1
未找到文件。
extensions/emmet/src/test/toggleComment.test.ts
浏览文件 @
510d90d1
...
...
@@ -73,7 +73,7 @@ suite('Tests for Toggle Comment action from Emmet (HTML)', () => {
new
Selection
(
3
,
17
,
3
,
17
),
// cursor inside the inner span element
new
Selection
(
4
,
5
,
4
,
5
),
// cursor inside opening tag
new
Selection
(
5
,
35
,
5
,
35
),
// cursor inside closing tag
new
Selection
(
7
,
3
,
7
,
3
),
// cursor inside open tag of <ul> one of
of
whose children is already commented
new
Selection
(
7
,
3
,
7
,
3
),
// cursor inside open tag of <ul> one of whose children is already commented
new
Selection
(
14
,
8
,
14
,
8
),
// cursor inside the css property inside the style tag
new
Selection
(
18
,
3
,
18
,
3
)
// cursor inside the css rule inside the style tag
];
...
...
@@ -114,7 +114,7 @@ suite('Tests for Toggle Comment action from Emmet (HTML)', () => {
editor
.
selections
=
[
new
Selection
(
3
,
7
,
3
,
25
),
// <span>Hello</span><
new
Selection
(
4
,
3
,
4
,
30
),
// <li><span>There</span></li>
new
Selection
(
7
,
2
,
10
,
7
),
// The <ul> one of
of
whose children is already commented
new
Selection
(
7
,
2
,
10
,
7
),
// The <ul> one of whose children is already commented
new
Selection
(
14
,
4
,
14
,
17
),
// css property inside the style tag
new
Selection
(
17
,
3
,
20
,
4
)
// the css rule inside the style tag
];
...
...
@@ -192,7 +192,7 @@ suite('Tests for Toggle Comment action from Emmet (HTML)', () => {
return
withRandomFileEditor
(
contents
,
'
html
'
,
(
editor
,
doc
)
=>
{
editor
.
selections
=
[
new
Selection
(
3
,
24
,
4
,
20
),
new
Selection
(
7
,
2
,
9
,
10
)
// The <ul> one of
of
whose children is already commented
new
Selection
(
7
,
2
,
9
,
10
)
// The <ul> one of whose children is already commented
];
return
toggleComment
().
then
(()
=>
{
...
...
@@ -232,7 +232,7 @@ suite('Tests for Toggle Comment action from Emmet (HTML)', () => {
new
Selection
(
3
,
17
,
3
,
17
),
// cursor inside the inner span element
new
Selection
(
4
,
5
,
4
,
5
),
// two cursors: one inside opening tag
new
Selection
(
4
,
17
,
4
,
17
),
// and the second inside the inner span element
new
Selection
(
7
,
3
,
7
,
3
),
// two cursors: one inside open tag of <ul> one of
of
whose children is already commented
new
Selection
(
7
,
3
,
7
,
3
),
// two cursors: one inside open tag of <ul> one of whose children is already commented
new
Selection
(
9
,
10
,
9
,
10
),
// and the second inside inner li element, whose parent is selected
new
Selection
(
12
,
3
,
12
,
3
),
// four nested cursors: one inside the style open tag
new
Selection
(
14
,
8
,
14
,
8
),
// the second inside the css property inside the style tag
...
...
extensions/typescript-language-features/src/features/rename.ts
浏览文件 @
510d90d1
...
...
@@ -115,7 +115,7 @@ class TypeScriptRenameProvider implements vscode.RenameProvider {
newName
:
string
,
token
:
vscode
.
CancellationToken
,
):
Promise
<
vscode
.
WorkspaceEdit
|
undefined
>
{
// Make sure we preserve file exension if none provided
// Make sure we preserve file ex
t
ension if none provided
if
(
!
path
.
extname
(
newName
))
{
newName
+=
path
.
extname
(
fileToRename
);
}
...
...
src/vs/editor/common/modes.ts
浏览文件 @
510d90d1
...
...
@@ -553,7 +553,7 @@ export interface CodeActionProvider {
provideCodeActions
(
model
:
model
.
ITextModel
,
range
:
Range
|
Selection
,
context
:
CodeActionContext
,
token
:
CancellationToken
):
ProviderResult
<
CodeAction
[]
>
;
/**
* Optional list of
of
CodeActionKinds that this provider returns.
* Optional list of CodeActionKinds that this provider returns.
*/
providedCodeActionKinds
?:
ReadonlyArray
<
string
>
;
}
...
...
src/vs/workbench/browser/parts/editor/editorGroupView.ts
浏览文件 @
510d90d1
...
...
@@ -764,7 +764,7 @@ export class EditorGroupView extends Themable implements IEditorGroupView {
}
// Actually move the editor if a specific index is provided and we figure
// out that the
the
editor is already opened at a different index. This
// out that the editor is already opened at a different index. This
// ensures the right set of events are fired to the outside.
if
(
typeof
openEditorOptions
.
index
===
'
number
'
)
{
const
indexOfEditor
=
this
.
_group
.
indexOf
(
editor
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录