mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-22 10:46:11 +00:00
GitHub - revert ESM migration (#247322)
* Revert "fix github extension bundling (#247314)" This reverts commit0cffb673f5. * Revert "migrate github-extension to ESM" This reverts commit493874c390. * Add missing JS file
This commit is contained in:
@@ -5,12 +5,10 @@
|
||||
|
||||
import { TextDecoder } from 'util';
|
||||
import { commands, env, ProgressLocation, Uri, window, workspace, QuickPickOptions, FileType, l10n, Disposable, TextDocumentContentProvider } from 'vscode';
|
||||
import { getOctokit } from './auth.js';
|
||||
import { GitErrorCodes, PushErrorHandler, Remote, Repository } from './typings/git.js';
|
||||
import * as path from 'path';
|
||||
import TelemetryReporter from '@vscode/extension-telemetry';
|
||||
|
||||
|
||||
import { getOctokit } from './auth';
|
||||
import { GitErrorCodes, PushErrorHandler, Remote, Repository } from './typings/git';
|
||||
import * as path from 'path';
|
||||
|
||||
type Awaited<T> = T extends PromiseLike<infer U> ? Awaited<U> : T;
|
||||
|
||||
@@ -102,7 +100,7 @@ export class GithubPushErrorHandler implements PushErrorHandler {
|
||||
private disposables: Disposable[] = [];
|
||||
private commandErrors = new CommandErrorOutputTextDocumentContentProvider();
|
||||
|
||||
constructor(private readonly telemetryReporter: TelemetryReporter.default) {
|
||||
constructor(private readonly telemetryReporter: TelemetryReporter) {
|
||||
this.disposables.push(workspace.registerTextDocumentContentProvider('github-output', this.commandErrors));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user