Skip to content

Commit 4bc1a36

Browse files
authored
Disable statusbar feature if a custom language server is in use (#593)
1 parent cce8229 commit 4bc1a36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/extension.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
122122
),
123123
vscode.window.onDidChangeActiveTextEditor(
124124
async (event: vscode.TextEditor | undefined) => {
125-
if (event && vscode.workspace.workspaceFolders[0]) { // make sure there's an open document in a folder
125+
// Make sure there's an open document in a folder
126+
// Also check whether they're running a different language server
127+
if (event && vscode.workspace.workspaceFolders[0] && !config('terraform').get('languageServer.pathToBinary')) {
126128
const documentUri = event.document.uri;
127129
const client = getDocumentClient(documentUri);
128130
if (client) {

0 commit comments

Comments
 (0)