From c8554e4592abf0ad983a37cb6f0fec8ae29e91a5 Mon Sep 17 00:00:00 2001 From: William Killerud Date: Sun, 3 Nov 2024 19:18:08 +0100 Subject: [PATCH] Cleanup after Windows debugging --- extension/src/client.ts | 3 +-- pkgs/sass_language_server/lib/src/language_server.dart | 5 ++--- pkgs/sass_language_server/lib/src/utils/uri.dart | 2 +- pkgs/sass_language_server/test/workspace_test.dart | 9 --------- 4 files changed, 4 insertions(+), 15 deletions(-) delete mode 100644 pkgs/sass_language_server/test/workspace_test.dart diff --git a/extension/src/client.ts b/extension/src/client.ts index 08927df..4d54073 100644 --- a/extension/src/client.ts +++ b/extension/src/client.ts @@ -50,8 +50,7 @@ export function createLanguageClientOptions( }, diagnosticCollectionName: 'sass', outputChannel: output, - // revealOutputChannelOn: RevealOutputChannelOn.Never, - revealOutputChannelOn: RevealOutputChannelOn.Warn, + revealOutputChannelOn: RevealOutputChannelOn.Never, }; return clientOptions; diff --git a/pkgs/sass_language_server/lib/src/language_server.dart b/pkgs/sass_language_server/lib/src/language_server.dart index 9afdcb6..1cf0210 100644 --- a/pkgs/sass_language_server/lib/src/language_server.dart +++ b/pkgs/sass_language_server/lib/src/language_server.dart @@ -167,9 +167,8 @@ class LanguageServer { clientCapabilities: _clientCapabilities, fs: fileSystemProvider); var serverCapabilities = ServerCapabilities( - documentLinkProvider: DocumentLinkOptions( - resolveProvider: false, workDoneProgress: false), - textDocumentSync: Either2.t1(TextDocumentSyncKind.Full), + documentLinkProvider: DocumentLinkOptions(resolveProvider: false), + textDocumentSync: Either2.t1(TextDocumentSyncKind.Incremental), ); var result = InitializeResult(capabilities: serverCapabilities); diff --git a/pkgs/sass_language_server/lib/src/utils/uri.dart b/pkgs/sass_language_server/lib/src/utils/uri.dart index e54ce74..beacadd 100644 --- a/pkgs/sass_language_server/lib/src/utils/uri.dart +++ b/pkgs/sass_language_server/lib/src/utils/uri.dart @@ -1,5 +1,5 @@ Uri filePathToUri(String path) { var safePath = path.startsWith('/') ? path : '/$path'; - var uri = Uri.parse('file://${safePath.toLowerCase()}'); + var uri = Uri.parse('file://$safePath'); return uri; } diff --git a/pkgs/sass_language_server/test/workspace_test.dart b/pkgs/sass_language_server/test/workspace_test.dart deleted file mode 100644 index 193d8f1..0000000 --- a/pkgs/sass_language_server/test/workspace_test.dart +++ /dev/null @@ -1,9 +0,0 @@ -import 'package:test/test.dart'; - -void main() { - group('Workspace', () { - test('test', () { - expect(true, true); - }); - }); -}