Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
4b2dfa96
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,发现更多精彩内容 >>
提交
4b2dfa96
编写于
8月 04, 2019
作者:
A
Arash Arbabi
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
https://github.com/microsoft/vscode
上级
29d78b24
c4c42719
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
93 addition
and
20 deletion
+93
-20
extensions/json-language-features/client/src/jsonMain.ts
extensions/json-language-features/client/src/jsonMain.ts
+1
-1
package.json
package.json
+2
-2
src/vs/base/browser/ui/button/button.ts
src/vs/base/browser/ui/button/button.ts
+1
-1
src/vs/editor/test/browser/controller/cursor.test.ts
src/vs/editor/test/browser/controller/cursor.test.ts
+69
-0
src/vs/workbench/browser/parts/views/customView.ts
src/vs/workbench/browser/parts/views/customView.ts
+10
-2
src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.css
...ench/contrib/codeEditor/browser/find/simpleFindWidget.css
+0
-0
src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.ts
...bench/contrib/codeEditor/browser/find/simpleFindWidget.ts
+0
-0
src/vs/workbench/contrib/preferences/browser/settingsEditor2.ts
.../workbench/contrib/preferences/browser/settingsEditor2.ts
+3
-8
src/vs/workbench/contrib/terminal/browser/terminal.contribution.ts
...rkbench/contrib/terminal/browser/terminal.contribution.ts
+2
-2
src/vs/workbench/contrib/terminal/browser/terminalFindWidget.ts
.../workbench/contrib/terminal/browser/terminalFindWidget.ts
+1
-1
src/vs/workbench/contrib/terminal/browser/terminalInstance.ts
...vs/workbench/contrib/terminal/browser/terminalInstance.ts
+2
-1
src/vs/workbench/contrib/webview/browser/webviewFindWidget.ts
...vs/workbench/contrib/webview/browser/webviewFindWidget.ts
+2
-2
未找到文件。
extensions/json-language-features/client/src/jsonMain.ts
浏览文件 @
4b2dfa96
...
...
@@ -223,7 +223,7 @@ export function activate(context: ExtensionContext) {
let
languageConfiguration
:
LanguageConfiguration
=
{
wordPattern
:
/
(
"
(?:[^\\\"]
*
(?:\\
.
)?)
*"
?)
|
[^\s
{}
\[\]
,:
]
+/
,
indentationRules
:
{
increaseIndentPattern
:
/
^.*
(\{[^
}
]
*|
\[[^\]]
*
)
$
/
,
increaseIndentPattern
:
/
(
{+
(?=([^
"
]
*"
[^
"
]
*"
)
*
[^
"}
]
*$
))
|
(\[
+
(?=([^
"
]
*"
[^
"
]
*"
)
*
[^
"
\]]
*$
))
/
,
decreaseIndentPattern
:
/^
\s
*
[
}
\]]
,
?\s
*$/
}
};
...
...
package.json
浏览文件 @
4b2dfa96
{
"name"
:
"code-oss-dev"
,
"version"
:
"1.3
7
.0"
,
"version"
:
"1.3
8
.0"
,
"distro"
:
"f9c5d20222a2776b589107efa7d2e3aa4b80050d"
,
"author"
:
{
"name"
:
"Microsoft Corporation"
...
...
@@ -158,4 +158,4 @@
"windows-mutex"
:
"0.3.0"
,
"windows-process-tree"
:
"0.2.4"
}
}
\ No newline at end of file
}
src/vs/base/browser/ui/button/button.ts
浏览文件 @
4b2dfa96
...
...
@@ -223,4 +223,4 @@ export class ButtonGroup extends Disposable {
}
}
}
}
\ No newline at end of file
}
src/vs/editor/test/browser/controller/cursor.test.ts
浏览文件 @
4b2dfa96
...
...
@@ -3633,6 +3633,75 @@ suite('Editor Controller - Indentation Rules', () => {
model
.
dispose
();
mode
.
dispose
();
});
test
(
''
,
()
=>
{
class
JSONMode
extends
MockMode
{
private
static
readonly
_id
=
new
LanguageIdentifier
(
'
indentRulesMode
'
,
4
);
constructor
()
{
super
(
JSONMode
.
_id
);
this
.
_register
(
LanguageConfigurationRegistry
.
register
(
this
.
getLanguageIdentifier
(),
{
brackets
:
[
[
'
{
'
,
'
}
'
],
[
'
[
'
,
'
]
'
],
[
'
(
'
,
'
)
'
]
],
indentationRules
:
{
increaseIndentPattern
:
new
RegExp
(
'
^.*
\\
{[^}
\
"
\\\'
]*$|^.*
\\
([^
\\
)
\
"
\\\'
]*$|^
\\
s*(public|private|protected):
\\
s*$|^
\\
s*@(public|private|protected)
\\
s*$|^
\\
s*
\\
{
\\
}$
'
),
decreaseIndentPattern
:
new
RegExp
(
'
^
\\
s*(
\\
s*/[*].*[*]/
\\
s*)*
\\
}|^
\\
s*(
\\
s*/[*].*[*]/
\\
s*)*
\\
)|^
\\
s*(public|private|protected):
\\
s*$|^
\\
s*@(public|private|protected)
\\
s*$
'
),
}
}));
}
}
let
mode
=
new
JSONMode
();
let
model
=
createTextModel
(
[
'
{
'
,
'
"scripts: {"
'
,
'
"watch": "a {"
'
,
'
"build{": "b"
'
,
'
"tasks": []
'
,
'
"tasks": ["a"]
'
,
'
"}"
'
,
'
"}"
'
].
join
(
'
\n
'
),
{
tabSize
:
2
,
indentSize
:
2
},
mode
.
getLanguageIdentifier
()
);
withTestCodeEditor
(
null
,
{
model
:
model
,
autoIndent
:
true
},
(
editor
,
cursor
)
=>
{
moveTo
(
cursor
,
3
,
19
,
false
);
assertCursor
(
cursor
,
new
Selection
(
3
,
19
,
3
,
19
));
cursorCommand
(
cursor
,
H
.
Type
,
{
text
:
'
\n
'
},
'
keyboard
'
);
assert
.
deepEqual
(
model
.
getLineContent
(
4
),
'
'
);
moveTo
(
cursor
,
5
,
18
,
false
);
assertCursor
(
cursor
,
new
Selection
(
5
,
18
,
5
,
18
));
cursorCommand
(
cursor
,
H
.
Type
,
{
text
:
'
\n
'
},
'
keyboard
'
);
assert
.
deepEqual
(
model
.
getLineContent
(
6
),
'
'
);
moveTo
(
cursor
,
7
,
15
,
false
);
assertCursor
(
cursor
,
new
Selection
(
7
,
15
,
7
,
15
));
cursorCommand
(
cursor
,
H
.
Type
,
{
text
:
'
\n
'
},
'
keyboard
'
);
assert
.
deepEqual
(
model
.
getLineContent
(
8
),
'
'
);
assert
.
deepEqual
(
model
.
getLineContent
(
9
),
'
]
'
);
moveTo
(
cursor
,
10
,
18
,
false
);
assertCursor
(
cursor
,
new
Selection
(
10
,
18
,
10
,
18
));
cursorCommand
(
cursor
,
H
.
Type
,
{
text
:
'
\n
'
},
'
keyboard
'
);
assert
.
deepEqual
(
model
.
getLineContent
(
11
),
'
]
'
);
});
model
.
dispose
();
mode
.
dispose
();
});
});
interface
ICursorOpts
{
...
...
src/vs/workbench/browser/parts/views/customView.ts
浏览文件 @
4b2dfa96
...
...
@@ -597,8 +597,16 @@ export class CustomTreeView extends Disposable implements ITreeView {
private
async
doRefresh
(
elements
:
ITreeItem
[]):
Promise
<
void
>
{
if
(
this
.
tree
)
{
this
.
refreshing
=
true
;
await
Promise
.
all
(
elements
.
map
(
element
=>
this
.
tree
.
updateChildren
(
element
,
true
)));
elements
.
map
(
element
=>
this
.
tree
.
rerender
(
element
));
const
parents
:
Set
<
ITreeItem
>
=
new
Set
<
ITreeItem
>
();
elements
.
forEach
(
element
=>
{
if
(
element
!==
this
.
root
)
{
const
parent
=
this
.
tree
.
getParentElement
(
element
);
parents
.
add
(
parent
);
}
else
{
parents
.
add
(
element
);
}
});
await
Promise
.
all
(
Array
.
from
(
parents
.
values
()).
map
(
element
=>
this
.
tree
.
updateChildren
(
element
,
true
)));
this
.
refreshing
=
false
;
this
.
updateContentAreas
();
if
(
this
.
focused
)
{
...
...
src/vs/
editor/contrib
/find/simpleFindWidget.css
→
src/vs/
workbench/contrib/codeEditor/browser
/find/simpleFindWidget.css
浏览文件 @
4b2dfa96
文件已移动
src/vs/
editor/contrib
/find/simpleFindWidget.ts
→
src/vs/
workbench/contrib/codeEditor/browser
/find/simpleFindWidget.ts
浏览文件 @
4b2dfa96
文件已移动
src/vs/workbench/contrib/preferences/browser/settingsEditor2.ts
浏览文件 @
4b2dfa96
...
...
@@ -970,14 +970,9 @@ export class SettingsEditor2 extends BaseEditor {
// If a single setting is being refreshed, it's ok to refresh now if that is not the focused setting
if
(
key
)
{
const
focusedKey
=
focusedSetting
.
getAttribute
(
AbstractSettingRenderer
.
SETTING_KEY_ATTR
);
/**
* Update `list`s live if focused item is whole list or list item,
* as they have a separate "submit edit" step built in before this
*/
if
(
focusedKey
===
key
&&
!
DOM
.
hasClass
(
focusedSetting
,
'
setting-item-list
'
)
&&
!
DOM
.
hasClass
(
focusedSetting
,
'
setting-item-contents
'
)
if
(
focusedKey
===
key
&&
// update `list`s live, as they have a separate "submit edit" step built in before this
(
focusedSetting
.
parentElement
&&
!
DOM
.
hasClass
(
focusedSetting
.
parentElement
,
'
setting-item-list
'
))
)
{
this
.
updateModifiedLabelForKey
(
key
);
...
...
src/vs/workbench/contrib/terminal/browser/terminal.contribution.ts
浏览文件 @
4b2dfa96
...
...
@@ -450,11 +450,11 @@ actionRegistry.registerWorkbenchAction(new SyncActionDescriptor(ResizePaneDownTe
actionRegistry
.
registerWorkbenchAction
(
new
SyncActionDescriptor
(
ScrollToPreviousCommandAction
,
ScrollToPreviousCommandAction
.
ID
,
ScrollToPreviousCommandAction
.
LABEL
,
{
primary
:
0
,
mac
:
{
primary
:
KeyMod
.
CtrlCmd
|
KeyCode
.
UpArrow
}
},
KEYBINDING_CONTEXT_TERMINAL_FOCUS
),
'
Terminal: Scroll To Previous Command
'
,
category
);
},
ContextKeyExpr
.
and
(
KEYBINDING_CONTEXT_TERMINAL_FOCUS
,
CONTEXT_ACCESSIBILITY_MODE_ENABLED
.
negate
())
),
'
Terminal: Scroll To Previous Command
'
,
category
);
actionRegistry
.
registerWorkbenchAction
(
new
SyncActionDescriptor
(
ScrollToNextCommandAction
,
ScrollToNextCommandAction
.
ID
,
ScrollToNextCommandAction
.
LABEL
,
{
primary
:
0
,
mac
:
{
primary
:
KeyMod
.
CtrlCmd
|
KeyCode
.
DownArrow
}
},
KEYBINDING_CONTEXT_TERMINAL_FOCUS
),
'
Terminal: Scroll To Next Command
'
,
category
);
},
ContextKeyExpr
.
and
(
KEYBINDING_CONTEXT_TERMINAL_FOCUS
,
CONTEXT_ACCESSIBILITY_MODE_ENABLED
.
negate
())
),
'
Terminal: Scroll To Next Command
'
,
category
);
actionRegistry
.
registerWorkbenchAction
(
new
SyncActionDescriptor
(
SelectToPreviousCommandAction
,
SelectToPreviousCommandAction
.
ID
,
SelectToPreviousCommandAction
.
LABEL
,
{
primary
:
0
,
mac
:
{
primary
:
KeyMod
.
CtrlCmd
|
KeyMod
.
Shift
|
KeyCode
.
UpArrow
}
...
...
src/vs/workbench/contrib/terminal/browser/terminalFindWidget.ts
浏览文件 @
4b2dfa96
...
...
@@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import
{
SimpleFindWidget
}
from
'
vs/
editor/contrib
/find/simpleFindWidget
'
;
import
{
SimpleFindWidget
}
from
'
vs/
workbench/contrib/codeEditor/browser
/find/simpleFindWidget
'
;
import
{
IContextViewService
}
from
'
vs/platform/contextview/browser/contextView
'
;
import
{
ITerminalService
,
KEYBINDING_CONTEXT_TERMINAL_FIND_WIDGET_INPUT_FOCUSED
,
KEYBINDING_CONTEXT_TERMINAL_FIND_WIDGET_FOCUSED
}
from
'
vs/workbench/contrib/terminal/common/terminal
'
;
import
{
IContextKeyService
,
IContextKey
}
from
'
vs/platform/contextkey/common/contextkey
'
;
...
...
src/vs/workbench/contrib/terminal/browser/terminalInstance.ts
浏览文件 @
4b2dfa96
...
...
@@ -1445,7 +1445,8 @@ export class TerminalInstance implements ITerminalInstance {
}
public
toggleEscapeSequenceLogging
():
void
{
this
.
_xterm
.
setOption
(
'
logLevel
'
,
'
debug
'
);
const
isDebug
=
this
.
_xterm
.
getOption
(
'
logLevel
'
)
===
'
debug
'
;
this
.
_xterm
.
setOption
(
'
logLevel
'
,
isDebug
?
'
info
'
:
'
debug
'
);
}
public
getInitialCwd
():
Promise
<
string
>
{
...
...
src/vs/workbench/contrib/webview/browser/webviewFindWidget.ts
浏览文件 @
4b2dfa96
...
...
@@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import
{
SimpleFindWidget
}
from
'
vs/
editor/contrib
/find/simpleFindWidget
'
;
import
{
SimpleFindWidget
}
from
'
vs/
workbench/contrib/codeEditor/browser
/find/simpleFindWidget
'
;
import
{
IContextKeyService
}
from
'
vs/platform/contextkey/common/contextkey
'
;
import
{
IContextViewService
}
from
'
vs/platform/contextview/browser/contextView
'
;
...
...
@@ -54,4 +54,4 @@ export class WebviewFindWidget extends SimpleFindWidget {
protected
onFindInputFocusTrackerFocus
()
{
}
protected
onFindInputFocusTrackerBlur
()
{
}
}
\ No newline at end of file
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录