Skip to content
Snippets Groups Projects

Optimize file decoration when tpd is activated (issue #5)

Merged Csilla Farkas requested to merge csilla/titan.vs-code-extension:tpd into main
12 files
+ 167
64
Compare changes
  • Side-by-side
  • Inline
Files
12
@@ -46,21 +46,12 @@ class ClientManager {
this._client.sendNotification(this._methods.exclude, { excludedStates });
}
public async readTpd(tpd: Uri) {
try {
// const response = await this._client.sendRequest(this._methods.openTpd, { tpdPath: tpd.toString()});
const response = {
success: true,
result: ["file:///c%3A/Users/cfa/Documents/Work/Titan/workspace/first.ttcn", "file:///c%3A/Users/cfa/Documents/Work/Titan/workspace/hello.ttcn"]
};
public async parseTpd(tpd: Uri) {
const response = await this._client.sendRequest(this._methods.openTpd, { tpdPath: tpd.fsPath}) as {success: boolean, result: string[]};
if(response.success && response.result.length) {
return response.result;
} catch(error: unknown) {
if(error instanceof ResponseError) {
await window.showErrorMessage(error.message);
}
}
await window.showErrorMessage(`Failed to parse tpd: ${tpd.fsPath}`);
}
}
Loading