@codingame/monaco-vscode-remote-agent-service-override 1.83.16 → 1.85.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/vscode/src/vs/platform/files/common/diskFileSystemProviderClient.js +2 -2
- package/vscode/src/vs/platform/remote/browser/browserSocketFactory.js +3 -2
- package/vscode/src/vs/platform/remote/browser/remoteAuthorityResolverService.js +2 -1
- package/vscode/src/vs/workbench/contrib/remote/common/remote.contribution.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-remote-agent-service-override",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.85.0-next.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@1.
|
|
22
|
-
"monaco-editor": "0.
|
|
23
|
-
"@codingame/monaco-vscode-environment-service-override": "1.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@1.85.0-next.0",
|
|
22
|
+
"monaco-editor": "0.45.0",
|
|
23
|
+
"@codingame/monaco-vscode-environment-service-override": "1.85.0-next.0"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -4,9 +4,9 @@ import { canceled } from 'monaco-editor/esm/vs/base/common/errors.js';
|
|
|
4
4
|
import { Event, Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
5
5
|
import { Disposable, DisposableStore, toDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
6
6
|
import { newWriteableStream } from 'monaco-editor/esm/vs/base/common/stream.js';
|
|
7
|
-
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
8
7
|
import { generateUuid } from 'monaco-editor/esm/vs/base/common/uuid.js';
|
|
9
8
|
import { createFileSystemProviderError, FileSystemProviderErrorCode } from 'monaco-editor/esm/vs/platform/files/common/files.js';
|
|
9
|
+
import { reviveFileChanges } from 'vscode/vscode/vs/platform/files/common/watcher';
|
|
10
10
|
|
|
11
11
|
class DiskFileSystemProviderClient extends Disposable {
|
|
12
12
|
constructor(channel, extraCapabilities) {
|
|
@@ -121,7 +121,7 @@ class DiskFileSystemProviderClient extends Disposable {
|
|
|
121
121
|
this._register(this.channel.listen('fileChange', [this.sessionId])(eventsOrError => {
|
|
122
122
|
if (Array.isArray(eventsOrError)) {
|
|
123
123
|
const events = eventsOrError;
|
|
124
|
-
this._onDidChange.fire((
|
|
124
|
+
this._onDidChange.fire(reviveFileChanges(events));
|
|
125
125
|
}
|
|
126
126
|
else {
|
|
127
127
|
const error = eventsOrError;
|
|
@@ -5,6 +5,7 @@ import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
|
5
5
|
import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
6
6
|
import { SocketDiagnostics } from 'vscode/vscode/vs/base/parts/ipc/common/ipc.net';
|
|
7
7
|
import { RemoteAuthorityResolverError, RemoteAuthorityResolverErrorCode } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver';
|
|
8
|
+
import { mainWindow } from 'monaco-editor/esm/vs/base/browser/window.js';
|
|
8
9
|
|
|
9
10
|
class BrowserWebSocket extends Disposable {
|
|
10
11
|
traceSocketEvent(type, data) {
|
|
@@ -75,7 +76,7 @@ class BrowserWebSocket extends Disposable {
|
|
|
75
76
|
this.traceSocketEvent("close" , { code: e.code, reason: e.reason, wasClean: e.wasClean });
|
|
76
77
|
this._isClosed = true;
|
|
77
78
|
if (pendingErrorEvent) {
|
|
78
|
-
if (!
|
|
79
|
+
if (!navigator.onLine) {
|
|
79
80
|
sendErrorNow(( new RemoteAuthorityResolverError(
|
|
80
81
|
'Browser is offline',
|
|
81
82
|
RemoteAuthorityResolverErrorCode.TemporarilyNotAvailable,
|
|
@@ -181,7 +182,7 @@ class BrowserSocketFactory {
|
|
|
181
182
|
}
|
|
182
183
|
connect({ host, port }, path, query, debugLabel) {
|
|
183
184
|
return ( new Promise((resolve, reject) => {
|
|
184
|
-
const webSocketSchema = (/^https:/.test(
|
|
185
|
+
const webSocketSchema = (/^https:/.test(mainWindow.location.href) ? 'wss' : 'ws');
|
|
185
186
|
const socket = this._webSocketFactory.create(`${webSocketSchema}://${(/:/.test(host) && !/\[/.test(host)) ? `[${host}]` : host}:${port}${path}?${query}&skipWebSocketFrames=false`, debugLabel);
|
|
186
187
|
const errorListener = socket.onError(reject);
|
|
187
188
|
socket.onOpen(() => {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
+
import { mainWindow } from 'monaco-editor/esm/vs/base/browser/window.js';
|
|
2
3
|
import { DeferredPromise } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
3
4
|
import * as errors from 'monaco-editor/esm/vs/base/common/errors.js';
|
|
4
5
|
import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
@@ -60,7 +61,7 @@ let RemoteAuthorityResolverService = class RemoteAuthorityResolverService extend
|
|
|
60
61
|
const connectionToken = await Promise.resolve(this._connectionTokens.get(authority) || this._connectionToken);
|
|
61
62
|
performance.mark(`code/didResolveConnectionToken/${authorityPrefix}`);
|
|
62
63
|
this._logService.info(`Resolved connection token (${authorityPrefix}) after ${sw.elapsed()} ms`);
|
|
63
|
-
const defaultPort = (/^https:/.test(
|
|
64
|
+
const defaultPort = (/^https:/.test(mainWindow.location.href) ? 443 : 80);
|
|
64
65
|
const { host, port } = parseAuthorityWithOptionalPort(authority, defaultPort);
|
|
65
66
|
const result = { authority: { authority, connectTo: ( new WebSocketRemoteConnection(host, port)), connectionToken } };
|
|
66
67
|
RemoteAuthorities.set(authority, host, port);
|
|
@@ -289,7 +289,7 @@ const extensionKindSchema = {
|
|
|
289
289
|
markdownDescription: ( localizeWithPath(
|
|
290
290
|
'vs/workbench/contrib/remote/common/remote.contribution',
|
|
291
291
|
'remote.autoForwardPortsSource',
|
|
292
|
-
"Sets the source from which ports are automatically forwarded when {0} is true. On Windows and Mac remotes, the `process` and `hybrid` options have no effect and `output` will be used.
|
|
292
|
+
"Sets the source from which ports are automatically forwarded when {0} is true. On Windows and Mac remotes, the `process` and `hybrid` options have no effect and `output` will be used.",
|
|
293
293
|
'`#remote.autoForwardPorts#`'
|
|
294
294
|
)),
|
|
295
295
|
enum: ['process', 'output', 'hybrid'],
|