Skip to content

Commit cc6d322

Browse files
get file status added
1 parent a6e861f commit cc6d322

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codebolt/codeboltjs",
3-
"version": "1.1.69",
3+
"version": "1.1.70",
44
"description": "",
55
"keywords": [],
66
"author": "",

src/modules/project.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,19 @@ const cbproject = {
5050
"type": "runProject"
5151
}));
5252
},
53+
getEditorFileStatus:()=>{
54+
return new Promise((resolve, reject) => {
55+
cbws.getWebsocket.send(JSON.stringify({
56+
"type": "settingEvent",
57+
"action": "getEditorFileStatus",
58+
}));
59+
cbws.getWebsocket.on('message', (data: string) => {
60+
const response = JSON.parse(data);
61+
if (response.type === "getEditorFileStatusResponse") {
62+
resolve(response);
63+
}
64+
});
65+
});
66+
}
5367
};
5468
export default cbproject

0 commit comments

Comments
 (0)