提交 fbb78608 编写于 作者: M Matt Bierner

Remove experimental autobuild

上级 bd544519
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
"typescript.check.tscVersion": "Check if a global install TypeScript compiler (e.g. tsc) differs from the used TypeScript language service.", "typescript.check.tscVersion": "Check if a global install TypeScript compiler (e.g. tsc) differs from the used TypeScript language service.",
"typescript.tsserver.log": "Enables logging of the TS server to a file. This log can be used to diagnose TS Server issues. The log may contain file paths, source code, and other potentially sensitive information from your project.", "typescript.tsserver.log": "Enables logging of the TS server to a file. This log can be used to diagnose TS Server issues. The log may contain file paths, source code, and other potentially sensitive information from your project.",
"typescript.tsserver.trace": "Enables tracing of messages sent to the TS server. This trace can be used to diagnose TS Server issues. The trace may contain file paths, source code, and other potentially sensitive information from your project.", "typescript.tsserver.trace": "Enables tracing of messages sent to the TS server. This trace can be used to diagnose TS Server issues. The trace may contain file paths, source code, and other potentially sensitive information from your project.",
"typescript.tsserver.experimentalAutoBuild": "Enables experimental auto build. Requires 1.9 dev or 2.x tsserver version and a restart of VS Code after changing it.",
"typescript.validate.enable": "Enable/disable TypeScript validation.", "typescript.validate.enable": "Enable/disable TypeScript validation.",
"typescript.format.enable": "Enable/disable default TypeScript formatter.", "typescript.format.enable": "Enable/disable default TypeScript formatter.",
"javascript.format.enable": "Enable/disable default JavaScript formatter.", "javascript.format.enable": "Enable/disable default JavaScript formatter.",
......
...@@ -229,7 +229,7 @@ export default class BufferSyncSupport { ...@@ -229,7 +229,7 @@ export default class BufferSyncSupport {
} }
public requestDiagnostic(file: string): void { public requestDiagnostic(file: string): void {
if (!this._validate || this.client.experimentalAutoBuild) { if (!this._validate) {
return; return;
} }
......
...@@ -94,7 +94,7 @@ export function activate(context: ExtensionContext): void { ...@@ -94,7 +94,7 @@ export function activate(context: ExtensionContext): void {
let clientHost: TypeScriptServiceClientHost | undefined; let clientHost: TypeScriptServiceClientHost | undefined;
return () => { return () => {
if (!clientHost) { if (!clientHost) {
clientHost = new TypeScriptServiceClientHost(standardLanguageDescriptions, context.storagePath, context.workspaceState, plugins); clientHost = new TypeScriptServiceClientHost(standardLanguageDescriptions, context.workspaceState, plugins);
context.subscriptions.push(clientHost); context.subscriptions.push(clientHost);
const host = clientHost; const host = clientHost;
...@@ -456,7 +456,6 @@ class TypeScriptServiceClientHost implements ITypescriptServiceClientHost { ...@@ -456,7 +456,6 @@ class TypeScriptServiceClientHost implements ITypescriptServiceClientHost {
constructor( constructor(
descriptions: LanguageDescription[], descriptions: LanguageDescription[],
storagePath: string | undefined,
workspaceState: Memento, workspaceState: Memento,
plugins: TypeScriptServerPlugin[] plugins: TypeScriptServerPlugin[]
) { ) {
...@@ -478,7 +477,7 @@ class TypeScriptServiceClientHost implements ITypescriptServiceClientHost { ...@@ -478,7 +477,7 @@ class TypeScriptServiceClientHost implements ITypescriptServiceClientHost {
this.versionStatus = new VersionStatus(); this.versionStatus = new VersionStatus();
this.disposables.push(this.versionStatus); this.disposables.push(this.versionStatus);
this.client = new TypeScriptServiceClient(this, storagePath, workspaceState, this.versionStatus, plugins, this.disposables); this.client = new TypeScriptServiceClient(this, workspaceState, this.versionStatus, plugins, this.disposables);
this.languagePerId = Object.create(null); this.languagePerId = Object.create(null);
for (const description of descriptions) { for (const description of descriptions) {
const manager = new LanguageProvider(this.client, description); const manager = new LanguageProvider(this.client, description);
......
...@@ -85,7 +85,6 @@ export interface ITypescriptServiceClient { ...@@ -85,7 +85,6 @@ export interface ITypescriptServiceClient {
logTelemetry(eventName: string, properties?: { [prop: string]: string }): void; logTelemetry(eventName: string, properties?: { [prop: string]: string }): void;
experimentalAutoBuild: boolean;
apiVersion: API; apiVersion: API;
checkGlobalTSCVersion: boolean; checkGlobalTSCVersion: boolean;
......
...@@ -20,10 +20,10 @@ import Logger from './utils/logger'; ...@@ -20,10 +20,10 @@ import Logger from './utils/logger';
import VersionStatus from './utils/versionStatus'; import VersionStatus from './utils/versionStatus';
import * as is from './utils/is'; import * as is from './utils/is';
import TelemetryReporter from './utils/telemetry';
import Tracer from './utils/tracer';
import * as nls from 'vscode-nls'; import * as nls from 'vscode-nls';
import TelemetryReporter from "./utils/telemetry";
import Tracer from "./utils/tracer";
const localize = nls.loadMessageBundle(); const localize = nls.loadMessageBundle();
interface CallbackItem { interface CallbackItem {
...@@ -231,7 +231,6 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient ...@@ -231,7 +231,6 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
private _onReady: { promise: Promise<void>; resolve: () => void; reject: () => void; }; private _onReady: { promise: Promise<void>; resolve: () => void; reject: () => void; };
private configuration: TypeScriptServiceConfiguration; private configuration: TypeScriptServiceConfiguration;
private _checkGlobalTSCVersion: boolean; private _checkGlobalTSCVersion: boolean;
private _experimentalAutoBuild: boolean;
private tracer: Tracer; private tracer: Tracer;
private readonly logger: Logger = new Logger(); private readonly logger: Logger = new Logger();
private tsServerLogFile: string | null = null; private tsServerLogFile: string | null = null;
...@@ -256,7 +255,6 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient ...@@ -256,7 +255,6 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
constructor( constructor(
private readonly host: ITypescriptServiceClientHost, private readonly host: ITypescriptServiceClientHost,
private readonly storagePath: string | undefined,
private readonly workspaceState: Memento, private readonly workspaceState: Memento,
private readonly versionStatus: VersionStatus, private readonly versionStatus: VersionStatus,
private readonly plugins: TypeScriptServerPlugin[], private readonly plugins: TypeScriptServerPlugin[],
...@@ -279,7 +277,6 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient ...@@ -279,7 +277,6 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
this.callbacks = new CallbackMap(); this.callbacks = new CallbackMap();
this.configuration = TypeScriptServiceConfiguration.loadFromWorkspace(); this.configuration = TypeScriptServiceConfiguration.loadFromWorkspace();
this._experimentalAutoBuild = false; // configuration.get<boolean>('typescript.tsserver.experimentalAutoBuild', false);
this._apiVersion = new API('1.0.0'); this._apiVersion = new API('1.0.0');
this._checkGlobalTSCVersion = true; this._checkGlobalTSCVersion = true;
this.tracer = new Tracer(this.logger); this.tracer = new Tracer(this.logger);
...@@ -338,10 +335,6 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient ...@@ -338,10 +335,6 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
return this._onTypesInstallerInitializationFailed.event; return this._onTypesInstallerInitializationFailed.event;
} }
public get experimentalAutoBuild(): boolean {
return this._experimentalAutoBuild;
}
public get checkGlobalTSCVersion(): boolean { public get checkGlobalTSCVersion(): boolean {
return this._checkGlobalTSCVersion; return this._checkGlobalTSCVersion;
} }
...@@ -741,13 +734,6 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient ...@@ -741,13 +734,6 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
let configureOptions: Proto.ConfigureRequestArguments = { let configureOptions: Proto.ConfigureRequestArguments = {
hostInfo: 'vscode' hostInfo: 'vscode'
}; };
if (this._experimentalAutoBuild && this.storagePath) {
try {
fs.mkdirSync(this.storagePath);
} catch (error) {
}
// configureOptions.autoDiagnostics = true;
}
this.execute('configure', configureOptions); this.execute('configure', configureOptions);
this.setCompilerOptionsForInferredProjects(); this.setCompilerOptionsForInferredProjects();
if (resendModels) { if (resendModels) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册