-
Notifications
You must be signed in to change notification settings - Fork 48
Add CSP and other files to explorer #168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CSP and other files to explorer #168
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ty-d how about fixing the linting warnings about missing return types in index.ts
while you are touching it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -42,14 +51,20 @@ export class RootNode extends NodeBase { | |||
spec = "*.cls"; | |||
break; | |||
case "RTN": | |||
spec = "*.mac,*.int"; | |||
spec = "*.mac,*.int,*.bas"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not?
@@ -61,10 +61,17 @@ export class DocumentContentProvider implements vscode.TextDocumentContentProvid | |||
}); | |||
} | |||
} | |||
const isCsp = name.split("/")[0] === "csp"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, that's not a rule. CSP application may have any name. You need a better way to check if it's a CSP.
src/explorer/models/rootNode.ts
Outdated
case "CSP": | ||
spec = "*"; | ||
break; | ||
case "OTHER": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OTHER replace everywhere with OTH, to be consistent with Atelier API
@daimor GitHub is saying you have requested changes, but I think your request has been addressed. Are we ready to merge this PR? |
Add "CSP Files" and "Other" section to the ObjectScript explorer, and support compilation of those files. The studio actions editor context menu was modified to appear for CSP and other files.