@volar/vscode 1.7.4 → 1.7.5
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as path from 'typesafe-path';
|
|
2
2
|
import * as vscode from 'vscode';
|
|
3
3
|
import type { BaseLanguageClient } from 'vscode-languageclient';
|
|
4
|
-
export declare function activate(cmd: string, context: vscode.ExtensionContext, client: BaseLanguageClient, shouldStatusBarShow: (document: vscode.TextDocument) => boolean, resolveStatusText: (text: string) => string, disableTakeOverMode: boolean
|
|
4
|
+
export declare function activate(cmd: string, context: vscode.ExtensionContext, client: BaseLanguageClient, shouldStatusBarShow: (document: vscode.TextDocument) => boolean, resolveStatusText: (text: string) => string, disableTakeOverMode: boolean): Promise<vscode.Disposable>;
|
|
5
5
|
export declare function getTsdk(context: vscode.ExtensionContext): Promise<{
|
|
6
6
|
tsdk: string | path.PosixPath;
|
|
7
7
|
version: string | undefined;
|
|
@@ -5,7 +5,7 @@ const path = require("typesafe-path");
|
|
|
5
5
|
const vscode = require("vscode");
|
|
6
6
|
const common_1 = require("../common");
|
|
7
7
|
const defaultTsdkPath = 'node_modules/typescript/lib';
|
|
8
|
-
async function activate(cmd, context, client, shouldStatusBarShow, resolveStatusText, disableTakeOverMode
|
|
8
|
+
async function activate(cmd, context, client, shouldStatusBarShow, resolveStatusText, disableTakeOverMode) {
|
|
9
9
|
const subscriptions = [];
|
|
10
10
|
const statusBar = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right);
|
|
11
11
|
statusBar.command = cmd;
|
|
@@ -24,7 +24,7 @@ async function activate(cmd, context, client, shouldStatusBarShow, resolveStatus
|
|
|
24
24
|
useVSCodeTsdk: {
|
|
25
25
|
label: (!tsdk.isWorkspacePath ? '• ' : '') + "Use VS Code's Version",
|
|
26
26
|
description: vscodeTsdk.version,
|
|
27
|
-
detail: vscodeTsdk.isWeb ? vscodeTsdk.path
|
|
27
|
+
detail: vscodeTsdk.isWeb ? vscodeTsdk.path : undefined,
|
|
28
28
|
},
|
|
29
29
|
useConfigWorkspaceTsdk: configTsdkPath && !vscodeTsdk.isWeb ? {
|
|
30
30
|
label: (tsdk.isWorkspacePath ? '• ' : '') + 'Use Workspace Version',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/vscode",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.5",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"directory": "packages/vscode"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@volar/language-server": "1.7.
|
|
16
|
+
"@volar/language-server": "1.7.5",
|
|
17
17
|
"typesafe-path": "^0.2.2",
|
|
18
18
|
"vscode-nls": "^5.2.0"
|
|
19
19
|
},
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"@types/vscode": "latest",
|
|
22
22
|
"vscode-languageclient": "latest"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "57fa4f05df4c593aa4a7b15c159f864d407bd1ac"
|
|
25
25
|
}
|