Skip to content

Commit

Permalink
Bug Fixes, Edits, and Updates
Browse files Browse the repository at this point in the history
Fixed:
Issue obicons#26, obicons#25, obicons#23, obicons#19

Refactored and reduced
Placed Debug keys into a single object
  • Loading branch information
Ikutania committed Aug 3, 2022
1 parent a2f30b6 commit 87a429f
Show file tree
Hide file tree
Showing 5 changed files with 206 additions and 124 deletions.
4 changes: 0 additions & 4 deletions demos/01/.sa4u.json

This file was deleted.

5 changes: 4 additions & 1 deletion lsp/client/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,12 @@ export function activate(context: ExtensionContext) {
);

client.onReady().then(() => {
client.onNotification("ServerError", (output: string) => {
client.onNotification('ServerError', (output: string) => {
window.showErrorMessage(output);
});
client.onNotification('UpdateConfig', (config: {param:string, value:string}) => {
workspace.getConfiguration().update(config.param, config.value);
});
});

// Start the client. This will also launch the server
Expand Down
47 changes: 45 additions & 2 deletions lsp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,54 @@
"type": "object",
"title": "SA4U",
"properties": {
"SA4U.messageDefinition": {
"SA4U.MessageDefinition": {
"scope": "resource",
"type": "string",
"default": "CMASI.xml",
"description": "Message Description XML."
"description": "Message Description XML.",
"order": 1
},
"SA4U.PriorTypes": {
"scope": "resource",
"type": "string",
"defualt": "compile_commands_dir",
"description": "SA4U prior types file",
"order": 3
},
"SA4U.IgnoreFiles": {
"scope": "resource",
"type": "string",
"editPresentation": "multilineText",
"description": "List of file paths in the directory to ignore. Expected input is /RelativeFilePath/File or AbsoluteFilePath/File",
"order": 4
},
"SA4U.CompilationDir": {
"scope": "resource",
"type": "string",
"defualt": "compile_commands_dir",
"description": "SA4U compile commands directory",
"order": 2
},
"SA4U.DebugMode": {
"scope": "resource",
"type": "boolean",
"default": false,
"description": "Debug Mode for Developing SA4U",
"order": 20
},
"SA4U.DebugModeDockerImage": {
"scope": "resource",
"type": "string",
"default": "",
"description": "SA4U image to use in debug mode.",
"order": 21
},
"SA4U.DebugModeMaintainContainerOnExit": {
"scope": "resource",
"type": "boolean",
"default": false,
"description": "Setup the container to remain after exiting",
"order": 21
}
}
}
Expand Down
Loading

0 comments on commit 87a429f

Please sign in to comment.