IBM / zopeneditor-about

IBM Z Open Editor: File issues here!
https://ibm.github.io/zopeneditor-about
Apache License 2.0
47 stars 25 forks source link

Outline view is not working for files opened with vscode debug session. #360

Closed CuriousDev289 closed 3 months ago

CuriousDev289 commented 9 months ago

Problem Description

I am working on debug adapter extension for COBOL. In debug session for the COBOL program when source code is loaded, it is outline view is not showing program structure. (color codeing on program is visible). Getting msg “No Symbols found” in ouline view.

I have analyzed this issue with IBM Z Open Editor extension and found that the document selector has registered with uri.scheme: “file” only. Here VSCODE is opening debug source code in custom editor with uri.scheme : debug.

Tried editing extension.js and added the scheme : “debug” then it started showing the outline on cobol source code in debug session. Please find below changes i tried:

IBM Z open editor:Extension.js:

Current line:

getLanguageClientOptions(){return{documentSelector:[{scheme:"file",language:s.Language.COBOL}],initializationOptions:this.getInitializationOptions()}}

Updated line:

getLanguageClientOptions(){return{documentSelector:[{scheme:"file",language:s.Language.COBOL},{scheme:"debug",language:s.Language.COBOL}],initializationOptions:this.getInitializationOptions()}}

Questions:

  1. is it possible to add the “debug” uri.scheme for the document selector for all language?
  2. is it possible to provide the API to inform z open editor about any custom scheme?

Also please suggest if there is any other way to run the IBM Z open editor language parser on custom editors which has custom URI scheme.

Thanks!!

CuriousDev289 commented 9 months ago

Thank you @phaumer for quick update.

phaumer commented 9 months ago

I agree. It will be a great enhancement.

phaumer commented 3 months ago

We added this with Z Open Editor 4.0.0