Skip to content

Commit 5facf74

Browse files
committed
debt - remove out-dated or accepted todos
1 parent 73aeb31 commit 5facf74

5 files changed

Lines changed: 5 additions & 12 deletions

File tree

src/vs/base/test/common/uri.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ suite('URI', () => {
404404
path = 'foo/bar';
405405
assert.equal(URI.file(path).path, '/foo/bar');
406406
path = './foo/bar';
407-
assert.equal(URI.file(path).path, '/./foo/bar'); // todo@joh missing normalization
407+
assert.equal(URI.file(path).path, '/./foo/bar'); // missing normalization
408408

409409
const fileUri1 = URI.parse(`file:foo/bar`);
410410
assert.equal(fileUri1.path, '/foo/bar');

src/vs/editor/common/services/editorWorkerServiceImpl.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,13 @@ function canSyncModel(modelService: IModelService, resource: URI): boolean {
4545
}
4646

4747
export class EditorWorkerServiceImpl extends Disposable implements IEditorWorkerService {
48-
public _serviceBrand: undefined;
48+
49+
_serviceBrand: undefined;
4950

5051
private readonly _modelService: IModelService;
5152
private readonly _workerManager: WorkerManager;
5253
private readonly _logService: ILogService;
54+
5355
constructor(
5456
@IModelService modelService: IModelService,
5557
@ITextResourceConfigurationService configurationService: ITextResourceConfigurationService,
@@ -60,7 +62,7 @@ export class EditorWorkerServiceImpl extends Disposable implements IEditorWorker
6062
this._workerManager = this._register(new WorkerManager(this._modelService));
6163
this._logService = logService;
6264

63-
// todo@joh make sure this happens only once
65+
// register default link-provider and default completions-provider
6466
this._register(modes.LinkProviderRegistry.register('*', {
6567
provideLinks: (model, token) => {
6668
if (!canSyncModel(this._modelService, model.uri)) {

src/vs/workbench/services/bulkEdit/browser/bulkEditService.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,6 @@ export class BulkEditService implements IBulkEditService {
402402
}
403403

404404
// try to find code editor
405-
// todo@joh, prefer editor that gets edited
406405
if (!codeEditor) {
407406
let candidate = this._editorService.activeTextEditorWidget;
408407
if (isCodeEditor(candidate)) {

src/vs/workbench/services/extensions/worker/extensionHostWorker.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ import { IHostUtils } from 'vs/workbench/api/common/extHostExtensionService';
1313
import 'vs/workbench/services/extensions/worker/extHost.services';
1414

1515
//#region --- Define, capture, and override some globals
16-
//todo@joh do not allow extensions to call postMessage and other globals...
1716

18-
// declare WorkerSelf#postMessage
1917
declare function postMessage(data: any, transferables?: Transferable[]): void;
2018

2119
declare namespace self {

src/vs/workbench/services/timer/electron-browser/timerService.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,6 @@ export interface IStartupMetrics {
227227
* * Reading of package.json-files is avoided by caching them all in a single file (after the read,
228228
* until another extension is installed)
229229
* * Happens in parallel to other things, depends on async timing
230-
*
231-
* todo@joh/ramya this measures an artifical dealy we have added, see https://github.com/Microsoft/vscode/blob/2f07ddae8bf56e969e3f4ba1447258ebc999672f/src/vs/workbench/services/extensions/electron-browser/extensionService.ts#L311-L326
232230
*/
233231
readonly ellapsedExtensions: number;
234232

@@ -264,8 +262,6 @@ export interface IStartupMetrics {
264262
* * Measured with the `willRestoreEditors` and `didRestoreEditors` performance marks.
265263
* * This should be looked at per editor and per editor type.
266264
* * Happens in parallel to other things, depends on async timing
267-
*
268-
* todo@joh/ramya We should probably measures each editor individually?
269265
*/
270266
readonly ellapsedEditorRestore: number;
271267

@@ -274,8 +270,6 @@ export interface IStartupMetrics {
274270
*
275271
* * Happens in the renderer-process
276272
* * Measured with the `willStartWorkbench` and `didStartWorkbench` performance marks.
277-
*
278-
* todo@joh/ramya Not sure if this is useful because this includes too much
279273
*/
280274
readonly ellapsedWorkbench: number;
281275

0 commit comments

Comments
 (0)