Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
a088f8dd
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,发现更多精彩内容 >>
未验证
提交
a088f8dd
编写于
9月 24, 2021
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove weird space character from sources
上级
17003eb6
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
16 addition
and
16 deletion
+16
-16
build/lib/asar.ts
build/lib/asar.ts
+1
-1
src/bootstrap-window.js
src/bootstrap-window.js
+2
-2
src/main.js
src/main.js
+2
-2
src/vs/base/parts/sandbox/electron-browser/preload.js
src/vs/base/parts/sandbox/electron-browser/preload.js
+4
-4
src/vs/editor/contrib/suggest/test/suggestModel.test.ts
src/vs/editor/contrib/suggest/test/suggestModel.test.ts
+2
-2
src/vs/vscode.d.ts
src/vs/vscode.d.ts
+1
-1
src/vs/workbench/browser/parts/editor/editorAutoSave.ts
src/vs/workbench/browser/parts/editor/editorAutoSave.ts
+2
-2
src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts
...ch/contrib/comments/browser/commentsEditorContribution.ts
+1
-1
src/vs/workbench/services/history/browser/history.ts
src/vs/workbench/services/history/browser/history.ts
+1
-1
未找到文件。
build/lib/asar.ts
浏览文件 @
a088f8dd
...
...
@@ -7,7 +7,7 @@
import
*
as
path
from
'
path
'
;
import
*
as
es
from
'
event-stream
'
;
const
pickle
=
require
(
'
chromium-pickle-js
'
);
const
pickle
=
require
(
'
chromium-pickle-js
'
);
const
Filesystem
=
<
typeof
AsarFilesystem
>
require
(
'
asar/lib/filesystem
'
);
import
*
as
VinylFile
from
'
vinyl
'
;
import
*
as
minimatch
from
'
minimatch
'
;
...
...
src/bootstrap-window.js
浏览文件 @
a088f8dd
...
...
@@ -186,7 +186,7 @@
}
/**
* @param {boolean |
undefined} disallowReloadKeybinding
* @param {boolean |
undefined} disallowReloadKeybinding
* @returns {() => void}
*/
function
registerDeveloperKeybindings
(
disallowReloadKeybinding
)
{
...
...
@@ -211,7 +211,7 @@
const
TOGGLE_DEV_TOOLS_KB_ALT
=
'
123
'
;
// F12
const
RELOAD_KB
=
(
safeProcess
.
platform
===
'
darwin
'
?
'
meta-82
'
:
'
ctrl-82
'
);
// mac: Cmd-R, rest: Ctrl-R
/** @type {((e: KeyboardEvent) => void) |
undefined} */
/** @type {((e: KeyboardEvent) => void) |
undefined} */
let
listener
=
function
(
e
)
{
const
key
=
extractKey
(
e
);
if
(
key
===
TOGGLE_DEV_TOOLS_KB
||
key
===
TOGGLE_DEV_TOOLS_KB_ALT
)
{
...
...
src/main.js
浏览文件 @
a088f8dd
...
...
@@ -89,7 +89,7 @@ registerListeners();
* Support user defined locale: load it early before app('ready')
* to have more things running in parallel.
*
* @type {Promise<NLSConfiguration> |
undefined}
* @type {Promise<NLSConfiguration> |
undefined}
*/
let
nlsConfigurationPromise
=
undefined
;
...
...
@@ -523,7 +523,7 @@ function mkdirp(dir) {
}
/**
* @param {string |
undefined} dir
* @param {string |
undefined} dir
* @returns {Promise<string | undefined>}
*/
async
function
mkdirpIgnoreError
(
dir
)
{
...
...
src/vs/base/parts/sandbox/electron-browser/preload.js
浏览文件 @
a088f8dd
...
...
@@ -13,7 +13,7 @@
/**
* @param {string} channel
* @returns {true |
never}
* @returns {true |
never}
*/
function
validateIPC
(
channel
)
{
if
(
!
channel
||
!
channel
.
startsWith
(
'
vscode:
'
))
{
...
...
@@ -37,7 +37,7 @@
/**
* @param {string} key the name of the process argument to parse
* @returns {string |
undefined}
* @returns {string |
undefined}
*/
function
parseArgv
(
key
)
{
for
(
const
arg
of
process
.
argv
)
{
...
...
@@ -57,7 +57,7 @@
* @typedef {import('../common/sandboxTypes').ISandboxConfiguration} ISandboxConfiguration
*/
/** @type {ISandboxConfiguration |
undefined} */
/** @type {ISandboxConfiguration |
undefined} */
let
configuration
=
undefined
;
/** @type {Promise<ISandboxConfiguration>} */
...
...
@@ -322,7 +322,7 @@
* actual value will be set after `resolveConfiguration`
* has finished.
*
* @returns {ISandboxConfiguration |
undefined}
* @returns {ISandboxConfiguration |
undefined}
*/
configuration
()
{
return
configuration
;
...
...
src/vs/editor/contrib/suggest/test/suggestModel.test.ts
浏览文件 @
a088f8dd
...
...
@@ -142,10 +142,10 @@ suite('SuggestModel - Context', function () {
const
model
=
createTextModel
(
'
a<xx>a<x>
'
,
undefined
,
outerMode
.
getLanguageIdentifier
());
disposables
.
push
(
model
);
assertAutoTrigger
(
model
,
1
,
true
,
'
a|<x —
should trigger at end of word
'
);
assertAutoTrigger
(
model
,
1
,
true
,
'
a|<x —
should trigger at end of word
'
);
assertAutoTrigger
(
model
,
2
,
false
,
'
a<|x — should NOT trigger at start of word
'
);
assertAutoTrigger
(
model
,
3
,
false
,
'
a<x|x — should NOT trigger in middle of word
'
);
assertAutoTrigger
(
model
,
4
,
true
,
'
a<xx|> —
should trigger at boundary between languages
'
);
assertAutoTrigger
(
model
,
4
,
true
,
'
a<xx|> —
should trigger at boundary between languages
'
);
assertAutoTrigger
(
model
,
5
,
false
,
'
a<xx>|a — should NOT trigger at start of word
'
);
assertAutoTrigger
(
model
,
6
,
true
,
'
a<xx>a|< — should trigger at end of word
'
);
assertAutoTrigger
(
model
,
8
,
true
,
'
a<xx>a<x|> — should trigger at end of word at boundary
'
);
...
...
src/vs/vscode.d.ts
浏览文件 @
a088f8dd
...
...
@@ -8473,7 +8473,7 @@ declare module 'vscode' {
* ```
*
* *Note* that extensions should not cache the result of `asExternalUri` as the resolved uri may become invalid due to
* a system or user action —
for example, in remote cases, a user may close a port forwarding tunnel that was opened by
* a system or user action —
for example, in remote cases, a user may close a port forwarding tunnel that was opened by
* `asExternalUri`.
*
* #### Any other scheme
...
...
src/vs/workbench/browser/parts/editor/editorAutoSave.ts
浏览文件 @
a088f8dd
...
...
@@ -95,8 +95,8 @@ export class EditorAutoSave extends Disposable implements IWorkbenchContribution
return
;
// no auto save for readonly or untitled editors
}
//
Determine if we need to save all. In case of a window focus change we also save if
// auto
save mode is configured to be ON_FOCUS_CHANGE (editor focus
change)
//
Determine if we need to save all. In case of a window focus change we also save if
// auto
save mode is configured to be ON_FOCUS_CHANGE (editor focus
change)
const
mode
=
this
.
filesConfigurationService
.
getAutoSaveMode
();
if
(
(
reason
===
SaveReason
.
WINDOW_CHANGE
&&
(
mode
===
AutoSaveMode
.
ON_FOCUS_CHANGE
||
mode
===
AutoSaveMode
.
ON_WINDOW_CHANGE
))
||
...
...
src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts
浏览文件 @
a088f8dd
...
...
@@ -319,7 +319,7 @@ export class CommentController implements IEditorContribution {
this
.
_commentWidgets
.
forEach
(
widget
=>
widget
.
dispose
());
this
.
editor
=
null
!
;
// Strict null override —
nulling out in dispose
this
.
editor
=
null
!
;
// Strict null override —
nulling out in dispose
}
public
onModelChanged
(
e
:
IModelChangedEvent
):
void
{
...
...
src/vs/workbench/services/history/browser/history.ts
浏览文件 @
a088f8dd
...
...
@@ -59,7 +59,7 @@ class TextEditorState {
justifiesNewPushState
(
other
:
TextEditorState
,
event
?:
ICursorPositionChangedEvent
):
boolean
{
if
(
event
?.
source
===
'
api
'
)
{
return
true
;
// always let API source win (e.g. "Go to definition" should add a history
entry)
return
true
;
// always let API source win (e.g. "Go to definition" should add a history
entry)
}
if
(
!
this
.
_editorInput
.
matches
(
other
.
_editorInput
))
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录