Skip to content

Commit

Permalink
Viewport events are not being mediated.
Browse files Browse the repository at this point in the history
  • Loading branch information
stricklandrbls committed May 6, 2024
1 parent d7a5703 commit 06eb06b
Show file tree
Hide file tree
Showing 11 changed files with 506 additions and 334 deletions.
77 changes: 49 additions & 28 deletions src/dataEditor/dataEditorClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,13 @@ import {
ServerStopPredicate,
} from './include/server/ServerInfo'
import { isDFDLDebugSessionActive } from './include/utils'
import { OmegaEditServer, ServiceHeartbeat } from './include/server/Server'
import { DataEditor, DataEditorUI } from './include/client/dataEditorClient'
import { StandaloneEditor } from './standalone/standaloneEditor'
import { DataEditor } from './include/client/dataEditorClient'
import {
DataEditorWebviewPanel,
StandaloneEditor,
} from './standalone/standaloneEditor'
import { IStatusUpdater } from './include/status/IStatus'
import { OmegaEditServer } from './include/omegaEdit/omegaEditServer'

// *****************************************************************************
// global constants
Expand Down Expand Up @@ -127,39 +131,56 @@ let omegaEditPort: number = 0
// const vscodeInfoHeartbeat = new ServiceHeartbeat('test', (hb) => {
// vscode.window.showInformationMessage(`Got heartbeat w/ ${hb.latency} latency`)
// })
class DataEditorWebviewPanel implements DataEditorUI {
protected panel: vscode.WebviewPanel
private view: string = 'dataeditor'
private constructor(title: string) {
this.panel = vscode.window.createWebviewPanel(
this.view,
title,
vscode.ViewColumn.Active,
{ enableScripts: true, retainContextWhenHidden: true }
)
class StatusBar implements IStatusUpdater {
private tag: string = ''
private item = vscode.window.createStatusBarItem(
vscode.StatusBarAlignment.Left
)
update(status: string) {
this.item.text = this.tag + status
this.item.show()
}
static async create(title: string): Promise<DataEditorWebviewPanel> {
return new Promise((resolve, reject) => {
resolve(new DataEditorWebviewPanel(title))
})
setTag(tag: string) {
this.tag = '[' + tag + '] '
}
async show(): Promise<void> {
this.panel.reveal()
dispose() {
this.item.dispose()
}
}
interface DataEditorInitializer {
initialize(params: any): Promise<DataEditor>
}
const StandaloneInitializer: DataEditorInitializer = {
initialize: (params: { ctx: vscode.ExtensionContext }) => {
return new Promise(async (resolve) => {
const statusBar = new StatusBar()
statusBar.update('[Data Editor]: Extracting Configuration Variables')
let configVars = editor_config.extractConfigurationVariables()
let server = new OmegaEditServer('127.0.0.1', configVars.port)

await server.start(statusBar)
statusBar.update('[Data Editor]: Server Startup Complete!')
/* Moving on w/ assumption that server is up and running */
const editor = new StandaloneEditor(params.ctx, configVars)
await editor.getServiceFrom(server)
editor.initializeUI(new DataEditorWebviewPanel(editor.filePath()))
statusBar.dispose()
resolve(editor)
})
},
}
export function activate(ctx: vscode.ExtensionContext): void {
ctx.subscriptions.push(
vscode.commands.registerCommand(
DATA_EDITOR_COMMAND,
async (fileToEdit: string = '') => {
let configVars = editor_config.extractConfigurationVariables()
let server = new OmegaEditServer('127.0.0.1', configVars.port)
await server.start()
/* Moving on w/ assumption that server is up and running */
const editor = new StandaloneEditor(ctx, configVars)
await editor.initialize(server)
// await server.register(editor.heatbeat)
// return await createDataEditorWebviewPanel(ctx, configVars, fileToEdit)
async (
initializer: DataEditorInitializer = StandaloneInitializer,
params: any = {
ctx: ctx,
}
) => {
const editor = await initializer.initialize(params)
return editor
}
)
)
Expand Down
23 changes: 15 additions & 8 deletions src/dataEditor/include/client/dataEditorClient.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
import { IEditServiceProvider } from '../server/Server'
import { IEditService } from '../service/editorService'
export abstract class DataEditor {
import { IEditService, IServiceMediator } from '../service/editorService'
import { DataEditorUI } from './dataEditorUI'
export abstract class DataEditor implements IServiceMediator {
protected abstract fileToEdit: string
protected abstract ui: DataEditorUI | undefined

protected editService: IEditService | undefined = undefined
async initialize(provider: IEditServiceProvider) {

abstract initializeUI(ui: DataEditorUI): void
abstract notify(notification: { id: string; data: any }): void
protected abstract getFile(): Promise<void>

filePath() {
return this.fileToEdit
}
async getServiceFrom(provider: IEditServiceProvider) {
await this.getFile()
this.editService = await provider.getService(this.fileToEdit)
this.editService = await provider.getService(this, this.fileToEdit)
}
protected abstract getFile(): Promise<void>
}
export interface DataEditorUI {
show(): Promise<void>
}
4 changes: 4 additions & 0 deletions src/dataEditor/include/client/dataEditorUI.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export interface DataEditorUI {
show(): Promise<void>
sendMessage(msg: any): void
}
102 changes: 102 additions & 0 deletions src/dataEditor/include/omegaEdit/Session.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
import {
ALL_EVENTS,
CreateSessionResponse,
EditorClient,
EventSubscriptionRequest,
ViewportDataResponse,

Check failure on line 6 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: ubuntu-20.04, Node: 18, Java: 17)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 6 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: ubuntu-20.04, Node: 18, Java: 11)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 6 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: ubuntu-20.04, Node: 16, Java: 17)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 6 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: ubuntu-20.04, Node: 18, Java: 8)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 6 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: ubuntu-20.04, Node: 16, Java: 8)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 6 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: ubuntu-20.04, Node: 16, Java: 11)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 6 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: macos-12, Node: 18, Java: 17)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 6 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: macos-12, Node: 16, Java: 11)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 6 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: macos-12, Node: 16, Java: 17)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 6 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: macos-12, Node: 16, Java: 8)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 6 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: macos-12, Node: 18, Java: 11)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 6 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: macos-12, Node: 18, Java: 8)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 6 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: windows-2019, Node: 16, Java: 8)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 6 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: windows-2019, Node: 18, Java: 17)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 6 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: windows-2019, Node: 18, Java: 11)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 6 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: windows-2019, Node: 16, Java: 11)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 6 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: windows-2019, Node: 18, Java: 8)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 6 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: windows-2019, Node: 16, Java: 17)

'ViewportDataResponse' is declared but its value is never read.
ViewportEvent,
ViewportEventKind,
createViewport,
getByteOrderMark,
getClient,

Check failure on line 11 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: ubuntu-20.04, Node: 18, Java: 17)

'getClient' is declared but its value is never read.

Check failure on line 11 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: ubuntu-20.04, Node: 18, Java: 11)

'getClient' is declared but its value is never read.

Check failure on line 11 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: ubuntu-20.04, Node: 16, Java: 17)

'getClient' is declared but its value is never read.

Check failure on line 11 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: ubuntu-20.04, Node: 18, Java: 8)

'getClient' is declared but its value is never read.

Check failure on line 11 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: ubuntu-20.04, Node: 16, Java: 8)

'getClient' is declared but its value is never read.

Check failure on line 11 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: ubuntu-20.04, Node: 16, Java: 11)

'getClient' is declared but its value is never read.

Check failure on line 11 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: macos-12, Node: 18, Java: 17)

'getClient' is declared but its value is never read.

Check failure on line 11 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: macos-12, Node: 16, Java: 11)

'getClient' is declared but its value is never read.

Check failure on line 11 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: macos-12, Node: 16, Java: 17)

'getClient' is declared but its value is never read.

Check failure on line 11 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: macos-12, Node: 16, Java: 8)

'getClient' is declared but its value is never read.

Check failure on line 11 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: macos-12, Node: 18, Java: 11)

'getClient' is declared but its value is never read.

Check failure on line 11 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: macos-12, Node: 18, Java: 8)

'getClient' is declared but its value is never read.

Check failure on line 11 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: windows-2019, Node: 16, Java: 8)

'getClient' is declared but its value is never read.

Check failure on line 11 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: windows-2019, Node: 18, Java: 17)

'getClient' is declared but its value is never read.

Check failure on line 11 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: windows-2019, Node: 18, Java: 11)

'getClient' is declared but its value is never read.

Check failure on line 11 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: windows-2019, Node: 16, Java: 11)

'getClient' is declared but its value is never read.

Check failure on line 11 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: windows-2019, Node: 18, Java: 8)

'getClient' is declared but its value is never read.

Check failure on line 11 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: windows-2019, Node: 16, Java: 17)

'getClient' is declared but its value is never read.
getContentType,
getLanguage,
} from '@omega-edit/client'
import EventEmitter from 'events'
import { Viewport } from './Viewport'

/* OmegaEditService Implementation */
const SessionMetadata = {
byteOrderMark: '',
changeCount: 0,
computedFileSize: 0,
diskFileSize: 0,
fileName: '',
language: '',
type: '',
undoCount: 0,
}
export class Session {
readonly id: string

private metadata = SessionMetadata
private metadataEventEmitter = new EventEmitter()

Check failure on line 33 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: ubuntu-20.04, Node: 18, Java: 17)

'metadataEventEmitter' is declared but its value is never read.

Check failure on line 33 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: ubuntu-20.04, Node: 18, Java: 11)

'metadataEventEmitter' is declared but its value is never read.

Check failure on line 33 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: ubuntu-20.04, Node: 16, Java: 17)

'metadataEventEmitter' is declared but its value is never read.

Check failure on line 33 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: ubuntu-20.04, Node: 18, Java: 8)

'metadataEventEmitter' is declared but its value is never read.

Check failure on line 33 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: ubuntu-20.04, Node: 16, Java: 8)

'metadataEventEmitter' is declared but its value is never read.

Check failure on line 33 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: ubuntu-20.04, Node: 16, Java: 11)

'metadataEventEmitter' is declared but its value is never read.

Check failure on line 33 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: macos-12, Node: 18, Java: 17)

'metadataEventEmitter' is declared but its value is never read.

Check failure on line 33 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: macos-12, Node: 16, Java: 11)

'metadataEventEmitter' is declared but its value is never read.

Check failure on line 33 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: macos-12, Node: 16, Java: 17)

'metadataEventEmitter' is declared but its value is never read.

Check failure on line 33 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: macos-12, Node: 16, Java: 8)

'metadataEventEmitter' is declared but its value is never read.

Check failure on line 33 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: macos-12, Node: 18, Java: 11)

'metadataEventEmitter' is declared but its value is never read.

Check failure on line 33 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: macos-12, Node: 18, Java: 8)

'metadataEventEmitter' is declared but its value is never read.

Check failure on line 33 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: windows-2019, Node: 16, Java: 8)

'metadataEventEmitter' is declared but its value is never read.

Check failure on line 33 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: windows-2019, Node: 18, Java: 17)

'metadataEventEmitter' is declared but its value is never read.

Check failure on line 33 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: windows-2019, Node: 18, Java: 11)

'metadataEventEmitter' is declared but its value is never read.

Check failure on line 33 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: windows-2019, Node: 16, Java: 11)

'metadataEventEmitter' is declared but its value is never read.

Check failure on line 33 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: windows-2019, Node: 18, Java: 8)

'metadataEventEmitter' is declared but its value is never read.

Check failure on line 33 in src/dataEditor/include/omegaEdit/Session.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: windows-2019, Node: 16, Java: 17)

'metadataEventEmitter' is declared but its value is never read.
private viewports: Map<string, Viewport> = new Map()

constructor(
response: CreateSessionResponse,
public onMetadataUpdate: (data: typeof SessionMetadata) => void
) {
this.id = response.getSessionId()
if (response.hasFileSize()) {
this.metadata.diskFileSize = this.metadata.computedFileSize =
response.getFileSize()!
}
this.populateAsyncMetadata().then(() => {
this.onMetadataUpdate(this.metadata)
})
}
async createViewport(
client: EditorClient,
offset: number,
capacity: number,
onDataEvent: (event: Viewport) => void
): Promise<void> {
return new Promise((resolve, reject) => {
createViewport(undefined, this.id, offset, capacity)
.then((response) => {
this.viewports.set(
response.getViewportId(),
new Viewport(response.getData_asU8(), capacity)
)
client
.subscribeToViewportEvents(
new EventSubscriptionRequest()
.setId(response.getViewportId())
.setInterest(
ALL_EVENTS & ~ViewportEventKind.VIEWPORT_EVT_MODIFY
)
)
.on('data', async (event: ViewportEvent) => {
onDataEvent(new Viewport(event.getData_asU8(), 1024))
})
resolve()
})
.catch((err) => {
reject(err)
})
})
}
info() {
return { ...this.metadata }
}
private async populateAsyncMetadata() {
const contentTypeResponse = await getContentType(
this.id,
0,
Math.min(1024, this.metadata.computedFileSize)
)
this.metadata.type = contentTypeResponse.getContentType()

const byteOrderMarkResponse = await getByteOrderMark(this.id, 0)
this.metadata.byteOrderMark = byteOrderMarkResponse.getByteOrderMark()

const languageResponse = await getLanguage(
this.id,
0,
Math.min(1024, this.metadata.computedFileSize),
this.metadata.byteOrderMark
)
this.metadata.language = languageResponse.getLanguage()
}
}
11 changes: 11 additions & 0 deletions src/dataEditor/include/omegaEdit/Viewport.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { ViewportDataResponse } from '@omega-edit/client'

Check failure on line 1 in src/dataEditor/include/omegaEdit/Viewport.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: ubuntu-20.04, Node: 18, Java: 17)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 1 in src/dataEditor/include/omegaEdit/Viewport.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: ubuntu-20.04, Node: 18, Java: 11)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 1 in src/dataEditor/include/omegaEdit/Viewport.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: ubuntu-20.04, Node: 16, Java: 17)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 1 in src/dataEditor/include/omegaEdit/Viewport.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: ubuntu-20.04, Node: 18, Java: 8)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 1 in src/dataEditor/include/omegaEdit/Viewport.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: ubuntu-20.04, Node: 16, Java: 8)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 1 in src/dataEditor/include/omegaEdit/Viewport.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: ubuntu-20.04, Node: 16, Java: 11)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 1 in src/dataEditor/include/omegaEdit/Viewport.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: macos-12, Node: 18, Java: 17)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 1 in src/dataEditor/include/omegaEdit/Viewport.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: macos-12, Node: 16, Java: 11)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 1 in src/dataEditor/include/omegaEdit/Viewport.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: macos-12, Node: 16, Java: 17)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 1 in src/dataEditor/include/omegaEdit/Viewport.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: macos-12, Node: 16, Java: 8)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 1 in src/dataEditor/include/omegaEdit/Viewport.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: macos-12, Node: 18, Java: 11)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 1 in src/dataEditor/include/omegaEdit/Viewport.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: macos-12, Node: 18, Java: 8)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 1 in src/dataEditor/include/omegaEdit/Viewport.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: windows-2019, Node: 16, Java: 8)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 1 in src/dataEditor/include/omegaEdit/Viewport.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: windows-2019, Node: 18, Java: 17)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 1 in src/dataEditor/include/omegaEdit/Viewport.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: windows-2019, Node: 18, Java: 11)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 1 in src/dataEditor/include/omegaEdit/Viewport.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: windows-2019, Node: 16, Java: 11)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 1 in src/dataEditor/include/omegaEdit/Viewport.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: windows-2019, Node: 18, Java: 8)

'ViewportDataResponse' is declared but its value is never read.

Check failure on line 1 in src/dataEditor/include/omegaEdit/Viewport.ts

View workflow job for this annotation

GitHub Actions / Build, Test, and Package (OS: windows-2019, Node: 16, Java: 17)

'ViewportDataResponse' is declared but its value is never read.

export class Viewport {
constructor(
protected data: Uint8Array,
protected capacity: number
) {}
length() {
return this.data.length
}
}
Loading

0 comments on commit 06eb06b

Please sign in to comment.