Skip to content

Commit

Permalink
refactor: clean up references to vscode-languageserver
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Feb 15, 2020
1 parent 04d88a9 commit eb1144b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/_server/src/documentSettings.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// cSpell:ignore pycache
import { Connection, TextDocumentUri } from './vscode.config';
import * as vscode from './vscode.config';
import { Connection, TextDocumentUri, getWorkspaceFolders, getConfiguration } from './vscode.config';
import * as vscode from 'vscode-languageserver';
import {
ExcludeFilesGlobMap,
Glob
Expand Down Expand Up @@ -129,11 +129,11 @@ export class DocumentSettings {
}

private async fetchFolders() {
return (await vscode.getWorkspaceFolders(this.connection)) || [];
return (await getWorkspaceFolders(this.connection)) || [];
}

private async _fetchVSCodeConfiguration(uri: string) {
return (await vscode.getConfiguration(this.connection, [
return (await getConfiguration(this.connection, [
{ scopeUri: uri || undefined, section: cSpellSection },
{ section: 'search' }
])).map(v => v || {}) as [CSpellUserSettings, VsCodeSettings];
Expand Down
1 change: 0 additions & 1 deletion packages/_server/src/vscode.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from 'vscode-languageserver';
import * as vscode from 'vscode-languageserver';
import { log } from './util';

Expand Down

0 comments on commit eb1144b

Please sign in to comment.