Skip to content

Commit

Permalink
Add new terminal manager and do some cleanup #7 #9 #14
Browse files Browse the repository at this point in the history
  • Loading branch information
iann0036 committed Oct 16, 2019
1 parent 9ad5532 commit 4ff5cfd
Show file tree
Hide file tree
Showing 16 changed files with 468 additions and 1,958 deletions.
13 changes: 6 additions & 7 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const cookie = require('cookie');
const ViewProviders = require("./viewProviders");
const Utils = require("./utils");
const UserManager = require("./userManager");
const TerminalManager = require("./terminalManager");
const TerminalManagerV2 = require("./terminalManagerV2");
const WebsocketProvider = require("./websocketProvider");
const FileManager = require("./fileManager");
Expand Down Expand Up @@ -40,11 +39,7 @@ function activate(context) {
userProvider = new ViewProviders.UserProvider();
environmentProvider = new ViewProviders.EnvironmentProvider();
chatProvider = new ViewProviders.ChatProvider();
//if (typeof vscode.window.createTerminalRenderer === "function") {
//terminalManager = new TerminalManagerV2.TerminalManager(eventEmitter);
//} else {
terminalManager = new TerminalManager.TerminalManager(context.extensionPath, eventEmitter);
//}
terminalManager = new TerminalManagerV2.TerminalManager(eventEmitter);
websocketProvider = new WebsocketProvider.WebsocketProvider(eventEmitter);
fileManager = new FileManager.FileManager(eventEmitter);
editManager = new EditManager.EditManager(eventEmitter, websocketProvider);
Expand Down Expand Up @@ -148,7 +143,7 @@ function commandAddenvironment() {
extensionConfig = vscode.workspace.getConfiguration('cloud9sync');
awsregion = extensionConfig.get('region');

let idemToken = Math.floor(Math.random() * 9999999999).toString();
let idemToken = "LiveSyncCloud9" + Math.floor(Math.random() * 9999999999).toString();

let awsreq = aws4.sign({
service: 'cloud9',
Expand All @@ -170,6 +165,8 @@ function commandAddenvironment() {
})
}, aws_creds);

vscode.window.setStatusBarMessage("Creating your environment...", 5000);

request.post({
url: "https://" + awsreq.hostname + awsreq.path,
headers: awsreq.headers,
Expand All @@ -181,6 +178,8 @@ function commandAddenvironment() {
console.log(response);

refreshEnvironmentsInSidebar();

vscode.window.setStatusBarMessage("Environment created", 5000);
});
}
});
Expand Down
Loading

0 comments on commit 4ff5cfd

Please sign in to comment.