Skip to content

Commit e7f8a94

Browse files
committed
Split TS changes to separate PR
1 parent f7a2617 commit e7f8a94

3 files changed

Lines changed: 0 additions & 194 deletions

File tree

extensions/typescript-language-features/src/features/semanticColoring.ts

Lines changed: 0 additions & 124 deletions
This file was deleted.

extensions/typescript-language-features/src/languageProvider.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ export default class LanguageProvider extends Disposable {
7474
import('./features/references').then(provider => this._register(provider.register(selector, this.client))),
7575
import('./features/referencesCodeLens').then(provider => this._register(provider.register(selector, this.description.id, this.client, cachedResponse))),
7676
import('./features/rename').then(provider => this._register(provider.register(selector, this.client, this.fileConfigurationManager))),
77-
import('./features/semanticColoring').then(provider => this._register(provider.register(selector, this.client))),
7877
import('./features/smartSelect').then(provider => this._register(provider.register(selector, this.client))),
7978
import('./features/signatureHelp').then(provider => this._register(provider.register(selector, this.client))),
8079
import('./features/tagClosing').then(provider => this._register(provider.register(selector, this.description.id, this.client))),

extensions/typescript-language-features/src/typescriptService.ts

Lines changed: 0 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -26,74 +26,6 @@ export namespace ServerResponse {
2626
export type Response<T extends Proto.Response> = T | Cancelled | typeof NoContent;
2727
}
2828

29-
export namespace ExperimentalProtocol {
30-
/**
31-
* A request to get encoded semantic classifications for a span in the file
32-
*/
33-
export interface EncodedSemanticClassificationsRequest extends Proto.FileRequest {
34-
arguments: EncodedSemanticClassificationsRequestArgs;
35-
}
36-
37-
/**
38-
* Arguments for EncodedSemanticClassificationsRequest request.
39-
*/
40-
export interface EncodedSemanticClassificationsRequestArgs extends Proto.FileRequestArgs {
41-
/**
42-
* Start position of the span.
43-
*/
44-
start: number;
45-
/**
46-
* Length of the span.
47-
*/
48-
length: number;
49-
}
50-
51-
export const enum EndOfLineState {
52-
None,
53-
InMultiLineCommentTrivia,
54-
InSingleQuoteStringLiteral,
55-
InDoubleQuoteStringLiteral,
56-
InTemplateHeadOrNoSubstitutionTemplate,
57-
InTemplateMiddleOrTail,
58-
InTemplateSubstitutionPosition,
59-
}
60-
61-
export const enum ClassificationType {
62-
comment = 1,
63-
identifier = 2,
64-
keyword = 3,
65-
numericLiteral = 4,
66-
operator = 5,
67-
stringLiteral = 6,
68-
regularExpressionLiteral = 7,
69-
whiteSpace = 8,
70-
text = 9,
71-
punctuation = 10,
72-
className = 11,
73-
enumName = 12,
74-
interfaceName = 13,
75-
moduleName = 14,
76-
typeParameterName = 15,
77-
typeAliasName = 16,
78-
parameterName = 17,
79-
docCommentTagName = 18,
80-
jsxOpenTagName = 19,
81-
jsxCloseTagName = 20,
82-
jsxSelfClosingTagName = 21,
83-
jsxAttribute = 22,
84-
jsxText = 23,
85-
jsxAttributeStringLiteralValue = 24,
86-
bigintLiteral = 25,
87-
}
88-
89-
export interface EncodedSemanticClassificationsResponse extends Proto.Response {
90-
body?: {
91-
endOfLineState: EndOfLineState;
92-
spans: number[];
93-
};
94-
}
95-
}
96-
9729
interface StandardTsServerRequests {
9830
'applyCodeActionCommand': [Proto.ApplyCodeActionCommandRequestArgs, Proto.ApplyCodeActionCommandResponse];
9931
'completionEntryDetails': [Proto.CompletionDetailsRequestArgs, Proto.CompletionDetailsResponse];
@@ -104,7 +36,6 @@ interface StandardTsServerRequests {
10436
'definitionAndBoundSpan': [Proto.FileLocationRequestArgs, Proto.DefinitionInfoAndBoundSpanReponse];
10537
'docCommentTemplate': [Proto.FileLocationRequestArgs, Proto.DocCommandTemplateResponse];
10638
'documentHighlights': [Proto.DocumentHighlightsRequestArgs, Proto.DocumentHighlightsResponse];
107-
'encodedSemanticClassifications-full': [ExperimentalProtocol.EncodedSemanticClassificationsRequestArgs, ExperimentalProtocol.EncodedSemanticClassificationsResponse];
10839
'format': [Proto.FormatRequestArgs, Proto.FormatResponse];
10940
'formatonkey': [Proto.FormatOnKeyRequestArgs, Proto.FormatResponse];
11041
'getApplicableRefactors': [Proto.GetApplicableRefactorsRequestArgs, Proto.GetApplicableRefactorsResponse];

0 commit comments

Comments
 (0)