Skip to content

Commit

Permalink
Add minor review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
xlight05 committed May 27, 2023
1 parent 0acecbb commit 3b95b58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,12 @@ export enum JavaBuildTool {
gradle = 'gradle'
}


export const ballerinaTomlFileName: string = "Ballerina.toml"
export enum BallerinaBackend {
jvm = 'jvm',
native = 'native'
}


export enum PackageManager {
npm = 'npm',
brew = 'brew'
Expand Down
8 changes: 4 additions & 4 deletions src/debug/BallerinaDebugProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ import { hostStartTaskName, localhost } from '../constants';
import { localize } from '../localize';
import { FuncDebugProviderBase } from './FuncDebugProviderBase';

export const defaultJavaDebugPort: number = 5005;
export const defaultBallerinaDebugPort: number = 5005;

export const ballerinaDebugConfig: DebugConfiguration = {
name: localize('attachJava', 'Attach to Ballerina Functions'),
name: localize('attachBallerina', 'Attach to Ballerina Functions'),
type: 'ballerina',
request: 'attach',
hostName: localhost,
port: defaultJavaDebugPort,
port: defaultBallerinaDebugPort,
preLaunchTask: hostStartTaskName
};

export class BallerinaDebugProvider extends FuncDebugProviderBase {
public readonly workerArgKey: string = 'BALLERINA_DEBUG_FLAGS';
protected readonly defaultPortOrPipeName: number = defaultJavaDebugPort;
protected readonly defaultPortOrPipeName: number = defaultBallerinaDebugPort;
protected readonly debugConfig: DebugConfiguration = ballerinaDebugConfig;

// eslint-disable-next-line @typescript-eslint/require-await
Expand Down

0 comments on commit 3b95b58

Please sign in to comment.