stricklandrbls commented on code in PR #1564:
URL: https://github.com/apache/daffodil-vscode/pull/1564#discussion_r2692749828
##########
src/dataEditor/dataEditorClient.ts:
##########
@@ -549,53 +580,48 @@ export class DataEditorClient implements
vscode.Disposable {
})
break
- case MessageCommand.profile:
- {
- const startOffset: number = message.data.startOffset
- const length: number = message.data.length
- const byteProfile: number[] = await profileSession(
- this.omegaSessionId,
- startOffset,
- length
- )
- const characterCount = await countCharacters(
- this.omegaSessionId,
- startOffset,
- length
- )
- const contentTypeResponse = await getContentType(
- this.omegaSessionId,
+ case MessageCommand.profile: {
+ const startOffset: number = message.data.startOffset
+ const length: number = message.data.length
+ const target: string | undefined = message.data.target
+
+ let sessionId = this.omegaSessionId
+ let isDiskProfile = false
+
+ try {
+ if (target === 'disk') {
+ const tempSession = await createSession(
Review Comment:
Calling the `createSession` API function is emitting the following error
from Omega Edit server:
```
rejected promise not handled within 1 second: createSession error: 13
INTERNAL: Failed to create session: ALREADY_EXISTS
```
I don't currently have a resolution off the top of my head so you may have
to read up on the exposed API functions to work around this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]