mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
Fix a few more type errors for TextDecoder
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { TextDecoder } from 'util';
|
||||
import { ExtensionContext, extensions, l10n } from 'vscode';
|
||||
import { BaseLanguageClient, LanguageClient, LanguageClientOptions, ServerOptions, TransportKind } from 'vscode-languageclient/node';
|
||||
import { LanguageClientConstructor, startClient } from '../cssClient';
|
||||
|
||||
@@ -76,7 +76,7 @@ export type LanguageClientConstructor = (name: string, description: string, clie
|
||||
export const languageServerDescription = l10n.t('HTML Language Server');
|
||||
|
||||
export interface Runtime {
|
||||
TextDecoder: { new(encoding?: string): { decode(buffer: ArrayBuffer): string } };
|
||||
TextDecoder: typeof TextDecoder;
|
||||
fileFs?: FileSystemProvider;
|
||||
telemetry?: TelemetryReporter;
|
||||
readonly timer: {
|
||||
|
||||
@@ -7,7 +7,6 @@ import { getNodeFileFS } from './nodeFs';
|
||||
import { Disposable, ExtensionContext, l10n } from 'vscode';
|
||||
import { startClient, LanguageClientConstructor, AsyncDisposable } from '../htmlClient';
|
||||
import { ServerOptions, TransportKind, LanguageClientOptions, LanguageClient } from 'vscode-languageclient/node';
|
||||
import { TextDecoder } from 'util';
|
||||
import * as fs from 'fs';
|
||||
import TelemetryReporter from '@vscode/extension-telemetry';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user