Skip to content

Commit 07d3dd9

Browse files
committed
Upgrade 1.56.0
1 parent 6dcd914 commit 07d3dd9

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const fse = require("fs-extra");
55
const glob = require("glob");
66
const rmdir = require('rimraf');
77

8-
const vscodeVersion = "1.55.0";
8+
const vscodeVersion = "1.56.0";
99

1010
if (!fs.existsSync("vscode")) {
1111
child_process.execSync("git clone https://github.com/microsoft/vscode.git", {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vscode-web",
3-
"version": "1.55.0",
3+
"version": "1.56.0",
44
"description": "Visual Studio Code for browser",
55
"files": ["dist/*"],
66
"scripts": {

workbench.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { create, IWorkbenchConstructionOptions, IWorkspaceProvider } from 'vs/workbench/workbench.web.api';
2-
import { URI, UriComponents} from 'vs/base/common/uri';
1+
import { create, IWorkbenchConstructionOptions, IWorkspaceProvider, IWorkspace } from 'vs/workbench/workbench.web.api';
2+
import { URI, UriComponents } from 'vs/base/common/uri';
33
declare const window: any;
44

55
(async function () {
66
// create workbench
7-
let config: IWorkbenchConstructionOptions & { folderUri?: UriComponents, workspaceUri?: UriComponents } = {};
7+
let config: IWorkbenchConstructionOptions & { folderUri?: UriComponents, workspaceUri?: UriComponents } = {};
88

9-
if(window.product){
9+
if (window.product) {
1010
config = window.product;
11-
}else{
11+
} else {
1212
const result = await fetch('/product.json');
1313
config = await result.json();
1414
}
@@ -29,8 +29,12 @@ declare const window: any;
2929
workspace = undefined;
3030
}
3131

32-
if(workspace){
33-
const workspaceProvider: IWorkspaceProvider = { workspace, open: async () => {}, trusted: true }
32+
if (workspace) {
33+
const workspaceProvider: IWorkspaceProvider = {
34+
workspace,
35+
open: async (workspace: IWorkspace, options?: { reuse?: boolean, payload?: object }) => true,
36+
trusted: true
37+
}
3438
config = { ...config, workspaceProvider };
3539
}
3640

0 commit comments

Comments
 (0)