@codingame/monaco-vscode-search-service-override 24.1.1 → 24.3.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-search-service-override",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - search service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "24.
|
|
18
|
+
"@codingame/monaco-vscode-api": "24.3.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { BaseWorkspaceSearchProvider } from '../search-utils/base-provider.js';
|
|
3
|
-
import { fuzzyContains, splitLines } from '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
|
|
3
|
+
import { fuzzyContains, createRegExp, splitLines } from '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
|
|
4
4
|
import { match } from '@codingame/monaco-vscode-api/vscode/vs/base/common/glob';
|
|
5
5
|
import { SearchCompletionExitCode, FileMatch, SearchError, SearchErrorCode, deserializeSearchError, TextSearchMatch } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/search/common/search';
|
|
6
6
|
import { Range } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range';
|
|
@@ -186,9 +186,13 @@ class WorkspaceSearchProvider extends BaseWorkspaceSearchProvider {
|
|
|
186
186
|
}
|
|
187
187
|
createSearchRegex(contentPattern) {
|
|
188
188
|
try {
|
|
189
|
-
return
|
|
190
|
-
|
|
191
|
-
|
|
189
|
+
return createRegExp(contentPattern.pattern || '', !!contentPattern.isRegExp, {
|
|
190
|
+
wholeWord: contentPattern.isWordMatch,
|
|
191
|
+
global: true,
|
|
192
|
+
matchCase: contentPattern.isCaseSensitive,
|
|
193
|
+
multiline: contentPattern.isMultiline,
|
|
194
|
+
unicode: contentPattern.isUnicode
|
|
195
|
+
});
|
|
192
196
|
}
|
|
193
197
|
catch (regexError) {
|
|
194
198
|
this.logger.error(`Invalid regex pattern: ${contentPattern.pattern}`, regexError);
|