@@ -67,7 +67,7 @@ export function registerActionsCommands(instance: Instance): Disposable[] {
67
67
return false ;
68
68
} ) ,
69
69
70
- commands . registerCommand ( `code-for-ibmi.openErrors` , async ( qualifiedObject ?: string ) => {
70
+ commands . registerCommand ( `code-for-ibmi.openErrors` , async ( options : { qualifiedObject ?: string , workspace ?: WorkspaceFolder , keepDiagnostics ?: boolean } ) => {
71
71
interface ObjectDetail {
72
72
asp ?: string ;
73
73
lib : string ;
@@ -84,17 +84,17 @@ export function registerActionsCommands(instance: Instance): Disposable[] {
84
84
85
85
let inputPath : string | undefined
86
86
87
- if ( qualifiedObject ) {
87
+ if ( options . qualifiedObject ) {
88
88
// Value passed in via parameter
89
- inputPath = qualifiedObject ;
89
+ inputPath = options . qualifiedObject ;
90
90
91
91
} else {
92
92
// Value collected from user input
93
93
94
94
let initialPath = `` ;
95
95
const editor = window . activeTextEditor ;
96
96
const connection = instance . getConnection ( ) ;
97
-
97
+
98
98
if ( editor && connection ) {
99
99
const config = connection . getConfig ( ) ;
100
100
const uri = editor . document . uri ;
@@ -135,7 +135,7 @@ export function registerActionsCommands(instance: Instance): Disposable[] {
135
135
const [ library , object ] = inputPath . split ( `/` ) ;
136
136
if ( library && object ) {
137
137
const nameDetail = path . parse ( object ) ;
138
- refreshDiagnosticsFromServer ( instance , { library, object : nameDetail . name , extension : ( nameDetail . ext . length > 1 ? nameDetail . ext . substring ( 1 ) : undefined ) } ) ;
138
+ refreshDiagnosticsFromServer ( instance , { library, object : nameDetail . name , extension : ( nameDetail . ext . length > 1 ? nameDetail . ext . substring ( 1 ) : undefined ) , workspace : options . workspace } , options . keepDiagnostics ) ;
139
139
}
140
140
}
141
141
} ) ,
0 commit comments