Browse Source

Fixes webview import issues

main
Eric Amodio 4 years ago
parent
commit
0e9fde9386
4 changed files with 12 additions and 11 deletions
  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 View File

@ -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 View File

@ -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 View File

@ -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 View File

@ -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);

Loading…
Cancel
Save