Skip to content

Commit

Permalink
Encode link output
Browse files Browse the repository at this point in the history
  • Loading branch information
wkillerud committed Nov 3, 2024
1 parent ca803ff commit f9f1cdb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions extension/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ export function createLanguageClientOptions(
},
diagnosticCollectionName: 'sass',
outputChannel: output,
// revealOutputChannelOn: RevealOutputChannelOn.Never,
revealOutputChannelOn: RevealOutputChannelOn.Warn,
revealOutputChannelOn: RevealOutputChannelOn.Never,
};

return clientOptions;
Expand Down
5 changes: 2 additions & 3 deletions pkgs/sass_language_server/lib/src/language_server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion pkgs/sass_language_server/lib/src/utils/uri.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Uri filePathToUri(String path) {
var safePath = path.startsWith('/') ? path : '/$path';
var safePath =
path.startsWith('/') ? path : '/${path.replaceFirst(':', '%3A')}';
var uri = Uri.parse('file://${safePath.toLowerCase()}');
return uri;
}

0 comments on commit f9f1cdb

Please sign in to comment.