@codingame/monaco-vscode-treesitter-service-override 10.1.4 → 11.0.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/assets/typescript.scm
CHANGED
|
@@ -61,9 +61,10 @@
|
|
|
61
61
|
(function_declaration
|
|
62
62
|
name: (identifier) @entity.name.function)
|
|
63
63
|
(method_definition
|
|
64
|
-
name: (property_identifier) @meta.definition.method @entity.name.function
|
|
64
|
+
name: (property_identifier) @meta.definition.method @entity.name.function
|
|
65
|
+
(#not-eq? @entity.name.function "constructor"))
|
|
65
66
|
(method_definition
|
|
66
|
-
name: (property_identifier) @storage.type
|
|
67
|
+
name: (property_identifier) @meta.definition.method @storage.type
|
|
67
68
|
(#eq? @storage.type "constructor"))
|
|
68
69
|
(method_signature
|
|
69
70
|
name: (property_identifier) @meta.definition.method @entity.name.function)
|
|
@@ -109,10 +110,6 @@
|
|
|
109
110
|
(predefined_type (["string" "boolean" "number" "any"])) @support.type.primitive
|
|
110
111
|
(type_identifier) @entity.name.type
|
|
111
112
|
|
|
112
|
-
(("const")
|
|
113
|
-
(variable_declarator
|
|
114
|
-
name: (identifier) @variable.other.constant))
|
|
115
|
-
|
|
116
113
|
([
|
|
117
114
|
(identifier)
|
|
118
115
|
(shorthand_property_identifier)
|
|
@@ -192,7 +189,6 @@
|
|
|
192
189
|
"<<="
|
|
193
190
|
"=="
|
|
194
191
|
"!="
|
|
195
|
-
"=>"
|
|
196
192
|
">>"
|
|
197
193
|
">>="
|
|
198
194
|
">>>"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-treesitter-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@11.0.0",
|
|
30
30
|
"@vscode/tree-sitter-wasm": "^0.0.4"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -8,6 +8,7 @@ import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/te
|
|
|
8
8
|
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
9
9
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
10
10
|
import { setTimeout0 } from 'vscode/vscode/vs/base/common/platform';
|
|
11
|
+
import 'vscode/vscode/vs/amdX';
|
|
11
12
|
import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
|
|
12
13
|
import { cancelOnDispose } from 'vscode/vscode/vs/base/common/cancellation';
|
|
13
14
|
import { IEnvironmentService } from 'vscode/vscode/vs/platform/environment/common/environment.service';
|
package/vscode/src/vs/workbench/services/treeSitter/browser/treeSitterTokenizationFeature.js
CHANGED
|
@@ -167,7 +167,7 @@ let TreeSitterTokenizationSupport = class TreeSitterTokenizationSupport extends
|
|
|
167
167
|
const previousTokenStartOffset = ((tokenIndex >= 2) ? endOffsetsAndScopes[tokenIndex - 2].endOffset : 0);
|
|
168
168
|
const originalPreviousTokenEndOffset = endOffsetsAndScopes[tokenIndex - 1].endOffset;
|
|
169
169
|
if ((previousTokenStartOffset + currentTokenLength) === originalPreviousTokenEndOffset) {
|
|
170
|
-
endOffsetsAndScopes[tokenIndex - 1].scopes.
|
|
170
|
+
endOffsetsAndScopes[tokenIndex - 1].scopes[endOffsetsAndScopes[tokenIndex - 1].scopes.length - 1] = capture.name;
|
|
171
171
|
}
|
|
172
172
|
else {
|
|
173
173
|
endOffsetsAndScopes[tokenIndex - 1].endOffset = intermediateTokenOffset;
|