@volar/vscode 2.0.0-alpha.2 → 2.0.0-alpha.3

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/index.d.ts CHANGED
@@ -8,7 +8,6 @@ export { activate as activateTsConfigStatusItem } from './lib/features/tsconfig'
8
8
  export { activate as activateServerSys } from './lib/features/serverSys';
9
9
  export { activate as activateTsVersionStatusItem, getTsdk } from './lib/features/tsVersion';
10
10
  export * from 'vscode-languageclient';
11
- export declare function takeOverModeActive(context: vscode.ExtensionContext): boolean;
12
11
  import type { BaseLanguageClient, Middleware } from 'vscode-languageclient';
13
12
  export declare const middleware: Middleware;
14
13
  export declare function parseServerCommand(command: vscode.Command): vscode.Command;
package/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.supportLabsVersion = exports.parseServerCommand = exports.middleware = exports.takeOverModeActive = exports.getTsdk = exports.activateTsVersionStatusItem = exports.activateServerSys = exports.activateTsConfigStatusItem = exports.activateReloadProjects = exports.activateFindFileReferences = exports.activateWriteVirtualFiles = exports.activateDocumentDropEdit = exports.activateAutoInsertion = void 0;
17
+ exports.supportLabsVersion = exports.parseServerCommand = exports.middleware = exports.getTsdk = exports.activateTsVersionStatusItem = exports.activateServerSys = exports.activateTsConfigStatusItem = exports.activateReloadProjects = exports.activateFindFileReferences = exports.activateWriteVirtualFiles = exports.activateDocumentDropEdit = exports.activateAutoInsertion = void 0;
18
18
  const vscode = require("vscode");
19
19
  var autoInsertion_1 = require("./lib/features/autoInsertion");
20
20
  Object.defineProperty(exports, "activateAutoInsertion", { enumerable: true, get: function () { return autoInsertion_1.activate; } });
@@ -34,13 +34,6 @@ var tsVersion_1 = require("./lib/features/tsVersion");
34
34
  Object.defineProperty(exports, "activateTsVersionStatusItem", { enumerable: true, get: function () { return tsVersion_1.activate; } });
35
35
  Object.defineProperty(exports, "getTsdk", { enumerable: true, get: function () { return tsVersion_1.getTsdk; } });
36
36
  __exportStar(require("vscode-languageclient"), exports);
37
- function takeOverModeActive(context) {
38
- if (vscode.workspace.getConfiguration('volar').get('takeOverMode.extension') === context.extension.id) {
39
- return !vscode.extensions.getExtension('vscode.typescript-language-features');
40
- }
41
- return false;
42
- }
43
- exports.takeOverModeActive = takeOverModeActive;
44
37
  exports.middleware = {
45
38
  async provideHover(document, position, token, next) {
46
39
  const hover = await next(document, position, token);
@@ -1,6 +1,6 @@
1
1
  import * as vscode from 'vscode';
2
2
  import type { BaseLanguageClient } from 'vscode-languageclient';
3
- export declare function activate(cmd: string, context: vscode.ExtensionContext, client: BaseLanguageClient, shouldStatusBarShow: (document: vscode.TextDocument) => boolean, resolveStatusText: (text: string) => string, disableTakeOverMode: boolean): vscode.Disposable;
3
+ export declare function activate(cmd: string, context: vscode.ExtensionContext, client: BaseLanguageClient, shouldStatusBarShow: (document: vscode.TextDocument) => boolean, resolveStatusText: (text: string) => string): vscode.Disposable;
4
4
  export declare function getTsdk(context: vscode.ExtensionContext): Promise<{
5
5
  tsdk: string;
6
6
  version: string | undefined;
@@ -5,7 +5,7 @@ const path = require("path-browserify");
5
5
  const vscode = require("vscode");
6
6
  const common_1 = require("../common");
7
7
  const defaultTsdkPath = 'node_modules/typescript/lib';
8
- function activate(cmd, context, client, shouldStatusBarShow, resolveStatusText, disableTakeOverMode) {
8
+ function activate(cmd, context, client, shouldStatusBarShow, resolveStatusText) {
9
9
  const subscriptions = [];
10
10
  const statusBar = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right);
11
11
  statusBar.command = cmd;
@@ -37,19 +37,10 @@ function activate(cmd, context, client, shouldStatusBarShow, resolveStatusText,
37
37
  detail: defaultTsdkPath,
38
38
  } : undefined,
39
39
  },
40
- ...(disableTakeOverMode ? [] : [{
41
- takeover: {
42
- label: 'What is Takeover Mode?',
43
- },
44
- }])
45
40
  ]);
46
41
  if (select === undefined) {
47
42
  return; // cancel
48
43
  }
49
- if (select === 'takeover') {
50
- vscode.env.openExternal(vscode.Uri.parse('https://vuejs.org/guide/typescript/overview.html#volar-takeover-mode'));
51
- return;
52
- }
53
44
  if (select === 'useDefaultWorkspaceTsdk') {
54
45
  await vscode.workspace.getConfiguration('typescript').update('tsdk', defaultTsdkPath);
55
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volar/vscode",
3
- "version": "2.0.0-alpha.2",
3
+ "version": "2.0.0-alpha.3",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -12,7 +12,7 @@
12
12
  "directory": "packages/vscode"
13
13
  },
14
14
  "dependencies": {
15
- "@volar/language-server": "2.0.0-alpha.2",
15
+ "@volar/language-server": "2.0.0-alpha.3",
16
16
  "path-browserify": "^1.0.1",
17
17
  "vscode-languageclient": "^9.0.1",
18
18
  "vscode-nls": "^5.2.0"
@@ -22,5 +22,5 @@
22
22
  "@types/path-browserify": "latest",
23
23
  "@types/vscode": "^1.82.0"
24
24
  },
25
- "gitHead": "88e80b9f00541ab9478b9c7b7af213813fc8cb20"
25
+ "gitHead": "0bb685a72cff180bb9b3420aaf3136c8e899c908"
26
26
  }