File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 1
1
# Change Log
2
+ ## [ 1.0.1] - 2022-07-18
3
+ ### Fixed
4
+ - Open Built content: only the fallback (RHEL8) built content was being opened. The fallback option was removed.
2
5
## [ 1.0.0] - 2022-07-14
3
6
### Added
4
7
- Option to open built content files.
Original file line number Diff line number Diff line change 4
4
"displayName" : " Content Navigator" ,
5
5
"description" : " Content Navigator helps security content authors to create content for https://github.com/ComplianceAsCode/content" ,
6
6
"icon" : " icon.png" ,
7
- "version" : " 1.0.0 " ,
7
+ "version" : " 1.0.1 " ,
8
8
"license" : " BSD-3-Clause" ,
9
9
"engines" : {
10
10
"vscode" : " ^1.59.0"
Original file line number Diff line number Diff line change 1
1
// The module 'vscode' contains the VS Code extensibility API
2
2
// Import the module and reference it with the alias vscode in your code below
3
- import { runInContext } from 'vm' ;
4
3
import * as vscode from 'vscode' ;
5
4
6
5
export function getRuleId ( ) : string
@@ -222,17 +221,11 @@ export async function openVariableFile(built_content: boolean) {
222
221
}
223
222
224
223
async function openBuiltFile ( rule_id : string , location : string ) : Promise < boolean > {
225
- const config = vscode . workspace . getConfiguration ( 'content-navigator' )
226
224
let uries ;
227
225
228
- // product name - defaults to rhel8 if the build/product folder is not found
226
+ // get product name
227
+ const config = vscode . workspace . getConfiguration ( 'content-navigator' )
229
228
let product = config . get ( 'testSuite.productName' )
230
- let uri = vscode . Uri . file ( "build/" + product ) ;
231
- try {
232
- await vscode . workspace . fs . stat ( uri ) ;
233
- } catch {
234
- product = "rhel8"
235
- }
236
229
237
230
if ( location == "rule.yml" ) {
238
231
uries = await vscode . workspace . findFiles ( 'build/' + product + '/rules/' + rule_id + ".yml" ) ;
You can’t perform that action at this time.
0 commit comments