@codingame/monaco-vscode-api 5.1.1 → 5.1.2
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/README.md
CHANGED
|
@@ -250,7 +250,7 @@ await initialize({
|
|
|
250
250
|
// Open a new editor here and return it
|
|
251
251
|
// It will be called when for instance the user ctrl+click on an import
|
|
252
252
|
}),
|
|
253
|
-
...getConfigurationServiceOverride(
|
|
253
|
+
...getConfigurationServiceOverride()
|
|
254
254
|
})
|
|
255
255
|
|
|
256
256
|
updateUserConfiguration(`{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.2",
|
|
4
4
|
"description": "VSCode public API plugged on the monaco editor",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": {
|
|
@@ -99,12 +99,12 @@
|
|
|
99
99
|
"dependencies": {
|
|
100
100
|
"@vscode/iconv-lite-umd": "0.7.0",
|
|
101
101
|
"jschardet": "3.0.0",
|
|
102
|
-
"@codingame/monaco-vscode-
|
|
103
|
-
"@codingame/monaco-vscode-
|
|
104
|
-
"@codingame/monaco-vscode-
|
|
105
|
-
"@codingame/monaco-vscode-environment-service-override": "5.1.
|
|
106
|
-
"@codingame/monaco-vscode-layout-service-override": "5.1.
|
|
107
|
-
"@codingame/monaco-vscode-host-service-override": "5.1.
|
|
108
|
-
"@codingame/monaco-vscode-base-service-override": "5.1.
|
|
102
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "5.1.2",
|
|
103
|
+
"@codingame/monaco-vscode-files-service-override": "5.1.2",
|
|
104
|
+
"@codingame/monaco-vscode-extensions-service-override": "5.1.2",
|
|
105
|
+
"@codingame/monaco-vscode-environment-service-override": "5.1.2",
|
|
106
|
+
"@codingame/monaco-vscode-layout-service-override": "5.1.2",
|
|
107
|
+
"@codingame/monaco-vscode-host-service-override": "5.1.2",
|
|
108
|
+
"@codingame/monaco-vscode-base-service-override": "5.1.2"
|
|
109
109
|
}
|
|
110
110
|
}
|
|
@@ -1004,6 +1004,264 @@ interface IViewsWelcome {
|
|
|
1004
1004
|
*/
|
|
1005
1005
|
readonly enablement?: string;
|
|
1006
1006
|
}
|
|
1007
|
+
interface INamedProblemPattern extends IProblemPattern {
|
|
1008
|
+
/**
|
|
1009
|
+
* The name of the problem pattern.
|
|
1010
|
+
*/
|
|
1011
|
+
name: string;
|
|
1012
|
+
/**
|
|
1013
|
+
* A human readable label
|
|
1014
|
+
*/
|
|
1015
|
+
label?: string;
|
|
1016
|
+
}
|
|
1017
|
+
interface ICheckedProblemPattern extends IProblemPattern {
|
|
1018
|
+
/**
|
|
1019
|
+
* The regular expression to find a problem in the console output of an
|
|
1020
|
+
* executed task.
|
|
1021
|
+
*/
|
|
1022
|
+
regexp: string;
|
|
1023
|
+
}
|
|
1024
|
+
type MultiLineCheckedProblemPattern = ICheckedProblemPattern[];
|
|
1025
|
+
interface INamedMultiLineCheckedProblemPattern {
|
|
1026
|
+
/**
|
|
1027
|
+
* The name of the problem pattern.
|
|
1028
|
+
*/
|
|
1029
|
+
name: string;
|
|
1030
|
+
/**
|
|
1031
|
+
* A human readable label
|
|
1032
|
+
*/
|
|
1033
|
+
label?: string;
|
|
1034
|
+
/**
|
|
1035
|
+
* The actual patterns
|
|
1036
|
+
*/
|
|
1037
|
+
patterns: MultiLineCheckedProblemPattern;
|
|
1038
|
+
}
|
|
1039
|
+
type NamedProblemPatterns = (INamedProblemPattern | INamedMultiLineCheckedProblemPattern)[];
|
|
1040
|
+
interface IProblemPattern {
|
|
1041
|
+
/**
|
|
1042
|
+
* The regular expression to find a problem in the console output of an
|
|
1043
|
+
* executed task.
|
|
1044
|
+
*/
|
|
1045
|
+
regexp?: string;
|
|
1046
|
+
/**
|
|
1047
|
+
* Whether the pattern matches a whole file, or a location (file/line)
|
|
1048
|
+
*
|
|
1049
|
+
* The default is to match for a location. Only valid on the
|
|
1050
|
+
* first problem pattern in a multi line problem matcher.
|
|
1051
|
+
*/
|
|
1052
|
+
kind?: string;
|
|
1053
|
+
/**
|
|
1054
|
+
* The match group index of the filename.
|
|
1055
|
+
* If omitted 1 is used.
|
|
1056
|
+
*/
|
|
1057
|
+
file?: number;
|
|
1058
|
+
/**
|
|
1059
|
+
* The match group index of the problem's location. Valid location
|
|
1060
|
+
* patterns are: (line), (line,column) and (startLine,startColumn,endLine,endColumn).
|
|
1061
|
+
* If omitted the line and column properties are used.
|
|
1062
|
+
*/
|
|
1063
|
+
location?: number;
|
|
1064
|
+
/**
|
|
1065
|
+
* The match group index of the problem's line in the source file.
|
|
1066
|
+
*
|
|
1067
|
+
* Defaults to 2.
|
|
1068
|
+
*/
|
|
1069
|
+
line?: number;
|
|
1070
|
+
/**
|
|
1071
|
+
* The match group index of the problem's column in the source file.
|
|
1072
|
+
*
|
|
1073
|
+
* Defaults to 3.
|
|
1074
|
+
*/
|
|
1075
|
+
column?: number;
|
|
1076
|
+
/**
|
|
1077
|
+
* The match group index of the problem's end line in the source file.
|
|
1078
|
+
*
|
|
1079
|
+
* Defaults to undefined. No end line is captured.
|
|
1080
|
+
*/
|
|
1081
|
+
endLine?: number;
|
|
1082
|
+
/**
|
|
1083
|
+
* The match group index of the problem's end column in the source file.
|
|
1084
|
+
*
|
|
1085
|
+
* Defaults to undefined. No end column is captured.
|
|
1086
|
+
*/
|
|
1087
|
+
endColumn?: number;
|
|
1088
|
+
/**
|
|
1089
|
+
* The match group index of the problem's severity.
|
|
1090
|
+
*
|
|
1091
|
+
* Defaults to undefined. In this case the problem matcher's severity
|
|
1092
|
+
* is used.
|
|
1093
|
+
*/
|
|
1094
|
+
severity?: number;
|
|
1095
|
+
/**
|
|
1096
|
+
* The match group index of the problem's code.
|
|
1097
|
+
*
|
|
1098
|
+
* Defaults to undefined. No code is captured.
|
|
1099
|
+
*/
|
|
1100
|
+
code?: number;
|
|
1101
|
+
/**
|
|
1102
|
+
* The match group index of the message. If omitted it defaults
|
|
1103
|
+
* to 4 if location is specified. Otherwise it defaults to 5.
|
|
1104
|
+
*/
|
|
1105
|
+
message?: number;
|
|
1106
|
+
/**
|
|
1107
|
+
* Specifies if the last pattern in a multi line problem matcher should
|
|
1108
|
+
* loop as long as it does match a line consequently. Only valid on the
|
|
1109
|
+
* last problem pattern in a multi line problem matcher.
|
|
1110
|
+
*/
|
|
1111
|
+
loop?: boolean;
|
|
1112
|
+
}
|
|
1113
|
+
/**
|
|
1114
|
+
* A watching pattern
|
|
1115
|
+
*/
|
|
1116
|
+
interface IWatchingPattern {
|
|
1117
|
+
/**
|
|
1118
|
+
* The actual regular expression
|
|
1119
|
+
*/
|
|
1120
|
+
regexp?: string;
|
|
1121
|
+
/**
|
|
1122
|
+
* The match group index of the filename. If provided the expression
|
|
1123
|
+
* is matched for that file only.
|
|
1124
|
+
*/
|
|
1125
|
+
file?: number;
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* A description to track the start and end of a watching task.
|
|
1129
|
+
*/
|
|
1130
|
+
interface IBackgroundMonitor {
|
|
1131
|
+
/**
|
|
1132
|
+
* If set to true the watcher is in active mode when the task
|
|
1133
|
+
* starts. This is equals of issuing a line that matches the
|
|
1134
|
+
* beginsPattern.
|
|
1135
|
+
*/
|
|
1136
|
+
activeOnStart?: boolean;
|
|
1137
|
+
/**
|
|
1138
|
+
* If matched in the output the start of a watching task is signaled.
|
|
1139
|
+
*/
|
|
1140
|
+
beginsPattern?: string | IWatchingPattern;
|
|
1141
|
+
/**
|
|
1142
|
+
* If matched in the output the end of a watching task is signaled.
|
|
1143
|
+
*/
|
|
1144
|
+
endsPattern?: string | IWatchingPattern;
|
|
1145
|
+
}
|
|
1146
|
+
interface INamedProblemMatcher {
|
|
1147
|
+
/**
|
|
1148
|
+
* This name can be used to refer to the
|
|
1149
|
+
* problem matcher from within a task.
|
|
1150
|
+
*/
|
|
1151
|
+
name: string;
|
|
1152
|
+
/**
|
|
1153
|
+
* A human readable label.
|
|
1154
|
+
*/
|
|
1155
|
+
label?: string;
|
|
1156
|
+
/**
|
|
1157
|
+
* The name of a base problem matcher to use. If specified the
|
|
1158
|
+
* base problem matcher will be used as a template and properties
|
|
1159
|
+
* specified here will replace properties of the base problem
|
|
1160
|
+
* matcher
|
|
1161
|
+
*/
|
|
1162
|
+
base?: string;
|
|
1163
|
+
/**
|
|
1164
|
+
* The owner of the produced VSCode problem. This is typically
|
|
1165
|
+
* the identifier of a VSCode language service if the problems are
|
|
1166
|
+
* to be merged with the one produced by the language service
|
|
1167
|
+
* or a generated internal id. Defaults to the generated internal id.
|
|
1168
|
+
*/
|
|
1169
|
+
owner?: string;
|
|
1170
|
+
/**
|
|
1171
|
+
* A human-readable string describing the source of this problem.
|
|
1172
|
+
* E.g. 'typescript' or 'super lint'.
|
|
1173
|
+
*/
|
|
1174
|
+
source?: string;
|
|
1175
|
+
/**
|
|
1176
|
+
* Specifies to which kind of documents the problems found by this
|
|
1177
|
+
* matcher are applied. Valid values are:
|
|
1178
|
+
*
|
|
1179
|
+
* "allDocuments": problems found in all documents are applied.
|
|
1180
|
+
* "openDocuments": problems found in documents that are open
|
|
1181
|
+
* are applied.
|
|
1182
|
+
* "closedDocuments": problems found in closed documents are
|
|
1183
|
+
* applied.
|
|
1184
|
+
*/
|
|
1185
|
+
applyTo?: string;
|
|
1186
|
+
/**
|
|
1187
|
+
* The severity of the VSCode problem produced by this problem matcher.
|
|
1188
|
+
*
|
|
1189
|
+
* Valid values are:
|
|
1190
|
+
* "error": to produce errors.
|
|
1191
|
+
* "warning": to produce warnings.
|
|
1192
|
+
* "info": to produce infos.
|
|
1193
|
+
*
|
|
1194
|
+
* The value is used if a pattern doesn't specify a severity match group.
|
|
1195
|
+
* Defaults to "error" if omitted.
|
|
1196
|
+
*/
|
|
1197
|
+
severity?: string;
|
|
1198
|
+
/**
|
|
1199
|
+
* Defines how filename reported in a problem pattern
|
|
1200
|
+
* should be read. Valid values are:
|
|
1201
|
+
* - "absolute": the filename is always treated absolute.
|
|
1202
|
+
* - "relative": the filename is always treated relative to
|
|
1203
|
+
* the current working directory. This is the default.
|
|
1204
|
+
* - ["relative", "path value"]: the filename is always
|
|
1205
|
+
* treated relative to the given path value.
|
|
1206
|
+
* - "autodetect": the filename is treated relative to
|
|
1207
|
+
* the current workspace directory, and if the file
|
|
1208
|
+
* does not exist, it is treated as absolute.
|
|
1209
|
+
* - ["autodetect", "path value"]: the filename is treated
|
|
1210
|
+
* relative to the given path value, and if it does not
|
|
1211
|
+
* exist, it is treated as absolute.
|
|
1212
|
+
* - ["search", { include?: "" | []; exclude?: "" | [] }]: The filename
|
|
1213
|
+
* needs to be searched under the directories named by the "include"
|
|
1214
|
+
* property and their nested subdirectories. With "exclude" property
|
|
1215
|
+
* present, the directories should be removed from the search. When
|
|
1216
|
+
* `include` is not unprovided, the current workspace directory should
|
|
1217
|
+
* be used as the default.
|
|
1218
|
+
*/
|
|
1219
|
+
fileLocation?: string | string[] | ['search', ISearchFileLocationArgs];
|
|
1220
|
+
/**
|
|
1221
|
+
* The name of a predefined problem pattern, the inline definition
|
|
1222
|
+
* of a problem pattern or an array of problem patterns to match
|
|
1223
|
+
* problems spread over multiple lines.
|
|
1224
|
+
*/
|
|
1225
|
+
pattern?: string | IProblemPattern | IProblemPattern[];
|
|
1226
|
+
/**
|
|
1227
|
+
* A regular expression signaling that a watched tasks begins executing
|
|
1228
|
+
* triggered through file watching.
|
|
1229
|
+
*/
|
|
1230
|
+
watchedTaskBeginsRegExp?: string;
|
|
1231
|
+
/**
|
|
1232
|
+
* A regular expression signaling that a watched tasks ends executing.
|
|
1233
|
+
*/
|
|
1234
|
+
watchedTaskEndsRegExp?: string;
|
|
1235
|
+
/**
|
|
1236
|
+
* @deprecated Use background instead.
|
|
1237
|
+
*/
|
|
1238
|
+
watching?: IBackgroundMonitor;
|
|
1239
|
+
background?: IBackgroundMonitor;
|
|
1240
|
+
}
|
|
1241
|
+
type ISearchFileLocationArgs = {
|
|
1242
|
+
include?: string | string[];
|
|
1243
|
+
exclude?: string | string[];
|
|
1244
|
+
};
|
|
1245
|
+
interface ITypescriptServerPlugin {
|
|
1246
|
+
/**
|
|
1247
|
+
* Name of the plugin as listed in the package.json.
|
|
1248
|
+
*/
|
|
1249
|
+
name: string;
|
|
1250
|
+
/**
|
|
1251
|
+
* Should the plugin be loaded when using workspace versions of TypeScript?
|
|
1252
|
+
*/
|
|
1253
|
+
enableForWorkspaceTypeScriptVersions: boolean;
|
|
1254
|
+
}
|
|
1255
|
+
interface IHtmlLanguageParticipant {
|
|
1256
|
+
/**
|
|
1257
|
+
* The id of the language that participates with HTML language server.
|
|
1258
|
+
*/
|
|
1259
|
+
languageId: string;
|
|
1260
|
+
/**
|
|
1261
|
+
* Whether the language participates with HTML auto insertions. If not specified, defaults to <code>true</code>.
|
|
1262
|
+
*/
|
|
1263
|
+
autoInsert: boolean;
|
|
1264
|
+
}
|
|
1007
1265
|
interface IExtensionContributions {
|
|
1008
1266
|
/**
|
|
1009
1267
|
* Contributes terminal functionality.
|
|
@@ -1170,6 +1428,28 @@ interface IExtensionContributions {
|
|
|
1170
1428
|
* Contributed views welcome content. Welcome content will be rendered in tree based views whenever they have no meaningful content to display, ie. the File Explorer when no folder is open. Such content is useful as in-product documentation to drive users to use certain features before they are available. A good example would be a `Clone Repository` button in the File Explorer welcome view.
|
|
1171
1429
|
*/
|
|
1172
1430
|
readonly viewsWelcome?: IViewsWelcome[];
|
|
1431
|
+
/**
|
|
1432
|
+
* Contributes problem matchers
|
|
1433
|
+
*/
|
|
1434
|
+
readonly problemMatchers?: INamedProblemMatcher[];
|
|
1435
|
+
/**
|
|
1436
|
+
* Contributes problem patterns
|
|
1437
|
+
*/
|
|
1438
|
+
readonly problemPatterns?: NamedProblemPatterns;
|
|
1439
|
+
/**
|
|
1440
|
+
* Contributed TypeScript server plugins.
|
|
1441
|
+
*/
|
|
1442
|
+
readonly typescriptServerPlugins?: ITypescriptServerPlugin[];
|
|
1443
|
+
/**
|
|
1444
|
+
* A list of languages that participate with the HTML language server.
|
|
1445
|
+
*/
|
|
1446
|
+
readonly htmlLanguageParticipants?: IHtmlLanguageParticipant[];
|
|
1447
|
+
readonly html?: {
|
|
1448
|
+
customData?: string[];
|
|
1449
|
+
};
|
|
1450
|
+
readonly css?: {
|
|
1451
|
+
customData?: string[];
|
|
1452
|
+
};
|
|
1173
1453
|
}
|
|
1174
1454
|
interface IExtensionCapabilities {
|
|
1175
1455
|
readonly virtualWorkspaces?: ExtensionVirtualWorkspaceSupport;
|
|
@@ -1319,4 +1599,4 @@ interface IRelaxedExtensionDescription extends IRelaxedExtensionManifest {
|
|
|
1319
1599
|
}
|
|
1320
1600
|
type IExtensionDescription = Readonly<IRelaxedExtensionDescription>;
|
|
1321
1601
|
|
|
1322
|
-
export { ExtensionIdentifier, ExtensionIdentifierMap, ExtensionType, type ExtensionUntrustedWorkspaceSupport, type ExtensionUntrustedWorkspaceSupportType, type ExtensionVirtualWorkspaceSupport, type ExtensionVirtualWorkspaceSupportType, type IAuthenticationContribution, type IBreakpoint, type ICodeActionContribution, type ICodeActionContributionAction, type IColor, type IColorTheme, type ICommand, type IConfiguration, type IDebugVisualizationContribution, type IDebugger, type IDocumentation, type IDocumentationRefactoring, type IExtension, type IExtensionCapabilities, type IExtensionContributions, type IExtensionDescription, type IExtensionIdentifier, type IExtensionManifest, type IGrammar, type IIcon, type IIconTheme, type IInteractiveSession, type IJSONValidation, type IKeyBinding, type ILanguage, type ILocalizationContribution, type IMenu, type INotebookEntry, type INotebookRendererContribution, type IProductTheme, type IRelaxedExtensionDescription, type IRelaxedExtensionManifest, type IRemoteHelp, type ISemanticTokenModifiers, type ISemanticTokenScopes, type ISemanticTokenTypes, type ISnippet, type IStartEntry, type IStatusBarItem, type ISubMenu, type ITaskDefinitions, type ITerminal, type ITerminalQuickFix, type ITranslation, type IView, type IViewContainer, type IViewsWelcome, type IWalkthrough, type IWalkthroughStep, type LimitedWorkspaceSupportType, type NotebookPreload, TargetPlatform };
|
|
1602
|
+
export { ExtensionIdentifier, ExtensionIdentifierMap, ExtensionType, type ExtensionUntrustedWorkspaceSupport, type ExtensionUntrustedWorkspaceSupportType, type ExtensionVirtualWorkspaceSupport, type ExtensionVirtualWorkspaceSupportType, type IAuthenticationContribution, type IBackgroundMonitor, type IBreakpoint, type ICheckedProblemPattern, type ICodeActionContribution, type ICodeActionContributionAction, type IColor, type IColorTheme, type ICommand, type IConfiguration, type IDebugVisualizationContribution, type IDebugger, type IDocumentation, type IDocumentationRefactoring, type IExtension, type IExtensionCapabilities, type IExtensionContributions, type IExtensionDescription, type IExtensionIdentifier, type IExtensionManifest, type IGrammar, type IHtmlLanguageParticipant, type IIcon, type IIconTheme, type IInteractiveSession, type IJSONValidation, type IKeyBinding, type ILanguage, type ILocalizationContribution, type IMenu, type INamedMultiLineCheckedProblemPattern, type INamedProblemMatcher, type INamedProblemPattern, type INotebookEntry, type INotebookRendererContribution, type IProblemPattern, type IProductTheme, type IRelaxedExtensionDescription, type IRelaxedExtensionManifest, type IRemoteHelp, type ISearchFileLocationArgs, type ISemanticTokenModifiers, type ISemanticTokenScopes, type ISemanticTokenTypes, type ISnippet, type IStartEntry, type IStatusBarItem, type ISubMenu, type ITaskDefinitions, type ITerminal, type ITerminalQuickFix, type ITranslation, type ITypescriptServerPlugin, type IView, type IViewContainer, type IViewsWelcome, type IWalkthrough, type IWalkthroughStep, type IWatchingPattern, type LimitedWorkspaceSupportType, type MultiLineCheckedProblemPattern, type NamedProblemPatterns, type NotebookPreload, TargetPlatform };
|