diff --git a/build/lib/asar.ts b/build/lib/asar.ts index 07b321fd41d44229a1036f65ee32b5e2cbadb550..5cdbe4f4681e050fbe20d214d857d4e0ef791142 100644 --- a/build/lib/asar.ts +++ b/build/lib/asar.ts @@ -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 = require('asar/lib/filesystem'); import * as VinylFile from 'vinyl'; import * as minimatch from 'minimatch'; diff --git a/src/bootstrap-window.js b/src/bootstrap-window.js index a9f5e922a40af77f1640159fa68649e0eb3c333e..009ea7aae6794d738fb1c2c21f2489cb0bb3ea66 100644 --- a/src/bootstrap-window.js +++ b/src/bootstrap-window.js @@ -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) { diff --git a/src/main.js b/src/main.js index f08cc27e21730a2c7ae6899d250038e138eb757c..ad838aa245e2ea1f4cd9f83063891bdce7a8b222 100644 --- a/src/main.js +++ b/src/main.js @@ -89,7 +89,7 @@ registerListeners(); * Support user defined locale: load it early before app('ready') * to have more things running in parallel. * - * @type {Promise | undefined} + * @type {Promise | undefined} */ let nlsConfigurationPromise = undefined; @@ -523,7 +523,7 @@ function mkdirp(dir) { } /** - * @param {string | undefined} dir + * @param {string | undefined} dir * @returns {Promise} */ async function mkdirpIgnoreError(dir) { diff --git a/src/vs/base/parts/sandbox/electron-browser/preload.js b/src/vs/base/parts/sandbox/electron-browser/preload.js index 9d58c50b093d08f76e1907e936eb62ae8b401419..05245f3fc88dbfa0c58f2364f5db989a388119d1 100644 --- a/src/vs/base/parts/sandbox/electron-browser/preload.js +++ b/src/vs/base/parts/sandbox/electron-browser/preload.js @@ -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} */ @@ -322,7 +322,7 @@ * actual value will be set after `resolveConfiguration` * has finished. * - * @returns {ISandboxConfiguration | undefined} + * @returns {ISandboxConfiguration | undefined} */ configuration() { return configuration; diff --git a/src/vs/editor/contrib/suggest/test/suggestModel.test.ts b/src/vs/editor/contrib/suggest/test/suggestModel.test.ts index 9282275e1dbdd07fac10e4f8ca111bd75d6a71ed..b6274d22a58dc29a7483cbefba4eca9d05530bb7 100644 --- a/src/vs/editor/contrib/suggest/test/suggestModel.test.ts +++ b/src/vs/editor/contrib/suggest/test/suggestModel.test.ts @@ -142,10 +142,10 @@ suite('SuggestModel - Context', function () { const model = createTextModel('aa', undefined, outerMode.getLanguageIdentifier()); disposables.push(model); - assertAutoTrigger(model, 1, true, 'a| — should trigger at boundary between languages'); + assertAutoTrigger(model, 4, true, 'a — should trigger at boundary between languages'); assertAutoTrigger(model, 5, false, 'a|a — should NOT trigger at start of word'); assertAutoTrigger(model, 6, true, 'aa|< — should trigger at end of word'); assertAutoTrigger(model, 8, true, 'aa — should trigger at end of word at boundary'); diff --git a/src/vs/vscode.d.ts b/src/vs/vscode.d.ts index b1690d47332db0a789e9a015c6b3f78d6c1f68fe..df9da18f92fcfc181cce8a9a2ac00f51558909ce 100644 --- a/src/vs/vscode.d.ts +++ b/src/vs/vscode.d.ts @@ -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 diff --git a/src/vs/workbench/browser/parts/editor/editorAutoSave.ts b/src/vs/workbench/browser/parts/editor/editorAutoSave.ts index ed19e3feb61875616cfd0dddcbc6d976625855e5..137e6bd4023a20be908cf0cf660175e916d22f55 100644 --- a/src/vs/workbench/browser/parts/editor/editorAutoSave.ts +++ b/src/vs/workbench/browser/parts/editor/editorAutoSave.ts @@ -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)) || diff --git a/src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts b/src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts index 7cf8d21e06110eb42b497dd64dde3a3fd3600fd2..95611efebd13a213c4c9dbb1b85f5ed3c6a64991 100644 --- a/src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts +++ b/src/vs/workbench/contrib/comments/browser/commentsEditorContribution.ts @@ -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 { diff --git a/src/vs/workbench/services/history/browser/history.ts b/src/vs/workbench/services/history/browser/history.ts index 4cd0c8be9ccea06993bbd3c8c5353eaceb5e30bf..c931eb0fedd4584cfc892674fdb805a6198f70f6 100644 --- a/src/vs/workbench/services/history/browser/history.ts +++ b/src/vs/workbench/services/history/browser/history.ts @@ -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)) {