Skip to content

Commit 247a86c

Browse files
committed
refactor(lsp): remove explicit quick_lint_js:: qualification
1 parent 42265db commit 247a86c

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

src/quick-lint-js/lsp/lsp-server.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -671,8 +671,7 @@ void linting_lsp_server_handler::write_configuration_errors_notification(
671671
}
672672

673673
void linting_lsp_server_handler::apply_document_changes(
674-
quick_lint_js::document<lsp_locator>& doc,
675-
::simdjson::ondemand::array& changes) {
674+
document<lsp_locator>& doc, ::simdjson::ondemand::array& changes) {
676675
for (::simdjson::simdjson_result<::simdjson::ondemand::value> change :
677676
changes) {
678677
::simdjson::ondemand::object change_object;
@@ -685,8 +684,7 @@ void linting_lsp_server_handler::apply_document_changes(
685684
}
686685

687686
void linting_lsp_server_handler::apply_document_change(
688-
quick_lint_js::document<lsp_locator>& doc,
689-
::simdjson::ondemand::object& raw_change) {
687+
document<lsp_locator>& doc, ::simdjson::ondemand::object& raw_change) {
690688
lsp_document_change change;
691689
if (!get_string8(raw_change, "text", &change.text)) {
692690
// Ignore invalid change.
@@ -717,8 +715,7 @@ void linting_lsp_server_handler::apply_document_change(
717715
}
718716

719717
void linting_lsp_server_handler::apply_document_change(
720-
quick_lint_js::document<lsp_locator>& doc,
721-
const lsp_document_change& change) {
718+
document<lsp_locator>& doc, const lsp_document_change& change) {
722719
if (change.range.has_value()) {
723720
doc.replace_text(*change.range, change.text);
724721
} else {

src/quick-lint-js/lsp/lsp-server.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class linting_lsp_server_handler final : public lsp_endpoint_handler {
114114
string8_view document_uri,
115115
const configuration_change&) = 0;
116116

117-
quick_lint_js::document<lsp_locator> doc;
117+
document<lsp_locator> doc;
118118
string8 version_json;
119119
};
120120

@@ -211,11 +211,11 @@ class linting_lsp_server_handler final : public lsp_endpoint_handler {
211211
// If a range is not provided, the document's text is entirely replaced.
212212
std::optional<lsp_range> range;
213213
};
214-
static void apply_document_changes(quick_lint_js::document<lsp_locator>& doc,
214+
static void apply_document_changes(document<lsp_locator>& doc,
215215
::simdjson::ondemand::array& changes);
216-
static void apply_document_change(quick_lint_js::document<lsp_locator>& doc,
216+
static void apply_document_change(document<lsp_locator>& doc,
217217
::simdjson::ondemand::object& raw_change);
218-
static void apply_document_change(quick_lint_js::document<lsp_locator>& doc,
218+
static void apply_document_change(document<lsp_locator>& doc,
219219
const lsp_document_change& change);
220220

221221
static void write_method_not_found_error_response(

0 commit comments

Comments
 (0)