@codingame/monaco-vscode-mcp-service-override 38.0.2 → 38.0.3
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 +2 -2
- package/vscode/src/vs/platform/mcp/common/allowedMcpServers.js +4 -4
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpCommands.js +1 -1
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpLanguageFeatures.js +2 -2
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpWorkbenchService.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-mcp-service-override",
|
|
3
|
-
"version": "38.0.
|
|
3
|
+
"version": "38.0.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - mcp service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "38.0.
|
|
18
|
+
"@codingame/monaco-vscode-api": "38.0.3"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -84,7 +84,7 @@ function toNetworkDestinationUrl(url) {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
function toNetworkDestinationPattern(pattern) {
|
|
87
|
-
const schemeSeparator = pattern.indexOf("://");
|
|
87
|
+
const schemeSeparator = ( pattern.indexOf("://"));
|
|
88
88
|
if (schemeSeparator < 0) {
|
|
89
89
|
return pattern;
|
|
90
90
|
}
|
|
@@ -106,7 +106,7 @@ function toNetworkDestinationPattern(pattern) {
|
|
|
106
106
|
const defaultPort = scheme === "https" ? "443" : "80";
|
|
107
107
|
const port = hostAndPort.port === defaultPort ? undefined : hostAndPort.port;
|
|
108
108
|
let afterAuthority = rest.slice(authorityEnd).replace(/\\/g, "/");
|
|
109
|
-
const hash = afterAuthority.indexOf("#");
|
|
109
|
+
const hash = ( afterAuthority.indexOf("#"));
|
|
110
110
|
if (hash >= 0) {
|
|
111
111
|
afterAuthority = afterAuthority.slice(0, hash);
|
|
112
112
|
}
|
|
@@ -119,7 +119,7 @@ function toNetworkDestinationPattern(pattern) {
|
|
|
119
119
|
}
|
|
120
120
|
function splitHostAndPort(authority) {
|
|
121
121
|
if (authority.startsWith("[")) {
|
|
122
|
-
const close = authority.indexOf("]");
|
|
122
|
+
const close = ( authority.indexOf("]"));
|
|
123
123
|
if (close === -1) {
|
|
124
124
|
return undefined;
|
|
125
125
|
}
|
|
@@ -150,7 +150,7 @@ function splitHostAndPort(authority) {
|
|
|
150
150
|
} : undefined;
|
|
151
151
|
}
|
|
152
152
|
function buildUrlPatternRegexSource(pattern) {
|
|
153
|
-
const schemeSeparator = pattern.indexOf("://");
|
|
153
|
+
const schemeSeparator = ( pattern.indexOf("://"));
|
|
154
154
|
const authorityStart = schemeSeparator >= 0 ? schemeSeparator + 3 : 0;
|
|
155
155
|
const authorityEnd = findAuthorityEnd(pattern, authorityStart);
|
|
156
156
|
let source = "^";
|
|
@@ -407,7 +407,7 @@ function enablementStateForAction(action) {
|
|
|
407
407
|
}
|
|
408
408
|
function findLocalMcpServer(mcpService, server) {
|
|
409
409
|
const servers = mcpService.servers.get();
|
|
410
|
-
const separator = server.id.indexOf("/");
|
|
410
|
+
const separator = ( server.id.indexOf("/"));
|
|
411
411
|
const rawId = separator >= 0 ? server.id.slice(separator + 1) : server.id;
|
|
412
412
|
const idMatches = servers.filter(candidate => candidate.definition.id === rawId);
|
|
413
413
|
if (idMatches.length === 1) {
|
|
@@ -193,7 +193,7 @@ let McpLanguageFeatures = class McpLanguageFeatures extends Disposable {
|
|
|
193
193
|
arg
|
|
194
194
|
} of expr.unresolved()) {
|
|
195
195
|
if (!( this._configurationResolverService.resolvableVariables.has(name))) {
|
|
196
|
-
const position = value.indexOf(id, node.offset);
|
|
196
|
+
const position = ( value.indexOf(id, node.offset));
|
|
197
197
|
if (position === -1) {
|
|
198
198
|
continue;
|
|
199
199
|
}
|
|
@@ -706,7 +706,7 @@ let McpLanguageFeatures = class McpLanguageFeatures extends Disposable {
|
|
|
706
706
|
} of expr.unresolved()) {
|
|
707
707
|
const saved = inputs[id];
|
|
708
708
|
if (saved) {
|
|
709
|
-
pushAnnotation(id, node.offset + node.value.indexOf(id) + id.length, saved);
|
|
709
|
+
pushAnnotation(id, node.offset + ( node.value.indexOf(id)) + id.length, saved);
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
712
|
});
|
|
@@ -846,7 +846,7 @@ let McpWorkbenchService = class McpWorkbenchService extends Disposable {
|
|
|
846
846
|
throw error;
|
|
847
847
|
} finally {
|
|
848
848
|
if (this.installing.includes(server)) {
|
|
849
|
-
this.installing.splice(this.installing.indexOf(server), 1);
|
|
849
|
+
this.installing.splice(( this.installing.indexOf(server)), 1);
|
|
850
850
|
this._onChange.fire(server);
|
|
851
851
|
}
|
|
852
852
|
}
|