Przeglądaj źródła

Fixes webview import issues

main
Eric Amodio 4 lat temu
rodzic
commit
0e9fde9386
4 zmienionych plików z 12 dodań i 11 usunięć
  1. +7
    -1
      src/config.ts
  2. +3
    -8
      src/logger.ts
  3. +1
    -1
      src/vsls/protocol.ts
  4. +1
    -1
      src/webviews/apps/rebase/rebase.ts

+ 7
- 1
src/config.ts Wyświetl plik

@ -1,5 +1,11 @@
'use strict';
import { TraceLevel } from './logger';
export enum TraceLevel {
Silent = 'silent',
Errors = 'errors',
Verbose = 'verbose',
Debug = 'debug',
}
export interface Config {
autolinks: AutolinkReference[] | null;

+ 3
- 8
src/logger.ts Wyświetl plik

@ -1,19 +1,14 @@
'use strict';
import { ExtensionContext, ExtensionMode, OutputChannel, Uri, window } from 'vscode';
import { TraceLevel } from './configuration';
import { extensionOutputChannelName } from './constants';
import { getCorrelationContext, getNextCorrelationId } from './system';
const emptyStr = '';
export enum TraceLevel {
Silent = 'silent',
Errors = 'errors',
Verbose = 'verbose',
Debug = 'debug',
}
const ConsolePrefix = `[${extensionOutputChannelName}]`;
export { TraceLevel } from './configuration';
export interface LogCorrelationContext {
readonly correlationId?: number;
readonly prefix: string;

+ 1
- 1
src/vsls/protocol.ts Wyświetl plik

@ -1,5 +1,5 @@
'use strict';
import { GitCommandOptions } from '../git/git';
import type { GitCommandOptions } from '../git/git';
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export class RequestType<Request, Response> {

+ 1
- 1
src/webviews/apps/rebase/rebase.ts Wyświetl plik

@ -89,7 +89,7 @@ class RebaseEditor extends App {
}
const ref = e.item.dataset.ref;
if (ref) {
if (ref != null) {
console.log(ref, e.newIndex, e.oldIndex);
this.moveEntry(ref, e.newIndex, false);

Ładowanie…
Anuluj
Zapisz