vscode-online -> vscode-remote
This commit is contained in:
parent
7021826e9d
commit
70ad911641
@ -1,19 +1,19 @@
|
|||||||
# vscode-cloud
|
# vscode-remote
|
||||||
|
|
||||||
Run VS Code in the cloud.
|
Run VS Code remotely.
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
### Getting the source
|
### Getting the source
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone https://github.com/codercom/vscode-cloud
|
git clone https://github.com/codercom/vscode-remote
|
||||||
```
|
```
|
||||||
|
|
||||||
### Installing dependencies
|
### Installing dependencies
|
||||||
|
|
||||||
```
|
```
|
||||||
cd vscode-cloud
|
cd vscode-remote
|
||||||
yarn
|
yarn
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "@coder/vscode-cloud",
|
"name": "@coder/vscode-remote",
|
||||||
"repository": "https://github.com/codercom/vscode-cloud",
|
"repository": "https://github.com/codercom/vscode-remote",
|
||||||
"author": "Coder",
|
"author": "Coder",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"description": "VS Code in the cloud.",
|
"description": "Run VS Code remotely.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:rules": "cd ./rules && tsc -p .",
|
"build:rules": "cd ./rules && tsc -p .",
|
||||||
"vscode:clone": "mkdir -p ./lib && test -d ./lib/vscode || git clone https://github.com/Microsoft/vscode/ ./lib/vscode",
|
"vscode:clone": "mkdir -p ./lib && test -d ./lib/vscode || git clone https://github.com/Microsoft/vscode/ ./lib/vscode",
|
||||||
|
@ -331,7 +331,7 @@ const getChildLogger = (command: string, prefix: string = ""): Logger => {
|
|||||||
let name: string;
|
let name: string;
|
||||||
if (command.includes("vscode-ipc") || command.includes("extensionHost")) {
|
if (command.includes("vscode-ipc") || command.includes("extensionHost")) {
|
||||||
name = "exthost";
|
name = "exthost";
|
||||||
} else if (command.includes("vscode-online")) {
|
} else if (command.includes("vscode-remote")) {
|
||||||
name = "shared";
|
name = "shared";
|
||||||
} else {
|
} else {
|
||||||
const basename = command.split("/").pop()!;
|
const basename = command.split("/").pop()!;
|
||||||
|
@ -72,7 +72,7 @@ export class Entry extends Command {
|
|||||||
return requireModule(modulePath, builtInExtensionsDir);
|
return requireModule(modulePath, builtInExtensionsDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
const dataDir = flags["data-dir"] || path.join(os.homedir(), ".vscode-online");
|
const dataDir = flags["data-dir"] || path.join(os.homedir(), ".vscode-remote");
|
||||||
const workingDir = args["workdir"];
|
const workingDir = args["workdir"];
|
||||||
|
|
||||||
if (process.env.BUILD_DIR && process.env.BUILD_DIR.startsWith(workingDir)) {
|
if (process.env.BUILD_DIR && process.env.BUILD_DIR.startsWith(workingDir)) {
|
||||||
@ -122,7 +122,7 @@ export class Entry extends Command {
|
|||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
if ((process.env.CLI === "false" || !process.env.CLI) && !process.env.SERVE_STATIC) {
|
if ((process.env.CLI === "false" || !process.env.CLI) && !process.env.SERVE_STATIC) {
|
||||||
const webpackConfig = require(path.join(__dirname, "..", "..", "web", "webpack.dev.config.js"));
|
const webpackConfig = require(path.join(__dirname, "..", "..", "web", "webpack.config.js"));
|
||||||
const compiler = require("webpack")(webpackConfig);
|
const compiler = require("webpack")(webpackConfig);
|
||||||
app.use(require("webpack-dev-middleware")(compiler, {
|
app.use(require("webpack-dev-middleware")(compiler, {
|
||||||
logger,
|
logger,
|
||||||
|
@ -23,7 +23,7 @@ export type SharedProcessEvent = {
|
|||||||
|
|
||||||
export class SharedProcess {
|
export class SharedProcess {
|
||||||
|
|
||||||
public readonly socketPath: string = path.join(os.tmpdir(), `.vscode-online${Math.random().toString()}`);
|
public readonly socketPath: string = path.join(os.tmpdir(), `.vscode-remote${Math.random().toString()}`);
|
||||||
private _state: SharedProcessState = SharedProcessState.Stopped;
|
private _state: SharedProcessState = SharedProcessState.Stopped;
|
||||||
private activeProcess: ChildProcess | undefined;
|
private activeProcess: ChildProcess | undefined;
|
||||||
private ipcHandler: StdioIpcHandler | undefined;
|
private ipcHandler: StdioIpcHandler | undefined;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
export const _paths = {
|
export const _paths = {
|
||||||
appData: "/tmp",
|
appData: "/tmp",
|
||||||
defaultUserData: "/tmp",
|
defaultUserData: "/tmp",
|
||||||
socketPath: "/tmp/vscode-online.sock",
|
socketPath: "/tmp/vscode-remote.sock",
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getAppDataPath = (): string => _paths.appData;
|
export const getAppDataPath = (): string => _paths.appData;
|
||||||
|
@ -2,8 +2,8 @@ import { IProductConfiguration } from "vs/platform/node/product";
|
|||||||
|
|
||||||
const product = {
|
const product = {
|
||||||
nameShort: "VSCode",
|
nameShort: "VSCode",
|
||||||
nameLong: "vscode online",
|
nameLong: "VSCode Remote",
|
||||||
dataFolderName: ".vscode-online",
|
dataFolderName: ".vscode-remote",
|
||||||
extensionsGallery: {
|
extensionsGallery: {
|
||||||
serviceUrl: "https://marketplace.visualstudio.com/_apis/public/gallery",
|
serviceUrl: "https://marketplace.visualstudio.com/_apis/public/gallery",
|
||||||
cacheUrl: "https://vscode.blob.core.windows.net/gallery/index",
|
cacheUrl: "https://vscode.blob.core.windows.net/gallery/index",
|
||||||
|
Reference in New Issue
Block a user