Skip to content

Commit

Permalink
squashme: fix es5ClassCompat issues
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-marechal committed May 6, 2021
1 parent b0ba009 commit 3a4be59
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions packages/plugin-ext/src/plugin/types-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import { UUID } from '@theia/core/shared/@phosphor/coreutils';
import { illegalArgument } from '../common/errors';
import * as theia from '@theia/plugin';
import type * as theia from '@theia/plugin';
import { URI } from '@theia/core/shared/vscode-uri';
import { relative } from '../common/paths-util';
import { startsWithIgnoreCase } from '@theia/core/lib/common/strings';
Expand Down Expand Up @@ -831,16 +831,7 @@ export enum DebugConsoleMode {
MergeWithParent = 1
}

export class DiagnosticRelatedInformation {
location: Location;
message: string;

constructor(location: Location, message: string) {
this.location = location;
this.message = message;
}
}

@es5ClassCompat
export class Location {
uri: URI;
range: Range;
Expand All @@ -866,6 +857,17 @@ export class Location {
}
}

@es5ClassCompat
export class DiagnosticRelatedInformation {
location: Location;
message: string;

constructor(location: Location, message: string) {
this.location = location;
this.message = message;
}
}

export enum DiagnosticTag {
Unnecessary = 1,
}
Expand Down Expand Up @@ -1011,6 +1013,7 @@ export class DocumentLink {
}
}

@es5ClassCompat
export class CodeLens {

range: Range;
Expand Down Expand Up @@ -1253,6 +1256,7 @@ export class WorkspaceEdit implements theia.WorkspaceEdit {
}
}

@es5ClassCompat
export class TreeItem {

label?: string | theia.TreeItemLabel;
Expand Down Expand Up @@ -1512,6 +1516,7 @@ export enum ProgressLocation {
Notification = 15
}

@es5ClassCompat
export class ProcessExecution {
private executionProcess: string;
private arguments: string[];
Expand Down Expand Up @@ -1591,6 +1596,7 @@ export enum TaskRevealKind {
Never = 3
}

@es5ClassCompat
export class ShellExecution {
private shellCommandLine: string;
private shellCommand: string | theia.ShellQuotedString;
Expand Down Expand Up @@ -1918,6 +1924,7 @@ export class Task2 extends Task {
detail?: string;
}

@es5ClassCompat
export class DebugAdapterExecutable {
/**
* The command or path of the debug adapter executable.
Expand Down

0 comments on commit 3a4be59

Please sign in to comment.