mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-27 10:37:38 +01:00
fix some TS 4.1 errors (#106358)
This commit is contained in:
@@ -39,9 +39,9 @@ export class MainThreadMessageService implements MainThreadMessageServiceShape {
|
||||
}
|
||||
}
|
||||
|
||||
private _showMessage(severity: Severity, message: string, commands: { title: string; isCloseAffordance: boolean; handle: number; }[], extension: IExtensionDescription | undefined): Promise<number> {
|
||||
private _showMessage(severity: Severity, message: string, commands: { title: string; isCloseAffordance: boolean; handle: number; }[], extension: IExtensionDescription | undefined): Promise<number | undefined> {
|
||||
|
||||
return new Promise<number>(resolve => {
|
||||
return new Promise<number | undefined>(resolve => {
|
||||
|
||||
const primaryActions: MessageItemAction[] = [];
|
||||
|
||||
|
||||
@@ -224,9 +224,9 @@ export class ProgressService extends Disposable implements IProgressService {
|
||||
// Create a promise that we can resolve as needed
|
||||
// when the outside calls dispose on us
|
||||
let promiseResolve: () => void;
|
||||
const promise = new Promise<R>(resolve => promiseResolve = resolve);
|
||||
const promise = new Promise<void>(resolve => promiseResolve = resolve);
|
||||
|
||||
this.withWindowProgress<R>({
|
||||
this.withWindowProgress({
|
||||
location: ProgressLocation.Window,
|
||||
title: options.title ? parseLinkedText(options.title).toString() : undefined, // convert markdown links => string
|
||||
command: 'notifications.showList'
|
||||
|
||||
@@ -307,7 +307,7 @@ export abstract class AbstractWorkspaceEditingService implements IWorkspaceEditi
|
||||
);
|
||||
}
|
||||
|
||||
abstract async enterWorkspace(path: URI): Promise<void>;
|
||||
abstract enterWorkspace(path: URI): Promise<void>;
|
||||
|
||||
protected async doEnterWorkspace(path: URI): Promise<IEnterWorkspaceResult | null> {
|
||||
if (!!this.environmentService.extensionTestsLocationURI) {
|
||||
|
||||
Reference in New Issue
Block a user