remove weird space character from sources
This commit is contained in:
parent
17003eb6a6
commit
a088f8ddc0
|
@ -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';
|
||||
|
|
4
src/bootstrap-window.js
vendored
4
src/bootstrap-window.js
vendored
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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');
|
||||
|
|
2
src/vs/vscode.d.ts
vendored
2
src/vs/vscode.d.ts
vendored
|
@ -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
|
||||
|
|
|
@ -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)) ||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue